Home
last modified time | relevance | path

Searched refs:AddLHS (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2554 Value *AddLHS, *AddRHS; in match() local
2555 auto AddExpr = m_Add(m_Value(AddLHS), m_Value(AddRHS)); in match()
2559 if (AddExpr.match(ICmpLHS) && (ICmpRHS == AddLHS || ICmpRHS == AddRHS)) in match()
2560 return L.match(AddLHS) && R.match(AddRHS) && S.match(ICmpLHS); in match()
2564 if (AddExpr.match(ICmpRHS) && (ICmpLHS == AddLHS || ICmpLHS == AddRHS)) in match()
2565 return L.match(AddLHS) && R.match(AddRHS) && S.match(ICmpRHS); in match()
2585 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match()
2586 return L.match(AddLHS) && R.match(AddRHS) && S.match(ICmpLHS); in match()
2590 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match()
2591 return L.match(AddLHS) && R.match(AddRHS) && S.match(ICmpRHS); in match()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp813 Value *AddLHS; in computeValueKnownInPredecessorsImpl() local
816 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in computeValueKnownInPredecessorsImpl()
817 if (!isa<Instruction>(AddLHS) || in computeValueKnownInPredecessorsImpl()
818 cast<Instruction>(AddLHS)->getParent() != BB) { in computeValueKnownInPredecessorsImpl()
824 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS)); in computeValueKnownInPredecessorsImpl()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7642 GAdd *AddLHS = getOpcodeDef<GAdd>(LHS, MRI); in matchAddOverflow() local
7643 if (MaybeRHS && AddLHS && MRI.hasOneNonDBGUse(Add->getReg(0)) && in matchAddOverflow()
7644 ((IsSigned && AddLHS->getFlag(MachineInstr::MIFlag::NoSWrap)) || in matchAddOverflow()
7645 (!IsSigned && AddLHS->getFlag(MachineInstr::MIFlag::NoUWrap)))) { in matchAddOverflow()
7647 getConstantOrConstantSplatVector(AddLHS->getRHSReg()); in matchAddOverflow()
7656 B.buildSAddo(Dst, Carry, AddLHS->getLHSReg(), ConstRHS); in matchAddOverflow()
7663 B.buildUAddo(Dst, Carry, AddLHS->getLHSReg(), ConstRHS); in matchAddOverflow()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp4800 const Expr *AddLHS = nullptr, *AddRHS = nullptr; in getOverflowPatternBinOp() local
4805 AddLHS = BO->getLHS(); in getOverflowPatternBinOp()
4809 if (!AddLHS || !AddRHS) in getOverflowPatternBinOp()
4814 LHSDecl = AddLHS->IgnoreParenImpCasts()->getReferencedDeclOfCallee(); in getOverflowPatternBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp2468 Register AddLHS = I.getOperand(1).getReg(); in earlySelect() local
2471 LLT Ty = MRI.getType(AddLHS); in earlySelect()
2503 std::swap(AddLHS, AddRHS); in earlySelect()
2515 emitCSINC(/*Dst=*/AddDst, /*Src =*/AddLHS, /*Src2=*/AddLHS, InvCC, MIB); in earlySelect()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4571 Value *AddLHS = nullptr; in matchScaledValue() local
4573 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI))) && in matchScaledValue()
4576 TestAddrMode.ScaledReg = AddLHS; in matchScaledValue()