Kaleidoscope: Code generation to LLVM IR - D language

Jelena cecajezakon86 at gmail.com
Mon May 22 07:35:21 UTC 2023


Hello everyone,

I am tasked to translate this code: 
https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.html into D language.

However, I have a problem with part 3.2. where the following 
appears:
static std::unique_ptr<LLVMContext> TheContext;
static std::unique_ptr<IRBuilder<>> Builder(TheContext);
static std::unique_ptr<Module> TheModule;
static std::map<std::string, Value *> NamedValues;

I am interested in how it is even possible to import things like: 
LLVMContex, IRBuilder and similar.




More information about the digitalmars-d-ldc mailing list