Displaying 1 result from an estimated 1 matches for "llvm_basic_block".
2013 Apr 24
1
[LLVMdev] JIT pass runtime struct on to subroutines
...*llvm_function = llvm::cast<llvm::Function>(
llvm_module->getOrInsertFunction(*name, llvm::Type::getVoidTy(&llvm_context), llvm::PointerType::getUnqual(llvm::StructType::create(&llvm_context)), (llvm::Type *)0));
// prepare for the construction of this function
llvm::BasicBlock *llvm_basic_block = BasicBlock::Create(&llvm_context, "EntryBlock", llvm_function);
llvm::IRBuilder<> llvm_builder(llvm_basic_block);
// pseudo: I'll loop over all the instructions in a predicate. This sets instruction_function_name to the appropriate value in each iteration and makes sure I...