search for: mainmodul

Displaying 11 results from an estimated 11 matches for "mainmodul".

Did you mean: mainmodule
2008 Jan 16
0
[LLVMdev] Cross-module function calls (code included)
...lvm/Function.h> #include <llvm/PassManager.h> #include <llvm/ExecutionEngine/ExecutionEngine.h> #include <llvm/Analysis/Verifier.h> #include <llvm/Assembly/PrintModulePass.h> #include <llvm/Support/LLVMBuilder.h> using namespace llvm; void SetupModules(); Module* mainModule; Module* utilityModule; Function *mainFunction; Function *utilityFunctionPrototype; Function *utilityFunction; int main(int argc, char**argv) { ExecutionEngine *executionEngine; SetupModules(); verifyModule(*mainModule, PrintMessageAction); verifyModule(*utilityModule, PrintMessageAction);...
2012 Dec 14
2
[LLVMdev] StructType for dispatch_object_t changed by Linker
...could send the exact definitions in each module to the mailing list?), In the module loaded in Step 1 (otherModule): %struct.dispatch_group_s = type opaque %union.dispatch_object_t = type { %struct.dispatch_object_s* } %struct.dispatch_object_s = type opaque In the module generated in Step 2 (mainModule): %struct.dispatch_group_s = type {} %union.dispatch_object_t = type { %struct.dispatch_object_s* } %struct.dispatch_object_s = type {} (The LLVM API calls to generate mainModule were generated by calling `llc -march=cpp` on otherModule.) > but I > think there were also some bugs in thi...
2012 Dec 14
0
[LLVMdev] StructType for dispatch_object_t changed by Linker
...le to the mailing list?), > > > In the module loaded in Step 1 (otherModule): > > %struct.dispatch_group_s = type opaque > %union.dispatch_object_t = type { %struct.dispatch_object_s* } > %struct.dispatch_object_s = type opaque > > In the module generated in Step 2 (mainModule): > > %struct.dispatch_group_s = type {} > %union.dispatch_object_t = type { %struct.dispatch_object_s* } > %struct.dispatch_object_s = type {} > > (The LLVM API calls to generate mainModule were generated by calling `llc -march=cpp` on otherModule.) > Is there any chanc...
2012 Dec 14
2
[LLVMdev] StructType for dispatch_object_t changed by Linker
...ains the `dispatch_object_t` type. The problem happens when a program does these steps (all with the global LLVMContext): 1. Loads a module (otherModule) that uses `dispatch_object_t`. 2. Generates code that calls `dispatch_release`, which takes a `dispatch_object_t` argument, into a module (mainModule). 3. Links otherModule into mainModule. 4. Generates more code that calls `dispatch_release`. In Step 4, the following failure occurs on the `CallInst::Create` call for `dispatch_release`: Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType...
2012 Dec 14
0
[LLVMdev] StructType for dispatch_object_t changed by Linker
Hi Jaymie, ... > Step 2: %union.dispatch_object_t = type { %struct.dispatch_object_s* } > Step 4: %union.dispatch_object_t = type { %struct.dispatch_object_s.1* } > > Code that reproduces the problem is at http://pastebin.com/pxveBUJa and > http://pastebin.com/GDb9n9xA. > > A workaround is to call > `StructType::create(mod->getContext(),
2019 Jan 15
2
Function - replaceAllUsesWith
On Mon, Jan 14, 2019 at 3:21 AM Gaier, Bjoern via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote: Hello LLVM-World, currently I play around with a „llvm::Module” and an external function defined there “puts”. Normally this function gets resolved in the JIT-Process but I wonder about two things: 1. Can I resolve the function already in this step? I
2019 Jan 15
2
Function - replaceAllUsesWith
...19 12:42 To: Gaier, Bjoern <Bjoern.Gaier at horiba.com>; Mehdi AMINI <joker.eph at gmail.com> Cc: llvm-dev <llvm-dev at lists.llvm.org> Subject: Re: [llvm-dev] Function - replaceAllUsesWith Hi Björn What does the IR code look like when you dump your module? llvm::outs() << mainModule; I guess for the external function "puts" it will have a declaration like this: declare i32 @puts(i8*) When loading your module in the JIT, RuntimeDyld will resolve it to an actual address. This lookup is done by name and it happens in a stage called external symbol resolution. You sho...
2020 May 23
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...wed from the lli tool. Once I have the Module instance I construct an instance of orc::LLLazyJIT (J), configure it (again closely following the logic in lli tool) to which I then add the module like this: // Add the main module. ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule), TSCtx))); Finally the module is executed like this: // Run main. auto MainSym = ExitOnErr(J->lookup("main")); typedef int (*MainFnPtr)(int, char *[]); auto Result = orc::runAsMain( jitTargetAddressToFunction<MainFnPtr>(MainSym.getAddress()), Args, Stri...
2020 Jun 06
4
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...losely following the logic in lli tool) >>>>> to which I then add the module like this: >>>>> >>>>> // Add the main module. >>>>> >>>>> >>>>> ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule), >>>>> TSCtx))); >>>>> >>>>> >>>>> Finally the module is executed like this: >>>>> >>>>> // Run main. >>>>> >>>>> auto MainSym = ExitOnErr(J->lookup("main")...
2020 Jun 20
1
Assertion triggered when running simple hello-world code on iOS device using ORC/LLLazyJIT
...gt;>>>>> to which I then add the module like this: > >>>>>>> > >>>>>>> // Add the main module. > >>>>>>> > >>>>>>> > ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule), > TSCtx))); > >>>>>>> > >>>>>>> > >>>>>>> Finally the module is executed like this: > >>>>>>> > >>>>>>> // Run main. > >>>>>>> > >>>&...
2010 May 17
0
strace log
...0 stat("/usr/lib/xen-3.2-1/bin/../lib/python/xen/xm/main", 0x7fffffff9b70) = -1 ENOENT (No such file or directory) open("/usr/lib/xen-3.2-1/bin/../lib/python/xen/xm/main.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xen-3.2-1/bin/../lib/python/xen/xm/mainmodule.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xen-3.2-1/bin/../lib/python/xen/xm/main.py", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=81560, ...}) = 0 open("/usr/lib/xen-3.2-1/bin/../lib/python/xen/xm/main.pyc", O_RDONLY) = 4 fstat(4, {st...