search for: a048082a5be9ae0d8901ea64de59e5c8f

Displaying 2 results from an estimated 2 matches for "a048082a5be9ae0d8901ea64de59e5c8f".

2016 Mar 22
1
Passing llvm option -mem2reg to clang
...otePass) 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#a048082a5be9ae0d8901ea64de59e5c8f > > In your own pass in method getAnalysisUsage(Analysis &AU), you can add > required > pass by: > > AU.addRequired<PassName>(); > > And get the analysis from the pass: > > PassName &P = getAnalysis<PassName>(); > > See: > > > http://...
2016 Mar 22
2
Passing llvm option -mem2reg to clang
I have used the following command for my pass (without -mem2reg): clang -Xclang -load -Xclang MYPASS.so -c ../../tests/test1.c For mem2reg, I tried the following: clang -mllvm -mem2reg -Xclang -load -Xclang MYPASS.so -c ../../tests/test1.c On Mon, Mar 21, 2016 at 9:26 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> On Mar 21, 2016, at 6:23 PM, Syed Rafiul Hussain