Hi @areusch, Thank you so much. LLVM is getting clear to me.
[quote="areusch, post:7, topic:11682"] [quote="sho, post:5, topic:11682"] As you probably know, I was confused about LLVM, and how it is used. So LLVM is used to build TVM compiler. LLVM also works when you input your model into TVM compiler and get TVM’s IR. LLVM compiles the TVM’s IR, and produces executables. (I’m still not sure where gcc is used when you build TVM from source though…) [/quote] There are actually two roles LLVM *could* play in TVM: 1. To build TVM from source [/quote] Ah LLVM is used to build TVM because it also has a frontend for C/C++! [quote="areusch, post:7, topic:11682"] As a Target backend (e.g. `relay.build(..., target="llvm")`), in which case TVM *links* against LLVM (e.g. LLVM is a static library) at compile time, and TVM then contains the code-generation pieces of LLVM and is in turn able to emit machine code to implement a model, just like LLVM does. [/quote] Ok, in this case LLVM emits code for say x86, arm, etc, at least not for microcontrollers. I think I can now use TVM on any microcontrollers thanks to you. Also I have clearer idea about what LLVM is doing in TVM. --- [Visit Topic](https://discuss.tvm.apache.org/t/what-is-target-in-tvm/11682/9) 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/a516db2b3771a0909a94c412142a0da89cbbd0197ff446578942abd99dfd2569).