similar to: [LLVMdev] "opt" exit code from LLVM pass

Displaying 20 results from an estimated 200000 matches similar to: "[LLVMdev] "opt" exit code from LLVM pass"

2012 Mar 01
1
[LLVMdev] Linking problem in a pass
HI Duncan, Your understanding of the problem is correct. However, the XYZ class is not inside an anonymous name space. Also, all the XYZ methods are defined in the .cpp file. Looking at the error message: opt: symbol lookup error: path/to/pass.so: undefined symbol: _ZN12DataTransferD1Ev Where DataTransfer is the class name. Maybe I am missing certain type of constructors? Thanks, Welson On
2012 Mar 01
0
[LLVMdev] Linking problem in a pass
Hi Welson, are you saying that the .o file containing the class is being linked into the .so file, but nonetheless you get "undefined symbol XYZ" errors where XYZ is that class? Maybe you defined the class inside an anonymous name space? Alternatively, if XYZ refers to a method of the class, maybe you forgot to define that method. Ciao, Duncan. On 01/03/12 17:36, Welson Sun wrote:
2012 Mar 01
2
[LLVMdev] Linking problem in a pass
Originally, the problem is the lack of .cpp file. Then I noticed the compilation log is not showing the .o file being generated for the non-pass classes. Then I added the .cpp files for each .h file, then the .o files are being generated, shown in the Debug directory. Actually, if I add "VERBOSE = 1" in the Makefile, it shows the linking command is actually linking all the .o files into
2020 Aug 11
2
opt - replicating multiple passes from -O3 -debug-pass=Executions
Hello, I am trying to replicate the output from opt -O3 foo.bc -o foo.opt.bc by specifying the individual passes instead of the -O3 flag. Looking at the passes from opt -O3 foo.bc -o foo.bc -debug-pass=Executions it seems there are two passes being run. When I run the flags indicated for the two passes specified in the 'Pass Arguments:' as two sequential opt processes or a single opt
2012 Mar 01
0
[LLVMdev] Linking problem in a pass
On 2/29/12 11:03 PM, Welson Sun wrote: > My pass uses another class which is defined in a separate .h file, > which sits in the same folder as the pass .cpp file. The pass compiles > fine, but when using the pass "opt -load ...", there is an error: opt > symbol lookup error .... undefined symbol xxx, where xxx is the > class name. It looks like that class file's
2011 Dec 07
0
[LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
Hello, On Dec 7, 2011, at 2:07 AM, Seb wrote: > Hi all, > > I would like to add an option for LLVM 'opt' to disable a specific optimization pass from command line. > > The idea is to have something like: > > opt -O2 -disable-pass=[passname,...] > > Do you think it could be useful ? I have few questions : - Why (and when) would you us this ? - Some of the
2010 Mar 29
1
[LLVMdev] Online opt style code pass / profiling possible in LLVM JIT?
Hi I am not sure if it is possible to do something similar to what the LLVM pass framework offers (via the opt program) but in the JIT instead (when running lli). Is it possible to do any kind of online profiling (or optimization) of dynamically compiler code similar to writing an opt style code pass module? Or would I have to change a lot of stuff in the JIT? Thanks -Puyan
2011 Dec 08
3
[LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
Hello Devang, answers are interleaved 2011/12/7 Devang Patel <dpatel at apple.com> > Hello, > > On Dec 7, 2011, at 2:07 AM, Seb wrote: > > > Hi all, > > > > I would like to add an option for LLVM 'opt' to disable a specific > optimization pass from command line. > > > > The idea is to have something like: > > > > opt -O2
2012 Mar 01
2
[LLVMdev] Linking problem in a pass
My pass uses another class which is defined in a separate .h file, which sits in the same folder as the pass .cpp file. The pass compiles fine, but when using the pass "opt -load ...", there is an error: opt symbol lookup error .... undefined symbol xxx, where xxx is the class name. It looks like that class file's object file is not linked into the pass.so file. How should I change
2011 Dec 09
2
[LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
David, I think my explanation is not clear, my front-end did NOTt generate 'llvm.memcpy' it generate LL code that after use of LLVM 'opt' get transformed by 'loop-idom' pass into an 'llvm.memcpy' for an overlapping loop: static void t0(int n) { int i; for (i=0; i<n; i++) result[i+1] = result[i]; } Then 'llc' expanded llvm.memcpy into a
2012 Jan 16
2
[LLVMdev] Opt pass 'Canonicalize Induction Variables' not working
Hello Tobi, Thank you for the quick reply. I updated my complete build suite with your script (http://polly.grosser.es/polly.sh). The make-test fails with some errors, the rest went smoothly; -- Exit Code: 1 Command Output (stderr): -- LLVM ERROR: Could not resolve external global address: stdout -- ******************** Testing Time: 10.01s ******************** Failing Tests (3): Polly ::
2011 Dec 07
2
[LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
Hi all, I would like to add an option for LLVM 'opt' to disable a specific optimization pass from command line. The idea is to have something like: opt -O2 -disable-pass=[passname,...] Do you think it could be useful ? How should I proceed to develop it and commit changes to LLVM trunk ? Thanks for your advices and recommandations. Best Regards Seb -------------- next part
2018 Aug 15
3
How is llvm-opt-fuzzer supposed to be built and used with a pass pipeline?
Hello List, I'm currently writing my own little optimization pass (on LLVM 6.0) and considered it a neat idea to fuzz it using llvm-opt-fuzzer, which in theory should be a ready-made tool for such jobs as far as I can tell, potentially helping me to find UB and Address issues in my pass. So I went ahead and followed the instructions in the build manual [1] to build LLVM's llvm-opt-fuzzer
2013 Jul 30
0
[LLVMdev] LLVM (opt) -profile-verifier is not pass resilient
I compiled SPEC CPU2006 bzip2 with Clang, and generated profiles with OPT's -insert-optimal-edge-profiling option. After a profile run, I launched OPT with -profile-loader -profile-verifier flags and also passed -O3 flag. This caused OPT to give a warning "WARNING: profile information is inconsistent with the current program!" and then fail with an assert (ASSERT:inWeight and
2012 Sep 19
1
[LLVMdev] Alias analysis result
Hi Welson, > In case "my_pass" is compiled into a standalone executable, how can I run the > specific alias analysis in the code? I suggest you work out what passing -basic-aa to opt does, how it works, and do the same in your code. Ciao, Duncan. > > Thanks > > On Thu, Mar 8, 2012 at 8:55 AM, Duncan Sands <baldrick at free.fr > <mailto:baldrick at
2014 Apr 18
2
[LLVMdev] "lazy symbol binding failed" with dynamically loaded pass in opt
Hi Tim, Dear List, Am 18.04.2014 um 10:08 schrieb Tim Northover <t.p.northover at gmail.com>: > One common problem (the only one I really know about, unfortunately) > is trying to load a module into Xcode's copy of "opt" rather than one > from the same tree as your module. I just double-checked that I use the opt executable from the same tree I use to build the
2019 Sep 11
2
Loop Opt WG Meeting Minutes for Sep 11, 2019
--------------------------- Wed, Sep 11, 2019: --------------------------- - LICM vs Loop Sink Strategy (Whitney) - LICM and SCEV expander host code with no regards to increased live-ranges. This is a long standing issue where historically preference has been to keep LICM more aggressive. - Two questions from IBM side: a. This problem is not specific to the POWER
2020 Sep 17
3
[NPM] Register target specific pass with opt
Hello LLVM community, I was trying to port a target specific loop transformation pass (HexagonVectorLoopCarriedReusePass) to the New Pass Manager. However, I could not figure out a way to register this pass with opt. I can see that llvm/lib/Passes/PassRegistry.def is the registry for target independent passes. Can anyone point me to an example/API which can help me in registering this pass so
2018 May 25
1
LLVM Pass To Remove Dead Code In A Basic Block
> I’m just wondering why not have a ‘br’ to an exit basic block instead of ‘ret’ mid-stream of instructions. > Have you considered this approach instead? Thanks for bringing this up. Yes. In fact, I tried that approach/pattern first. Simply, you create default exit block and a local return variable (to track return value) per function, but it requires extra flags and variables to track
2011 Dec 09
3
[LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
2011/12/9 Joerg Sonnenberger <joerg at britannica.bec.de> > On Fri, Dec 09, 2011 at 10:03:37AM +0100, Seb wrote: > > I think my explanation is not clear, my front-end did NOTt generate > > 'llvm.memcpy' it generate LL code that after use of LLVM 'opt' get > > transformed by 'loop-idom' pass into an 'llvm.memcpy' for an overlapping >