search for: ourmoduleprovider

Displaying 9 results from an estimated 9 matches for "ourmoduleprovider".

2010 Jan 23
2
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
...for advice, for TheExecutionEngine === NULL, >> Which result's in a null-pointer for "TheExecutionEngine"; which >> explains the bus-errror .. Reid Kleckner wrote: > Try changing the above line to: > std::string str; > TheExecutionEngine = > EngineBuilder(OurModuleProvider).setErrorStr(str).create(); > cout << str << '\n'; > > This interface should set str to an appropriate error message if it > returns NULL. I tried this, assuming that line should be || TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&str).create();...
2010 Jan 23
0
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
...= NULL, > >>> Which result's in a null-pointer for "TheExecutionEngine"; which >>> explains the bus-errror .. > > Reid Kleckner wrote: >> Try changing the above line to: >> std::string str; >> TheExecutionEngine = >> EngineBuilder(OurModuleProvider).setErrorStr(str).create(); >> cout << str << '\n'; >> >> This interface should set str to an appropriate error message if it >> returns NULL. > > I tried this, assuming that line should be > || TheExecutionEngine = > EngineBuilder(TheMod...
2010 Jan 22
0
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
...le("my cool jit", getGlobalContext()); >  ||  //GAM: check TheModule: it's a valid pointer >  || >  ||  // create the JIT. >  || TheExecutionEngine = EngineBuilder(TheModule).create(); Try changing the above line to: std::string str; TheExecutionEngine = EngineBuilder(OurModuleProvider).setErrorStr(str).create(); cout << str << '\n'; This interface should set str to an appropriate error message if it returns NULL. Reid
2010 Jan 23
2
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
...; Which result's in a null-pointer for "TheExecutionEngine"; which >>>> explains the bus-errror .. >> >> Reid Kleckner wrote: >>> Try changing the above line to: >>> std::string str; >>> TheExecutionEngine = >>> EngineBuilder(OurModuleProvider).setErrorStr(str).create(); >>> cout << str << '\n'; >>> >>> This interface should set str to an appropriate error message if it >>> returns NULL. >> >> I tried this, assuming that line should be >> || TheExecutionEngine = &...
2010 Jan 22
3
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
Hello All I 'm studing LLVM/Clang and trying to follow the Kaleidoscope tutorial (Release 2.6 version). I found some minir docu-bugs and added them to Bugzilla. However, Now I found a show-stopper for me, the toy (v4) demo does build, but does crash, on any input. Even a simpe ';'! Looking into the (demo-code) found the that the JIT can't be build/ created,/loaded/... Which
2010 Jan 24
0
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
...l-pointer for "TheExecutionEngine"; which >>>>> explains the bus-errror .. >>> >>> Reid Kleckner wrote: >>>> Try changing the above line to: >>>> std::string str; >>>> TheExecutionEngine = >>>> EngineBuilder(OurModuleProvider).setErrorStr(str).create(); >>>> cout << str << '\n'; >>>> >>>> This interface should set str to an appropriate error message if it >>>> returns NULL. >>> >>> I tried this, assuming that line should be >>&...
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...oken. fprintf(stderr, "ready> "); getNextToken(); // Make the module, which holds all the code. TheModule = new Module("my cool jit", getGlobalContext()); // Create the JIT. TheExecutionEngine = EngineBuilder(TheModule).create(); { ExistingModuleProvider OurModuleProvider(TheModule); FunctionPassManager OurFPM(&OurModuleProvider); // Set up the optimizer pipeline. Start with registering info about how the // target lays out data structures. OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData())); // Do simple "peephole&quot...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...t;); > getNextToken(); > > // Make the module, which holds all the code. > TheModule = new Module("my cool jit", getGlobalContext()); > > // Create the JIT. > > TheExecutionEngine = EngineBuilder(TheModule).create(); > > { > ExistingModuleProvider OurModuleProvider(TheModule); > FunctionPassManager OurFPM(&OurModuleProvider); > > // Set up the optimizer pipeline. Start with registering info about how > the > // target lays out data structures. > OurFPM.add(new TargetData(*TheExecutionEngine->getTargetData())); > //...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...>  // Make the module, which holds all the code. >>  TheModule = new Module("my cool jit", getGlobalContext()); >> >>  // Create the JIT. >> >>  TheExecutionEngine = EngineBuilder(TheModule).create(); >> >>  { >>    ExistingModuleProvider OurModuleProvider(TheModule); >>    FunctionPassManager OurFPM(&OurModuleProvider); >> >>    // Set up the optimizer pipeline.  Start with registering info about >> how the >>    // target lays out data structures. >>    OurFPM.add(new TargetData(*TheExecutionEngine->getTar...