Home | History | Annotate | Download | only in ExceptionDemo

Lines Matching defs:module

61 #include "llvm/IR/Module.h"
204 /// @param module for module instance
215 llvm::Function *createFunction(llvm::Module &module,
226 llvm::Function::Create(functType, linkage, functName, &module);
896 /// @param module code for module instance
904 llvm::Module &module,
908 llvm::Function *printFunct = module.getFunction("printStr");
917 new llvm::GlobalVariable(module,
938 /// @param module code for module instance
948 llvm::Module &module,
961 new llvm::GlobalVariable(module,
988 /// @param module code for module instance
1000 llvm::Module &module,
1047 module,
1067 /// @param module code for module instance
1076 llvm::Module &module,
1097 module,
1118 /// @param module code for module instance
1128 llvm::Module &module, llvm::IRBuilder<> &builder,
1133 llvm::LLVMContext &context = module.getContext();
1134 llvm::Function *toPrint32Int = module.getFunction("print32Int");
1142 llvm::Function *ret = createFunction(module,
1191 module,
1208 module,
1233 module,
1237 llvm::Function *deleteOurException = module.getFunction("deleteOurException");
1249 module,
1267 llvm::Function *personality = module.getFunction("ourPersonality");
1279 caughtResult->addClause(module.getGlobalVariable(
1316 module,
1347 module,
1382 /// @param module code for module instance
1393 createThrowExceptionFunction(llvm::Module &module, llvm::IRBuilder<> &builder,
1397 llvm::LLVMContext &context = module.getContext();
1404 llvm::Function *ret = createFunction(module,
1441 llvm::Function *toPrint32Int = module.getFunction("print32Int");
1443 module,
1467 llvm::Function *createOurException = module.getFunction("createOurException");
1468 llvm::Function *raiseOurException = module.getFunction(
1486 llvm::Module &module,
1502 /// @param module code for module instance
1510 createUnwindExceptionTest(llvm::Module &module, llvm::IRBuilder<> &builder,
1519 module,
1521 llvm::Function *nativeThrowFunct = module.getFunction(nativeThrowFunctName);
1525 llvm::Function *throwFunct = createThrowExceptionFunction(module,
1537 llvm::Function *innerCatchFunct = createCatchWrappedInvokeFunction(module,
1551 llvm::Function *outerCatchFunct = createCatchWrappedInvokeFunction(module,
1641 /// adds external function declarations to module.
1644 /// @param module code for module instance
1647 llvm::Module &module,
1650 llvm::LLVMContext &context = module.getContext();
1731 new llvm::GlobalVariable(module,
1756 createFunction(module,
1775 createFunction(module,
1793 createFunction(module,
1811 createFunction(module,
1829 createFunction(module,
1847 createFunction(module,
1865 funct = createFunction(module,
1885 funct = createFunction(module,
1909 createFunction(module,
1920 getDeclaration(&module, llvm::Intrinsic::eh_typeid_for);
1957 // Make the module, which holds all the code.
1958 std::unique_ptr<llvm::Module> Owner =
1959 llvm::make_unique<llvm::Module>("my cool jit", context);
1960 llvm::Module *module = Owner.get();
1972 llvm::legacy::FunctionPassManager fpm(module);
1977 module->setDataLayout(executionEngine->getDataLayout());
2007 createUnwindExceptionTest(*module,
2014 fprintf(stderr, "\nBegin module dump:\n\n");
2016 module->dump();
2018 fprintf(stderr, "\nEnd module dump:\n");