search for: promotepass

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

2016 Mar 22
2
Passing llvm option -mem2reg to clang
...l1906 at gmail.com> wrote: >> >> I have my own llvm pass which requires mem2reg. It worked fine with >> opt. However, I was trying to make it work with clang as I needed it >> to run some spec cpu benchmarks. >> >> Is there any way that I can mention mem2reg (PromotePass) pass as a >> pre-requisite in my own pass's implementation? > > How are you inserting your pass in the pipeline setup by clang? > You should be able to insert mem2reg before the same way. > Also mem2reg is ran by clang when optimizations are enabled, depending on what your pa...
2016 Mar 22
2
Passing llvm option -mem2reg to clang
I have my own llvm pass which requires mem2reg. It worked fine with opt. However, I was trying to make it work with clang as I needed it to run some spec cpu benchmarks. Is there any way that I can mention mem2reg (PromotePass) pass as a pre-requisite in my own pass's implementation? On Mon, Mar 21, 2016 at 9:01 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: > Hi, > > You can't schedule passes from the command line using clang, only `opt` has this ability (AFAIK). > > If you tell us what...
2016 Mar 22
1
Passing llvm option -mem2reg to clang
...t... It is not guaranteed to do anything to any particular piece of code, so relying on it seems very unreliable, I would think. -- Mats On 22 March 2016 at 04:32, Kevin Hu via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Hi, > > > Is there any way that I can mention mem2reg (PromotePass) pass as a > > pre-requisite in my own pass's implementation? > > I think you can consider overriding the > Pass::getAnalysisUsage(AnalysisUsage &) > method. Described as follows in manual: > > > http://www.llvm.org/docs/doxygen/html/classllvm_1_1Pass.html#a048082...
2016 Mar 22
2
Passing llvm option -mem2reg to clang
Hi, I was trying to pass llvm option -mem2reg to clang using -mllvm and I found the following error: clang (LLVM option parsing): Unknown command line argument '-mem2reg'. Try: 'clang (LLVM option parsing) -help' clang (LLVM option parsing): Did you mean '-debug'? I would appreciate if anyone could help me. -- Syed Rafiul Hussain
2019 Aug 07
2
Status of the New Pass Manager
On 8/7/19 6:20 PM, Hiroshi Yamauchi wrote: > I basically run "clang > -fexperimental-new-pass-manager -print-after-all ..." > > It's conceivable that something is different in our setup or in clang > (from opt)... I'll see if I can reproduce it outside our setup. Does it depend on machine architecture? I generally use x86... regards,   Fedor. > > Thanks.