通过User中提供的op_iterator迭代器来遍历Instruction中的操作数
Instruction* V = ...
for (User::op_iterator op = V->op_begin(), e = V->op_end(); op != e; ++op){
if (Instruction *U = dyn_cast<Instruction>(op->get())) {
...
}
}
通过User中提供的op_iterator迭代器来遍历Instruction中的操作数
Instruction* V = ...
for (User::op_iterator op = V->op_begin(), e = V->op_end(); op != e; ++op){
if (Instruction *U = dyn_cast<Instruction>(op->get())) {
...
}
}