search for: useit_

Displaying 1 result from an estimated 1 matches for "useit_".

Did you mean: useit
2011 Jul 13
1
[LLVMdev] Confusion with GetElementPtr and Defs/Uses
...on: *%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 no uses [not the case] (pIRI here is a data...