14 static llvm::AllocaInst *CreateEntryBlockAlloca(llvm::Function *TheFunction,
15 const std::string &VarName,
21 static llvm::FunctionCallee declare_malloc(llvm::Module &);
22 static llvm::FunctionCallee declare_free(llvm::Module &);
24 static llvm::FunctionCallee
25 declare_fn(llvm::Module &module,
const std::string &name,
26 llvm::Type *return_type, llvm::ArrayRef<llvm::Type *> param_types,
27 bool is_vararg =
false);
Defined LLVMRes, which encapsulates the state of LLVM (Context, Modules, IRBuilder,...