I am trying to explore LLVM a bit, but I fail to find good examples of how to use it.
I heard Kotlin/Native uses LLVM as the back-end of its compiler so I thought about taking a look at the
https://github.com/JetBrains/kotlin-native repository to see if I could find how the Kotlin/Native compiler generates LLVM IR and which IR instructions it uses.
However, I am totally lost in that project and have no clue where to actually look for what I want to find.
Can anyone point me to where the LLVM IR generation is and how the compiler invokes it?
And couldd I perhaps use the Kotlin/Native compiler itself as a library to generate the LLVM IR for me?