Displaying 2 results from an estimated 2 matches for "ab78af013d3a11515403da8517f8f3d4a".
2016 Mar 22
1
Passing llvm option -mem2reg to clang
...(Analysis &AU), you can add
> required
> pass by:
>
> AU.addRequired<PassName>();
>
> And get the analysis from the pass:
>
> PassName &P = getAnalysis<PassName>();
>
> See:
>
>
> http://www.llvm.org/docs/doxygen/html/classllvm_1_1Pass.html#ab78af013d3a11515403da8517f8f3d4a
>
> Remember to include the necessary header files. This is a way of making
> sure your
> pass always rely on the other passes you want.
>
> BTW I also have a question for the mailing list, is it acceptable to allow
> an analysis
> pass to depend on a transformation pass (li...
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