CreateEntryBlockAlloca - Create an alloca instruction in the entry block of the function. This is used for mutable variables etc.
| 553 | |
| 554 | // CreateEntryBlockAlloca - Create an alloca instruction in the entry block of the function. This is used for mutable variables etc. |
| 555 | AllocaInst* CreateEntryBlockAlloca(Function *TheFunction, const std::string &VarName, const llvm::Type* type) |
| 556 | { |
| 557 | IRBuilder<> TmpB(&TheFunction->getEntryBlock(), TheFunction->getEntryBlock().begin()); |
| 558 | return TmpB.CreateAlloca(type, 0, VarName.c_str()); |
| 559 | } |
| 560 | |
| 561 | void NodeExpressionList::CompileLLVM() |
| 562 | { |
no test coverage detected