Is there a difference between "lower" and "legalize" in TIR?

Intrinsics and ops are represented in the same way in TIR though. What is the intended behavior of “legalization” that is different from “lowering”?