search for: opnt_cnt

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

2018 Dec 09
2
Parse LLVM IR
...(auto iter3 = bb.begin(); iter3 != bb.end(); iter3++) { Instruction &inst = *iter3; std::cout << " Instruction " << &inst << " : " << inst.getOpcodeName(); unsigned int i = 0; unsigned int opnt_cnt = inst.getNumOperands(); for(; i < opnt_cnt; ++i) { Value *opnd = inst.getOperand(i); std::string o; if (opnd->hasName()) { o = opnd->getName(); std::cout << "...