search for: rafiul

Displaying 10 results from an estimated 10 matches for "rafiul".

2016 Mar 22
2
Passing llvm option -mem2reg to clang
...e: > Hi, > > You can't schedule passes from the command line using clang, only `opt` has this ability (AFAIK). > > If you tell us what is your use-case, we may be able to point you to an alternative solution. > > -- > Mehdi > >> On Mar 21, 2016, at 5:52 PM, Syed Rafiul Hussain via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> 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...
2016 Mar 22
2
Passing llvm option -mem2reg to clang
...-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 <rafiul1906 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...
2016 Mar 22
2
Passing llvm option -mem2reg to clang
...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
2016 Mar 22
1
Passing llvm option -mem2reg to clang
...ailing list, is it acceptable to allow > an analysis > pass to depend on a transformation pass (like -mem2reg pass)? Is this > acceptable so long > as it doesn't cause loop dependencies? > > > Regards, > Kevin > > > On Mon, Mar 21, 2016 at 09:30:32PM -0400, Syed Rafiul Hussain via llvm-dev > wrote: > > 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 -...
2016 Jan 22
3
LLVM - getAnalysisUsage()
...al there are three places where getAnalysis() directive has been used for X, Y, Z. However, for each getAnalysis() call, all three passes are scheduled/executed. On Fri, Jan 22, 2016 at 12:24 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> On Jan 21, 2016, at 9:05 PM, Syed Rafiul Hussain via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi, >> >> I am using llvm-3.8 for my project. Following is my getAnalysisUsage() method: >> >> virtual void getAnalysisUsage(AnalysisUsage &AU) const override >> { >> AU.setPre...
2016 Jan 28
2
Find the instructions where a particular value is defined
...at line 79 of the IR, I have found %b. Now I would like to find lines 61 and 70 where %b has been assigned with some values using store instruction. Can I achieve this at IR level? On Wed, Jan 27, 2016 at 9:15 PM, John Criswell <jtcriswel at gmail.com> wrote: > On 1/27/16 8:42 PM, Syed Rafiul Hussain via llvm-dev wrote: >> >> Sorry, I should ask the following: >> finds all the instructions of a function where a particular variable is >> defined? >> Lets consider the following code snippet: >> >> 1. void foo(){ >> 2. int a, b; >> 3. i...
2016 Jan 28
2
Find the instructions where a particular value is defined
.... if(a<10) 6. b = 5; 7. cout << b; 8. } I would like to know the instructions where variable b can be be defined, i.e, in this case, the instructions 4 and 6. On Wed, Jan 27, 2016 at 8:15 PM, Tim Northover <t.p.northover at gmail.com> wrote: > On 27 January 2016 at 17:08, Syed Rafiul Hussain via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> I am wondering if there is anything like def-use chain which finds all >> the instructions of a function where a particular value is defined? > > How do you mean? LLVM IR is in SSA form, which means that each V...
2016 Jan 22
4
LLVM - getAnalysisUsage()
Hi, I am using llvm-3.8 for my project. Following is my getAnalysisUsage() method: virtual void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesAll(); AU.addRequired<X>(); AU.addRequired<Y>(); AU.addRequired<Z>(); } Now, if I call getAnalysis<X>(*F), instead of invoking just the X pass, all the passes, i.e., X, Y and Z are being
2016 Apr 27
3
ArrayBoundChecks in SafeCode-llvm37
Hi, I am wondering if anyone could run ArrayBoundChecks located in SafeCode-llvm37 (https://github.com/jtcriswell/safecode-llvm37) on llvm-3.8? Thanks. Syed -- Rafi
2016 Jan 28
2
Find the instructions where a particular value is defined
Hi, I am wondering if there is anything like def-use chain which finds all the instructions of a function where a particular value is defined? Thanks. -- Rafi