I have been looking at LLVM lately, and I find it to be quite an interesting architecture. However, looking through the tutorial and the reference material, I can\'t see any ex
For those using the C++ API of LLVM, you can rely on IRBuilder's CreateGlobalStringPtr :
IRBuilder
CreateGlobalStringPtr
Builder.CreateGlobalStringPtr(StringRef("Hello, world!"));
This will be represented as i8* in the final LLVM IR.
i8*