search for: erocha

Displaying 13 results from an estimated 13 matches for "erocha".

Did you mean: rocha
2013 Jan 08
4
[LLVMdev] get ref to parent instruction
Hi all, How can I get a reference to an instruction if I have a reference to an operand? For example, let suppose I have a reference to the ConstantExpr "getelementptr inbounds" in the following instruction: %4 = getelementptr i32* getelementptr inbounds ([8 x i32]* @__mem_grid_MOD_nnyp, i32 0, i32 0), i32 %3 then, how can I get a reference to the GetElementPtrInst object? The
1999 May 17
0
installing under IRIX 6.3
...g goes well, but when I do the make I get the following error: ld: ERROR 33: Unresolved text symbol "__builtin_alignof" -- 1st referenced by errors.o. ld: INFO 60: Output file removed because of error. make[2]: *** [../../bin/R.binary] Error 1 make[2]: Leaving directory `/abiusers/people/erocha/RHOME/src/main' make[1]: *** [R] Error 1 make[1]: Leaving directory `/abiusers/people/erocha/RHOME/src' make: *** [R] Error 1 I have switched from my native make to GNU make, I use gcc, and have also made the changements suggested by George White in the Mathlib.h file (the so-called SGI ma...
2012 Dec 29
2
[LLVMdev] GetElementPtrConstantExpr question
Hi all, I just come across an IR instruction like this: %0 = getelementptr i32* getelementptr inbounds ([42 x i32]* @aaa, i32 0, i32 0), i32 %2 What does the part "i32* getelementptr inbounds ([42 x i32]* @aaa, i32 0, i32 0)" mean? As far as I could understand this is a GetElementPtrConstantExpr, isn't it? My question is: how can I instantiate a class that represents that
2013 Jan 08
0
[LLVMdev] get ref to parent instruction
On Tue, Jan 8, 2013 at 3:06 PM, Eduardo <erocha.ssa at gmail.com> wrote: > Hi all, > > How can I get a reference to an instruction if I have a reference to > an operand? For example, let suppose I have a reference to the > ConstantExpr "getelementptr inbounds" in the following instruction: > > %4 = getelementp...
2013 Jan 08
0
[LLVMdev] get ref to parent instruction
Eduardo <erocha.ssa at gmail.com> writes: > How can I get a reference to an instruction if I have a reference to > an operand? For example, let suppose I have a reference to the > ConstantExpr "getelementptr inbounds" in the following instruction: > > %4 = getelementptr i32* geteleme...
2013 Jan 09
1
[LLVMdev] get ref to parent instruction
...ons like the one I showed can I expect that Value::use_begin and Value::use_end will return only the getelementptr or there is a chance I will get other users of that constant? Thanks a lot, Eduardo On Jan 8, 2013 9:39 PM, "Óscar Fuentes" <ofv at wanadoo.es> wrote: > Eduardo <erocha.ssa at gmail.com> writes: > > > How can I get a reference to an instruction if I have a reference to > > an operand? For example, let suppose I have a reference to the > > ConstantExpr "getelementptr inbounds" in the following instruction: > > > > %4...
2012 Dec 02
0
[LLVMdev] GetElementPtrInst question
...; IRB(BB); IRB.CreateGEP(myreg1, myreg2); I assume because you asked this question, something went wrong when using the above method. What was it? :) Cheers, James ________________________________________ From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] On Behalf Of Eduardo [erocha.ssa at gmail.com] Sent: 02 December 2012 15:37 To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] GetElementPtrInst question Hi all, How can I create an llvm::GetElementPtrInst in which the pointer and the index are in registers previously loaded with llvm::LoadInst ? I mean, the generated instruction...
2012 Dec 02
1
[LLVMdev] GetElementPtrInst question
Hi James, Thanks for your quick reply. > I assume because you asked this question, something went wrong when using the above method. What was it? :) No, I am not using this method. I was trying to create a llvm::GetElementPtrInst . I didn't create IRBuilder. I am writing a ModulePass that insert new instruction to an existing Module. Besides, how can you get a reference to myreg1 ?
2012 Dec 02
3
[LLVMdev] GetElementPtrInst question
Hi all, How can I create an llvm::GetElementPtrInst in which the pointer and the index are in registers previously loaded with llvm::LoadInst ? I mean, the generated instruction will be like this: %1 = getelementptr i8* %myreg1, i32 %myreg2 here, %myreg1 and %myreg2 are previously created by load instructions (llvm::LoadInst). Please, let me know if there is an example of something similar.
2012 Nov 18
1
[LLVMdev] get size of a GlobalVariable
Hi, How can I get the size of a global variable if I have a reference to the corresponding llvm::GlobalVariable object? What if this variable is an array or struct, how can I get the size of the whole variable? Thanks in advance, Eduardo
2012 Dec 05
0
[LLVMdev] how to get and modify a global variable inside a module
Hi Dong Chen, You can write a ModulePass class and implement a runOnModule method. Inside this method you can access Module::global_iterator and get a reference to all global variables of a module. With this reference, you can change this variable. But be careful, you may need to change also the references to those variables. Have a look to the method GlobalVariable::use_begin and use_end. They
2012 Dec 05
0
[LLVMdev] how to get and modify a global variable inside a module
Hi Dong Chen, I realized you are actually executing the IR, right? I am not sure if the things I mentioned apply in that case. Actually, I wrote a optimization pass that modify the IR. It modifies global variables and the final IR is intended to be compiled. A snippet of what I do looks like this: class TestClass : public llvm::ModulePass { public: TestClass() : llvm::ModulePass(TestClass::ID)
2012 Dec 05
0
[LLVMdev] how to get and modify a global variable inside a module
> can you get the > main memory address of the Global Variable? That is the point, at the stage I am working, there is no main memory address. I am not executing the IR code. I am just transforming it for later execution (actually, later compilation to the real machine and then execution). Sorry. Eduardo