search for: optimizemodul

Displaying 5 results from an estimated 5 matches for "optimizemodul".

Did you mean: optimizemodule
2019 Aug 10
3
ORC v2 question
...e got it to compile and build. But looks like my compiled code is not being optimized at all. For optimization I am using the PassManagerBuilder class to setup the passes. I use OptLevel = 2. This works perfectly with ORC v1 apis, but with ORC v2 I am not sure what is happening. I can see that the optimizeModule() is being called. Second issue is - I need to use an instance method as optimizeModule() but based on the example this is now a static method. Is this a restriction in the new api? I need to pass some parameters from the JIT context such as what optimization level to use. Thanks and Regards Dib...
2019 Aug 10
2
ORC v2 question
...e my compiled code is not being optimized at all. >> >> For optimization I am using the PassManagerBuilder class to setup the >> passes. I use OptLevel = 2. This works perfectly with ORC v1 apis, but >> with ORC v2 I am not sure what is happening. I can see that the >> optimizeModule() is being called. >> >> Second issue is - I need to use an instance method as optimizeModule() >> but based on the example this is now a static method. Is this a >> restriction in the new api? I need to pass some parameters from the >> JIT context such as what optimi...
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
...= Builder.CreateStore(inc, key);} I print that global variable during execution of instrumented code. I access it's value by key->getOperand(0), but it's unchanged. I'm using ORC JIT based on this tutorial: https://llvm.org/docs/tutorial/BuildingAJIT2.html and I run ModulePass from optimizeModule function from this tutorial. In IR it looks like that: %2 = load i64, i64* @globalKey %3 = add i64 %2, 1 store i64 %3, i64* @globalKey I tried updating value of global variable, which was present in source code that I'm instrumenting. It didn't work either. I created correspondin...
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
...gt; } > > I print that global variable during execution of instrumented code. I > access it's value by key->getOperand(0), but it's unchanged. I'm using ORC > JIT based on this tutorial: > https://llvm.org/docs/tutorial/BuildingAJIT2.html and I run ModulePass > from optimizeModule function from this tutorial. > > In IR it looks like that: > > %2 = load i64, i64* @globalKey > > %3 = add i64 %2, 1 > > store i64 %3, i64* @globalKey > > I tried updating value of global variable, which was present in source > code that I'm instrumenting...
2018 Nov 05
2
ORC JIT api, object files and stackmaps
Hi Christian Your use case seems to have similar requirements as remote JITing in ORC. So far I haven't used that part myself and I am sure Lang can tell you much more about it. However, this comment on the RemoteObjectClientLayer class sounds promising for your questions (1) and (2): /// Sending relocatable objects to the server (rather than fully relocated /// bits) allows JIT'd code