Lines Matching refs:Ops
192 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldNoOpMath() argument
196 if (isNeutralElement(Ops[1].getOp(), Const1)) { in tryFoldNoOpMath()
208 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldConstants() argument
212 auto Const2 = isConstantVal(Ops[1]); in tryFoldConstants()
217 Const1, *Const2, static_cast<dwarf::LocationAtom>(Ops[2].getOp())); in tryFoldConstants()
219 consumeOneOperator(Cursor, Loc, Ops[0]); in tryFoldConstants()
233 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldCommutativeMath() argument
237 auto Const2 = isConstantVal(Ops[2]); in tryFoldCommutativeMath()
238 auto Operand1 = static_cast<dwarf::LocationAtom>(Ops[1].getOp()); in tryFoldCommutativeMath()
239 auto Operand2 = static_cast<dwarf::LocationAtom>(Ops[3].getOp()); in tryFoldCommutativeMath()
246 consumeOneOperator(Cursor, Loc, Ops[0]); in tryFoldCommutativeMath()
261 uint64_t Const1, ArrayRef<DIExpression::ExprOperand> Ops, uint64_t &Loc, in tryFoldCommutativeMathWithArgInBetween() argument
264 auto Const2 = isConstantVal(Ops[4]); in tryFoldCommutativeMathWithArgInBetween()
265 auto Operand1 = static_cast<dwarf::LocationAtom>(Ops[1].getOp()); in tryFoldCommutativeMathWithArgInBetween()
266 auto Operand2 = static_cast<dwarf::LocationAtom>(Ops[3].getOp()); in tryFoldCommutativeMathWithArgInBetween()
267 auto Operand3 = static_cast<dwarf::LocationAtom>(Ops[5].getOp()); in tryFoldCommutativeMathWithArgInBetween()
269 if (!Const2 || Ops[2].getOp() != dwarf::DW_OP_LLVM_arg || in tryFoldCommutativeMathWithArgInBetween()
276 consumeOneOperator(Cursor, Loc, Ops[0]); in tryFoldCommutativeMathWithArgInBetween()
292 SmallVector<DIExpression::ExprOperand, 8> Ops; in foldConstantMath() local
297 Ops.clear(); in foldConstantMath()
312 Ops.push_back(*Op); in foldConstantMath()
319 Ops.push_back(*Op); in foldConstantMath()
322 if (tryFoldNoOpMath(*Const1, Ops, Loc, Cursor, ResultOps)) in foldConstantMath()
328 consumeOneOperator(Cursor, Loc, Ops[0]); in foldConstantMath()
332 Ops.push_back(*Op); in foldConstantMath()
335 if (tryFoldConstants(*Const1, Ops, Loc, Cursor, ResultOps)) in foldConstantMath()
341 consumeOneOperator(Cursor, Loc, Ops[0]); in foldConstantMath()
345 Ops.push_back(*Op); in foldConstantMath()
348 if (tryFoldCommutativeMath(*Const1, Ops, Loc, Cursor, ResultOps)) in foldConstantMath()
353 consumeOneOperator(Cursor, Loc, Ops[0]); in foldConstantMath()
357 Ops.push_back(*Op); in foldConstantMath()
360 consumeOneOperator(Cursor, Loc, Ops[0]); in foldConstantMath()
364 Ops.push_back(*Op); in foldConstantMath()
368 if (tryFoldCommutativeMathWithArgInBetween(*Const1, Ops, Loc, Cursor, in foldConstantMath()
372 consumeOneOperator(Cursor, Loc, Ops[0]); in foldConstantMath()