Lines Matching refs:OpIdx
28 unsigned OpIdx; // Operand index variable
33 assert(!InstI.atEnd() && OpIdx < InstI->getNumOperands() && in isAtConstant()
35 return isa<Constant>(InstI->getOperand(OpIdx)); in isAtConstant()
39 inline constant_iterator(const Function *F) : InstI(inst_begin(F)), OpIdx(0) { in constant_iterator()
47 : InstI(inst_end(F)), OpIdx(0) { in constant_iterator()
50 inline bool operator==(const _Self& x) const { return OpIdx == x.OpIdx &&
56 return cast<Constant>(InstI->getOperand(OpIdx));
61 ++OpIdx;
64 while (OpIdx < NumOperands && !isAtConstant()) {
65 ++OpIdx;
68 if (OpIdx < NumOperands) return *this; // Found a constant!
70 OpIdx = 0;