search for: preservesourc

Displaying 6 results from an estimated 6 matches for "preservesourc".

Did you mean: preservesource
2012 Jun 17
3
[LLVMdev] BlockAddress instruction is copied instead of cloned during module link?
...LLVMModule(); verifyModule(*Mod, PrintMessageAction); PassManager PM; PM.add(createPrintModulePass(&outs())); printf("===original==\n"); PM.run(*Mod); Module* ModL = new Module("xL.ll", getGlobalContext()); llvm::Linker::LinkModules(ModL, Mod, Linker::PreserveSource, 0); printf("===linked: before original delete==\n"); PM.run(*ModL); delete Mod; printf("===linked: after original delete==\n"); PM.run(*ModL); return 0; } Module* makeLLVMModule() { // Module Construction Module* mod = new Module("x.ll", ge...
2012 Dec 17
1
[LLVMdev] Execution Engine issue with composite module
...on module Y of the functions defined in X. i also link the except-handling module, but i think it is peripheral to the issue i like all the modules together in a single module called executableModule. I link them with the method: Linker::LinkModules(executableModule , moduleToLink, llvm::Linker::PreserveSource, &errorMsg); i call llvm::verifyModule(* executableModule, llvm::AbortProcessAction, &err); which doesn't seem to find anything wrong with the linked module. then i proceed to create the executionEngine: llvm::EngineBuilder eB(executableModule); eB.setEngin...
2012 Dec 13
2
[LLVMdev] Fwd: error while linking modules with exception handling demo code
...MCJIT, but it is not relevant for this question, since the error happens during linkage). It contains definitions from the ExceptionDemo sample AND the foo function of module X already linked (modules are being linked with linker()->LinkModules(ExecutableCodeModule , moduleToLink, llvm::Linker::PreserveSource, &errorMsg); Exception Demo is from https://llvm.org/svn/llvm-project/llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp ; ModuleID = 'ExecutableCodeModule' @typeInfo0 = constant { i32 } zeroinitializer @typeInfo1 = constant { i32 } { i32 1 } @typeInfo2 = constant { i32 } { i32 2 }...
2014 Sep 01
2
[LLVMdev] Problem linking and JITing code through C++-API
...ab.module_ir.context(), &errmsg ); if(!rtlib) { std::cerr << errmsg << std::endl; return EXIT_FAILURE; } // Link the compiled program code into the runtime module. bool failed = llvm::Linker::LinkModules( rtlib, module_stab.module_ir.ptr(), llvm::Linker::PreserveSource, &errmsg ); if(failed) { std::cerr << errmsg << std::endl; return EXIT_FAILURE; } std::cout << "Linking done..." << std::endl; rtlib->dump(); // Run optimization passes. // std::vector<const char *> exportList; // llvm::P...
2014 Sep 02
2
[LLVMdev] Problem linking and JITing code through C++-API
...> std::cerr << errmsg << std::endl; > > return EXIT_FAILURE; > > } > > // Link the compiled program code into the runtime module. > > bool failed = llvm::Linker::LinkModules( > > rtlib, module_stab.module_ir.ptr(), llvm::Linker::PreserveSource, > &errmsg > > ); > > if(failed) > > { > > std::cerr << errmsg << std::endl; > > return EXIT_FAILURE; > > } > > std::cout << "Linking done..." << std::endl; > > rtlib->dump();...
2014 Sep 08
2
[LLVMdev] Problem linking and JITing code through C++-API
...endl; > > > > return EXIT_FAILURE; > > > > } > > > > // Link the compiled program code into the runtime module. > > > > bool failed = llvm::Linker::LinkModules( > > > > rtlib, module_stab.module_ir.ptr(), llvm::Linker::PreserveSource, > > &errmsg > > > > ); > > > > if(failed) > > > > { > > > > std::cerr << errmsg << std::endl; > > > > return EXIT_FAILURE; > > > > } > > > > std::cout << &quo...