/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 305 if (Op0 && Op0->getOpcode() == Opcode) { in simplifyAssociativeBinOp() 349 if (Op0 && Op0->getOpcode() == Opcode) { in simplifyAssociativeBinOp() 646 return Op0; in simplifyAddInst() 800 return Op0; in simplifySubInst() 848 X = Op0; in simplifySubInst() 870 Z = Op0; in simplifySubInst() 941 return Op0; in simplifyMulInst() 1032 return Op0; in simplifyDivRem() 1221 return Op0; in simplifyRem() 1245 return Op0; in simplifyRem() [all …]
|
H A D | OverflowInstAnalysis.cpp | 21 bool llvm::isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, bool IsAnd, in isCheckForZeroAndMulWithOverflow() argument 28 if (!match(Op0, m_ICmp(Pred, m_Value(X), m_Zero()))) in isCheckForZeroAndMulWithOverflow() 67 bool llvm::isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, in isCheckForZeroAndMulWithOverflow() argument 70 return isCheckForZeroAndMulWithOverflow(Op0, Op1, IsAnd, Y); in isCheckForZeroAndMulWithOverflow()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 317 if (Op0 == Op1) { in visitMul() 354 Y = Op0; in visitMul() 503 if (Op0 == Op1 && match(Op0, m_FAbs(m_Value(X)))) in foldFPSignBitOps() 652 Op0->hasNUses(2)) { in visitFMul() 733 Op0 != Y) { in visitFMul() 734 Value *XX = Builder.CreateFMulFMF(Op0, Op0, &I); in visitFMul() 750 Y = Op0; in visitFMul() 1034 if (match(Op0, m_One())) { in commonIDivTransforms() 1601 if (isa<Constant>(Op0)) in visitFDiv() 1778 if (match(Op0, m_One())) { in visitURem() [all …]
|
H A D | InstCombineAddSub.cpp | 874 if (match(Op0, m_ZExt(m_Value(X))) && in foldAddWithConstant() 878 if (match(Op0, m_SExt(m_Value(X))) && in foldAddWithConstant() 883 if (match(Op0, m_Not(m_Value(X)))) in foldAddWithConstant() 958 if (C->isOne() && Op0->hasOneUse()) { in foldAddWithConstant() 1273 if (!Op0 || !Op1 || !(Op0->hasOneUse() || Op1->hasOneUse())) in factorizeMathWithShlOps() 1873 Value *Op0 = I.getOperand(0); in foldSubOfMinMax() local 1954 if (match(Op0, m_ImmConstant(C))) { in visitSub() 2006 if (match(Op0, m_AllOnes())) in visitSub() 2034 if (isFreeToInvert(Op0, Op0->hasOneUse()) && in visitSub() 2087 if (match(Op0, m_APInt(Op0C))) { in visitSub() [all …]
|
H A D | InstCombineShifts.cpp | 375 assert(Op0->getType() == Op1->getType()); in commonShiftTransforms() 390 if (isa<Constant>(Op0)) in commonShiftTransforms() 407 if (match(Op0, m_Constant(C)) && in commonShiftTransforms() 775 if (!Op0->hasOneUse()) in FoldShiftByConstant() 1130 if (match(Op0, m_One())) { in visitShl() 1199 if (Op0->hasOneUse()) { in visitLShr() 1214 if (Op0->hasOneUse()) { in visitLShr() 1232 if (match(Op0, in visitLShr() 1252 if (match(Op0, m_SExt(m_Value(X)))) { in visitLShr() 1262 Op0->hasOneUse()) { in visitLShr() [all …]
|
H A D | InstCombineAndOrXor.cpp | 1395 std::swap(Op0, Op1); in reassociateFCmps() 1811 if (match(Op0, in foldComplexAndOrPatterns() 2544 std::swap(Op0, Op1); in matchOrConcat() 3143 std::swap(Op0, Op1); in visitOr() 3206 if ((Op0 == B->getOperand(0) || Op0 == B->getOperand(1)) && in visitOr() 3696 if (Op0->hasNUses(2)) in canonicalizeAbs() 3724 Value *Op0, *Op1; in sinkNotIntoLogicalOp() local 3730 if (Op0 == Op1) in sinkNotIntoLogicalOp() 3787 Value *Op0, *Op1; in sinkNotIntoOtherHandOfLogicalOp() local 3803 Op0 = NotOp0; in sinkNotIntoOtherHandOfLogicalOp() [all …]
|
H A D | InstCombineCompares.cpp | 4131 if ((C == Op0 || D == Op0) && NoOp1WrapProblem) in foldICmpBinOp() 4457 Constant::getNullValue(Op0->getType()), Op0); in foldICmpBinOp() 4486 std::swap(Op0, X); in foldICmpWithMinMax() 4597 if (match(Op1, m_Xor(m_Value(A), m_Value(B))) && (A == Op0 || B == Op0)) { in foldICmpEquality() 4746 m_OneUse(m_c_And(m_Neg(m_Specific(Op0)), m_Specific(Op0))))) in foldICmpEquality() 4747 A = Op0; in foldICmpEquality() 5625 LHS = Op0; in foldICmpUsingKnownBits() 6076 Pred == ICmpInst::ICMP_UGT && (Op0 == A || Op0 == B)) in foldICmpOfUAddOv() 6836 if (Op0 == Op1) { in visitFCmpInst() 6862 if (!match(Op0, m_PosZeroFP()) && isKnownNeverNaN(Op0, &TLI)) in visitFCmpInst() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | ConstraintElimination.cpp | 89 Value *Op0; member 93 : Pred(Pred), Op0(Op0), Op1(Op1) {} in PreconditionTy() 318 Value *Op0; in decompose() local 335 Value *Op0; in decompose() local 339 V = Op0; in decompose() 400 std::swap(Op0, Op1); in getConstraint() 415 std::swap(Op0, Op1); in getConstraint() 698 Value *Op0, *Op1; in addInfoFor() local 717 QueueValue(Op0); in addInfoFor() 727 QueueValue(Op0); in addInfoFor() [all …]
|
H A D | Scalarizer.cpp | 543 Value *Op0 = VOp0[Elem]; in splitBinary() local 647 Value *Op0 = VOp0[I]; in visitSelectInst() local 654 Value *Op0 = SI.getOperand(0); in visitSelectInst() local 693 Value *Op0 = GEPI.getOperand(0); in visitGetElementPtrInst() local 694 if (!Op0->getType()->isVectorTy()) in visitGetElementPtrInst() 695 Op0 = Builder.CreateVectorSplat(NumElems, Op0); in visitGetElementPtrInst() 696 Scatterer Base = scatter(&GEPI, Op0); in visitGetElementPtrInst() 770 Value *V = Op0[Op0I]; in visitBitCastInst() 826 Value *OldElt = Op0[I]; in visitInsertElementInst() 860 Value *Elt = Op0[I]; in visitExtractElementInst() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/ |
H A D | SystemZTDC.cpp | 127 Value *Op0 = I.getOperand(0); in convertFCmp() local 134 auto &Sem = Op0->getType()->getFltSemantics(); in convertFCmp() 220 if (CallInst *CI = dyn_cast<CallInst>(Op0)) { in convertFCmp() 226 Op0 = CI->getArgOperand(0); in convertFCmp() 233 converted(&I, Op0, Mask, Worthy); in convertFCmp() 237 Value *Op0 = I.getOperand(0); in convertICmp() local 243 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) { in convertICmp() 263 } else if (auto *CI = dyn_cast<CallInst>(Op0)) { in convertICmp() 292 Value *Op0, *Op1; in convertLogicOp() local 297 if (Op0 != Op1) in convertLogicOp() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/Utils/ |
H A D | AArch64BaseInfo.cpp | 158 uint32_t Op0 = 0, Op1 = 0, CRn = 0, CRm = 0, Op2 = 0; in parseGenericRegister() local 160 Ops[1].getAsInteger(10, Op0); in parseGenericRegister() 165 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2; in parseGenericRegister() 172 uint32_t Op0 = (Bits >> 14) & 0x3; in genericRegisterString() local 178 return "S" + utostr(Op0) + "_" + utostr(Op1) + "_C" + utostr(CRn) + "_C" + in genericRegisterString()
|
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/ |
H A D | FastISel.h | 351 virtual unsigned fastEmit_r(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0); 355 virtual unsigned fastEmit_rr(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0, 369 Register fastEmit_ri_(MVT VT, unsigned Opcode, unsigned Op0, uint64_t Imm, 390 const TargetRegisterClass *RC, unsigned Op0); 395 const TargetRegisterClass *RC, unsigned Op0, 401 const TargetRegisterClass *RC, unsigned Op0, 407 const TargetRegisterClass *RC, unsigned Op0, 413 const TargetRegisterClass *RC, unsigned Op0, 425 const TargetRegisterClass *RC, unsigned Op0, 435 Register fastEmitInst_extractsubreg(MVT RetVT, unsigned Op0, uint32_t Idx); [all …]
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FastISel.cpp | 1932 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_r() 1954 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_rr() 1959 .addReg(Op0) in fastEmitInst_rr() 1963 .addReg(Op0) in fastEmitInst_rr() 1978 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_rrr() 1984 .addReg(Op0) in fastEmitInst_rrr() 1989 .addReg(Op0) in fastEmitInst_rrr() 2005 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_ri() 2009 .addReg(Op0) in fastEmitInst_ri() 2028 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_rii() [all …]
|
H A D | TargetLowering.cpp | 1332 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits() 1367 if (isBitwiseNot(Op0) && Op0.hasOneUse() && in SimplifyDemandedBits() 1430 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits() 1473 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits() 1600 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits() 2628 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits() 3332 if (Op0 == Op1 && Op->isOnlyUserOf(Op0.getNode())) { in SimplifyDemandedVectorElts() 4572 Op0 = Op0.getOperand(0); in SimplifySetCC() 6410 Op0 = DAG.getNode(ISD::ROTR, DL, VT, Op0, KVal); in prepareUREMEqFold() 6664 Op0 = DAG.getNode(ISD::ADD, DL, VT, Op0, AVal); in prepareSREMEqFold() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.h | 230 void validateUnaryOp(const LLT Res, const LLT Op0); 231 void validateBinaryOp(const LLT Res, const LLT Op0, const LLT Op1); 232 void validateShiftOp(const LLT Res, const LLT Op0, const LLT Op1); 493 Register Op0, 500 return buildInstr(TargetOpcode::G_PTRMASK, {Res}, {Op0, Op1}); in buildPtrMask() 597 const SrcOp &Op0, const SrcOp &Op1, in buildUAdde() argument 600 {Op0, Op1, CarryIn}); in buildUAdde() 605 const SrcOp &Op0, const SrcOp &Op1, in buildUSube() argument 608 {Op0, Op1, CarryIn}); in buildUSube() 616 {Op0, Op1, CarryIn}); in buildSAdde() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/BPF/ |
H A D | BPFAdjustOpt.cpp | 124 Value *Op0 = Icmp->getOperand(0); in adjustICmpToBuiltin() local 125 if (!isa<TruncInst>(Op0)) in adjustICmpToBuiltin() 147 M, Intrinsic::bpf_compare, {Op0->getType(), ConstOp1->getType()}); in adjustICmpToBuiltin() 148 auto *NewInst = CallInst::Create(Fn, {Opcode, Op0, ConstOp1}); in adjustICmpToBuiltin() 180 Value *Op0, *Op1; in serializeICMPInBB() local 182 if (!match(&I, m_LogicalOr(m_Value(Op0), m_Value(Op1)))) in serializeICMPInBB() 184 auto *Icmp1 = dyn_cast<ICmpInst>(Op0); in serializeICMPInBB()
|
/openbsd/gnu/llvm/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 630 auto *C0 = dyn_cast<Constant>(Op0); in simplifyX86extrq() 678 Builder.CreateBitCast(Op0, ShufTy), in simplifyX86extrq() 763 auto *C0 = dyn_cast<Constant>(Op0); in simplifyX86insertq() 1463 Value *Op0 = II.getArgOperand(0); in instCombineIntrinsic() local 1505 Value *Op0 = II.getArgOperand(0); in instCombineIntrinsic() local 1528 Value *Op0 = II.getArgOperand(0); in instCombineIntrinsic() local 1564 Value *Op0 = II.getArgOperand(0); in instCombineIntrinsic() local 1609 Value *Op0 = II.getArgOperand(0); in instCombineIntrinsic() local 1612 if (Op0 == Op1) { in instCombineIntrinsic() 1613 return IC.replaceInstUsesWith(II, Op0); in instCombineIntrinsic() [all …]
|
H A D | X86PartialReduction.cpp | 258 Value *Op0 = getZeroExtendedVal(Sub->getOperand(0)); in trySADReplacement() local 260 if (!Op0 || !Op1) in trySADReplacement() 291 Value *Zero = Constant::getNullValue(Op0->getType()); in trySADReplacement() 292 Op0 = Builder.CreateShuffleVector(Op0, Zero, ConcatMask); in trySADReplacement() 309 Value *ExtractOp0 = Builder.CreateShuffleVector(Op0, Op0, ExtractMask); in trySADReplacement() 310 Value *ExtractOp1 = Builder.CreateShuffleVector(Op1, Op0, ExtractMask); in trySADReplacement()
|
H A D | X86FloatingPoint.cpp | 1374 TOS = Op0; in handleTwoArgFP() 1384 duplicateToTop(Op0, Dest, I); in handleTwoArgFP() 1385 Op0 = TOS = Dest; in handleTwoArgFP() 1392 duplicateToTop(Op0, Dest, I); in handleTwoArgFP() 1393 Op0 = TOS = Dest; in handleTwoArgFP() 1405 bool isForward = TOS == Op0; in handleTwoArgFP() 1423 unsigned NotTOS = (TOS == Op0) ? Op1 : Op0; in handleTwoArgFP() 1434 if (KillsOp0 && KillsOp1 && Op0 != Op1) { in handleTwoArgFP() 1463 moveToTop(Op0, I); in handleCompareFP() 1488 moveToTop(Op0, I); in handleCondMovFP() [all …]
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 175 assert((Res == Op0) && "type mismatch"); in validateUnaryOp() 181 assert((Res == Op0 && Res == Op1) && "type mismatch"); in validateBinaryOp() 187 assert((Res == Op0) && "type mismatch"); in validateShiftOp() 197 return buildInstr(TargetOpcode::G_PTR_ADD, {Res}, {Op0, Op1}); in buildPtrAdd() 207 Res = Op0; in materializePtrAdd() 213 return buildPtrAdd(Res, Op0, Cst.getReg(0)); in materializePtrAdd() 223 return buildPtrMask(Res, Op0, MaskReg); in buildMaskLowPtrBits() 230 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildPadVectorWithUndefElements() 238 auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0); in buildPadVectorWithUndefElements() 253 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildDeleteTrailingVectorElements() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 2162 return m_Intrinsic<Intrinsic::bitreverse>(Op0); 2167 return m_Intrinsic<Intrinsic::bswap>(Op0); 2172 return m_Intrinsic<Intrinsic::fabs>(Op0); 2177 return m_Intrinsic<Intrinsic::canonicalize>(Op0); 2183 return m_Intrinsic<Intrinsic::minnum>(Op0, Op1); 2189 return m_Intrinsic<Intrinsic::maxnum>(Op0, Op1); 2206 return m_Intrinsic<Intrinsic::sqrt>(Op0); 2453 T0 Op0; 2456 InsertValue_match(const T0 &Op0, const T1 &Op1) : Op0(Op0), Op1(Op1) {} 2519 auto *Op0 = I->getOperand(0); [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/ |
H A D | OverflowInstAnalysis.h | 38 bool isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, bool IsAnd, 40 bool isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, bool IsAnd);
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | CodeGenCommonISel.cpp | 271 auto Op0 = salvageDebugInfoImpl(MRI, MI, Ops); in salvageDebugInfoForDbgValue() local 272 if (!Op0) in salvageDebugInfoForDbgValue() 280 UseMO.setReg(Op0->getReg()); in salvageDebugInfoForDbgValue() 281 UseMO.setSubReg(Op0->getSubReg()); in salvageDebugInfoForDbgValue()
|
/openbsd/gnu/llvm/llvm/lib/Target/LoongArch/ |
H A D | LoongArchISelLowering.cpp | 360 SDValue Op0 = Op.getOperand(0); in lowerUINT_TO_FP() local 376 EVT OpVT = Op0.getValueType(); in lowerUINT_TO_FP() 401 EVT OpVT = Op0.getValueType(); in lowerSINT_TO_FP() 643 Op0}, in lowerINTRINSIC_W_CHAIN() 654 Op0}, in lowerINTRINSIC_W_CHAIN() 665 Op0}, in lowerINTRINSIC_W_CHAIN() 674 Op0}, in lowerINTRINSIC_W_CHAIN() 696 Op0}, in lowerINTRINSIC_W_CHAIN() 807 return Op0; in lowerINTRINSIC_VOID() 1296 Results.push_back(Op0); in ReplaceNodeResults() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/CSKY/ |
H A D | CSKYISelDAGToDAG.cpp | 300 auto Op0 = N->getOperand(0); in selectAddCarry() local 311 {Op0, Op1, SDValue(CA, 0)}); in selectAddCarry() 317 {Op0, Op1, SDValue(CA, 0)}); in selectAddCarry() 321 Dl, {Type0, Type1}, {Op0, Op1, Op2}); in selectAddCarry() 343 auto Op0 = N->getOperand(0); in selectSubCarry() local 354 {Op0, Op1, SDValue(CA, 0)}); in selectSubCarry() 360 {Op0, Op1, SDValue(CA, 0)}); in selectSubCarry() 365 Dl, {Type0, Type1}, {Op0, Op1, CarryIn}); in selectSubCarry()
|