Displaying 1 result from an estimated 1 matches for "id_gep_c".
Did you mean:
id_gep_ce
2010 Jan 25
3
[LLVMdev] Deterministic iteration over llvm iterators
...ny particular order that doesn't change from execution to
execution of the opt tool.
To make myself more clearer, here is a snippet of code that has Values
reordered each time I analyze a particular piece of code(which doesn't
change) with the LLVM opt tool and my LLVM pass.
void Anders::id_gep_ce(Value *G){
assert(G);
//Check all GEP and bitcast ConstantExpr's using G.
for(Value::use_iterator it= G->use_begin(), ie= G->use_end(); it != ie;
++it){
ConstantExpr *E= dyn_cast<ConstantExpr>(*it);
do_something_with(E);
}
i.e. use_begin() and use_end() still works...