|
|
|
|
|
by jasperry
1741 days ago
|
|
I empathize with the author's struggle and the pain of having to use the C++ API to generate LLVM IR. It's not relevant to Go, but the OCaml LLVM bindings are kept up-to-date and the documentation is there, though there's very little tutorial material to be found. Still, I find it much cleaner and nicer to use than C++. Trying to generate LLVM IR from scratch seems like a lost cause; when you realize how much the library code is keeping track of for you to make it possible to emit correct LLVM, you know that replicating all that just isn't worth it. |
|