similar to: [LLVMdev] newbie questions

Displaying 20 results from an estimated 80000 matches similar to: "[LLVMdev] newbie questions"

2011 Mar 28
2
[LLVMdev] array index access
Oh I see what you mean but I don't think that is the value that I want. In the code, I know that %N = load i32* %k, align 4 %p = getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 %M, i32 %N So I analyze the GEP and know that %N is a pointer to an int32, which is the array index. I want to get that index so I can insert a check to see if it violates the array bounds. So the final code
2011 Mar 28
0
[LLVMdev] array index access
On Mon, Mar 28, 2011 at 12:48 PM, George Baah <georgebaah at gmail.com> wrote: > Oh I see what you mean but I don't think that is the value that I want. > In the code, I know that > %N = load i32* %k, align 4 > %p = getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 %M, i32 %N > So I analyze the GEP and know that %N is a pointer to an int32, which is the > array
2008 Feb 07
0
[LLVMdev] newbie questions
On Feb 6, 2008 3:22 PM, George Baah <georgebaah at gmail.com> wrote: > Hi All, > I am new to LLVM. I am trying to get the Hello example in > "lib/Transform/Hello" to run. But when I do a make in the directory > I get this error. I don't understand why it can't find these make files. > > ../../../Makefile.common:60: ../../../Makefile.config: No such file
2008 Feb 06
2
[LLVMdev] newbie questions
Hi All, I am new to LLVM. I am trying to get the Hello example in "lib/Transform/Hello" to run. But when I do a make in the directory I get this error. I don't understand why it can't find these make files. ../../../Makefile.common:60: ../../../Makefile.config: No such file or directory ../../../Makefile.common:68: /Makefile.rules: No such file or directory Should i make
2012 Aug 21
0
[LLVMdev] DominanceFrontier
George Baah <georgebaah at gmail.com> writes: > Hi Guys, > > I saw in the API that DominanceFrontier has been deprecated. Is this > for real? > I have read the computational issues but shouldn't that be left to the > users of llvm? > My concern is I am writing a Control Dependence module that uses > Dominance-Frontier information. > Getting rid of Dominance
2012 Aug 20
4
[LLVMdev] DominanceFrontier
Hi Guys, I saw in the API that DominanceFrontier has been deprecated. Is this for real? I have read the computational issues but shouldn't that be left to the users of llvm? My concern is I am writing a Control Dependence module that uses Dominance-Frontier information. Getting rid of Dominance Frontiers will put me in a tight spot. George -------------- next part -------------- An HTML
2008 Jan 10
1
[LLVMdev] PDG (program dependence graph)
Hi Everyone, I am new to LLVM and I was wondering whether there is an implementation of PDG (program dependence graph) in the community. I do not want to re-invent the wheel :). Thanks. George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080110/7b843c33/attachment.html>
2011 Mar 28
2
[LLVMdev] array index access
Hi Duncan, For this example, getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 %M, i32 %N I am trying to retrieve %N and instrument the program to see if the value pointed to by %N exceeds the array bound (10). I assume that %N will be associated with a load instruction. I have searched through all the tutorials etc. and still have no clue as to how to do this, that is, get the value
2020 Sep 25
2
cuda __shfl_sync problem
Do you mean in llc? Because i don't see such an option i'm afraid. ~George On 24-09-2020 20:54, Johannes Doerfert wrote: > Not that I am an expert but it looks like it defaults to the minimal > PTX version that supports the compute capability. You might be able to > choose PTX 6.0 though. > > ~ Johannes > > > On 9/24/20 1:02 PM, George K via llvm-dev wrote:
2011 Mar 28
0
[LLVMdev] array index access
Hi George, > For this example, > getelementptr inbounds [10 x [20 x i32]]* %3, i32 0, i32 %M, i32 %N > I am trying to retrieve %N and instrument the program to see if the value > pointed to by %N exceeds the array bound (10). I assume that > %N will be associated with a load instruction. I have searched through > all the tutorials etc. and still have no clue as to how to
2020 Sep 24
2
cuda __shfl_sync problem
Hi, First of all, i'm not sure if i should be posting this here or in cfe-dev, but here it goes. In order to instrument CUDA kernels i first generate device IR with: clang++ -x cuda --cuda-device-only -emit-llvm --cuda-gpu-arch=sm_52 -o device.bc I also have a library that contains the instrumentation stubs for which i generate IR similarly and i link it with the device IR
2012 Apr 07
2
newbie question: strategy
newbie to R, less than a week, and I ordered some books about R, but I learn better by examples.. and thus far I cant find a good example of what I am trying to do... which follows: assuming one is using any instrument intra-day data... I want to.. open a file (lets name it signal) that will contain two fields... date/time(MM/DD/YYYY HH:MM) and signal (1=buy,-1=sell) open a file with real time
2012 Oct 04
2
[LLVMdev] question
That's because instructions have a location associated with them, not a compile unit. -eric On Thu, Oct 4, 2012 at 12:46 PM, George Baah <georgebaah at gmail.com> wrote: > I used DILocation instead of DICompileUnit and it works. Hmmm, interesting. > > George > > On Thu, Oct 4, 2012 at 1:33 AM, George Baah <georgebaah at gmail.com> wrote: >> >> Here is
2012 Oct 05
1
[LLVMdev] question
You should probably think of the DIFooBar constructors like reinterpret-casts, not "go find the thing I actually want" functions. If you hand DICompileUnit() a node that is not a compile-unit metadata node, it's not going to tell you that you goofed. If you _did_ have a CU metadata node, then DICompileUnit's getDirectory() would work just fine. But you don't. --paulr
2012 Oct 05
0
[LLVMdev] question
Hmmm, but it has a getDirectory function. -G On Thu, Oct 4, 2012 at 3:50 PM, Eric Christopher <echristo at gmail.com> wrote: > That's because instructions have a location associated with them, not > a compile unit. > > -eric > > On Thu, Oct 4, 2012 at 12:46 PM, George Baah <georgebaah at gmail.com> wrote: > > I used DILocation instead of DICompileUnit and
2012 Oct 04
0
[LLVMdev] question
I used DILocation instead of DICompileUnit and it works. Hmmm, interesting. George On Thu, Oct 4, 2012 at 1:33 AM, George Baah <georgebaah at gmail.com> wrote: > Here is the code. I am running on llvm 3.1 on Lion (Mac 10.7.4) > > *string getFileDirectory*(*const* Instruction &I){ > > MDNode *MD = I.getMetadata("dbg"); > > DICompileUnit
2012 Oct 04
2
[LLVMdev] question
Here is the code. I am running on llvm 3.1 on Lion (Mac 10.7.4) *string getFileDirectory*(*const* Instruction &I){ MDNode *MD = I.getMetadata("dbg"); DICompileUnit compileUnit(MD); return compileUnit.getDirectory().str(); } George On Wed, Oct 3, 2012 at 12:40 PM, Eric Christopher <echristo at gmail.com>wrote: > Without knowing the code that you've written
2013 May 06
2
[LLVMdev] convert switch stmts to If statements
I mean an llvm Pass that transforms switch statements into if statements. For example, if I have code with switch statements then running the pass will convert all switches to ifs in the bytecode. George On Mon, May 6, 2013 at 4:20 PM, Hal Finkel <hfinkel at anl.gov> wrote: > ----- Original Message ----- > > From: "George Baah" <georgebaah at gmail.com> > >
2013 May 06
0
[LLVMdev] convert switch stmts to If statements
There is also the LowerSwitch pass that converts switch instructions to a sequence of branches. On May 6, 2013, at 1:24 PM, George Baah <georgebaah at gmail.com> wrote: > I mean an llvm Pass that transforms switch statements into if statements. For example, if I have code with switch statements then running the pass will convert all switches to ifs in the bytecode. > > George
2012 Oct 03
2
[LLVMdev] question
Yeah, It looks like I am doing exactly what's in Dwarf*.cpp files, yet I am getting blanks. George On Tue, Oct 2, 2012 at 2:10 PM, Eric Christopher <echristo at gmail.com> wrote: > On Tue, Oct 2, 2012 at 11:00 AM, George Baah <georgebaah at gmail.com> wrote: > > Hi Guys, > > How does one get the directory of the compilation unit in llvm? > > I am using