search for: use_iter

Displaying 3 results from an estimated 3 matches for "use_iter".

Did you mean: msg_iter
2011 Jul 13
1
[LLVMdev] Confusion with GetElementPtr and Defs/Uses
...ementPtr instructions. Say we have a Definition: *%29 = getelementptr inbounds [10 x i32]* @c, i32 0, i32 %28* Now, I'd like to see the uses of that definition. In my code, I do this twice, in slightly different ways. This first method works and shows instructions that use %29: *for(Value::use_iterator useIt = defInsn->use_begin(), useIt_e = defInsn->use_end(); useIt != useIt_e; useIt++){ Instruction *pUseInstr = dyn_cast<Instruction>(*useIt); //This is the current use of the defInsn }* However, this code later on does not work and shows the def of %29 to have...
2011 Jun 02
0
[LLVMdev] LLVM Instruction Operands
On Jun 2, 2011, at 9:46 AM, Griffin Wright wrote: > > Hello all: > > I apologize for what I imagine is a rather silly question, but I'm still > somewhat new to LLVM and am stuck. I am reworking some code that was > originally in the backend involving MachineInstructions and > MachineOperands, and I now need for it to function as an LLVM IR pass, > using just
2011 Jun 02
3
[LLVMdev] LLVM Instruction Operands
Hello all: I apologize for what I imagine is a rather silly question, but I'm still somewhat new to LLVM and am stuck. I am reworking some code that was originally in the backend involving MachineInstructions and MachineOperands, and I now need for it to function as an LLVM IR pass, using just Instructions, etc, and nothing related to 'Machine'. However, I am not sure how to get the