search for: ctx3

Displaying 3 results from an estimated 3 matches for "ctx3".

Did you mean: ctx
2015 May 30
2
[LLVMdev] Linking modules across contexts crashes
...awOStream DP(Stream); LLVMBool Result; // create blank modules and contexts LLVMContext *ctx1 = new LLVMContext; Module* module1 = new Module("module1", *ctx1); LLVMContext *ctx2 = new LLVMContext; Module* module2 = new Module("module2", *ctx2); LLVMContext *ctx3 = new LLVMContext; Module* module3 = new Module("module3", *ctx3); // fill modules llvm::Function::Create(llvm::FunctionType::get(Type::getInt32Ty(*ctx1), false), llvm::Function::ExternalLinkage, "f1", module1); llvm::Function::Create(llvm::FunctionType::get(Type::getInt3...
2017 Feb 21
3
What is the proper usage of LLVMContext?
...xt (get Int32ty() or StructType::create or etc...) } Q2) What situation do I need to create multiple `LLVMContext`s? I don't know the situation used multiple `LLVMContext`s. For example, { { llvm::LLVMContext ctx1; // some code } { llvm::LLVMContext ctx2; // some code } { llvm::LLVMContext ctx3; // some code } } or { llvm::LLVMContext ctxs[] = {....} // some code } I'd like to know the appropriate usage of LLVMContext. Thak you very much for reading. Sincerely, Ryo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/...
2015 Jun 01
2
[LLVMdev] Linking modules across contexts crashes
...LLVMBool Result; > // create blank modules and contexts > LLVMContext *ctx1 = new LLVMContext; > Module* module1 = new Module("module1", *ctx1); > LLVMContext *ctx2 = new LLVMContext; > Module* module2 = new Module("module2", *ctx2); > LLVMContext *ctx3 = new LLVMContext; > Module* module3 = new Module("module3", *ctx3); > // fill modules > llvm::Function::Create(llvm::FunctionType::get(Type::getInt32Ty(*ctx1), false), llvm::Function::ExternalLinkage, "f1", module1); > llvm::Function::Create(llvm::FunctionType::...