Displaying 2 results from an estimated 2 matches for "fi_end".
Did you mean:
i_end
2013 Sep 24
2
[LLVMdev] get the address in memory where an instruction lives
Hi,
i want to get the address in memory of an instruction pointer and use it as
a key in my tables.
i iterate over the instructions in LLVM IR like this:
for (Module::iterator fi = Mod->begin(), fi_end = Mod->end(); fi != fi_end;
++fi) {
for (inst_iterator I = inst_begin(fi), E = inst_end(fi); I != E; ++I) {
Instruction *ii = dyn_cast<Instruction>(&*I);
errs() << &ii << "\n";
}
but i get the same address for every instruction,...
2013 Sep 24
1
[LLVMdev] get the address in memory where an instruction lives
...il.com
<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>> wrote:
>* Hi, *>* i want to get the address in memory of an instruction pointer and use it as a key in my tables.*>* i iterate over the instructions in LLVM IR like this:*>* for (Module::iterator fi = Mod->begin(), fi_end = Mod->end(); fi != fi_end; ++fi) {*>* for (inst_iterator I = inst_begin(fi), E = inst_end(fi); I != E; ++I) { *>* Instruction *ii = dyn_cast<Instruction>(&*I);*>* errs() << &ii << "\n";*>* }*>* *>* but i get th...