The speaker intends to be understood as meaning something that contrasts with the literal or usual meaning of what he says. The different sorts of discrepancy between the meaning of what is said and what is in fact on the particular occasion meant with it give rise to different kinds of verbal irony: In sarcasm, the two stand in opposition.
Stuck for a word?
Tone/Attitude Words.