The goal is to rewrite the TIR into a way that the target's codegen can handle. 
 Rewriting `exp` into `llvm.exp` can be seen as legalization too. There can be 
targets that can generate code directly for `exp`.  In fact, the translation 
from `exp` to `llvm.exp` is only there for convenience (automation).  The LLVM 
code generator could be changed to handle `exp` just fine.

The distinction, as presented so far, is very subjective, and IMO unnecessary.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/is-there-a-difference-between-lower-and-legalize-in-tir/10714/12)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/5b8807f663102e0bc848dd5656c1b6e00f44e04ff958497b67c2d58e5b08091e).

Reply via email to