Home
last modified time | relevance | path

Searched refs:Op0 (Results 1 – 25 of 178) sorted by relevance

12345678

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp303 if (Op0 && Op0->getOpcode() == Opcode) { in simplifyAssociativeBinOp()
347 if (Op0 && Op0->getOpcode() == Opcode) { in simplifyAssociativeBinOp()
649 return Op0; in simplifyAddInst()
803 return Op0; in simplifySubInst()
851 X = Op0; in simplifySubInst()
873 Z = Op0; in simplifySubInst()
945 return Op0; in simplifyMulInst()
1112 return Op0; in simplifyDivRem()
1338 return Op0; in simplifyShift()
5757 if (match(Op0, m_FPOne()) || match(Op0, m_AnyZeroFP())) in simplifyFMAFMul()
[all …]
H A DOverflowInstAnalysis.cpp21 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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp323 if (Op0 == Op1) { in visitMul()
337 match(Op0, in visitMul()
380 Y = Op0; in visitMul()
556 if (Op0 == Op1 && match(Op0, m_FAbs(m_Value(X)))) in foldFPSignBitOps()
662 if (I.hasNoNaNs() && I.hasNoSignedZeros() && Op0 == Op1 && Op0->hasNUses(2)) { in foldFMulReassoc()
740 if (match(Op1, m_OneUse(m_c_FMul(m_Specific(Op0), m_Value(Y)))) && Op0 != Y) { in foldFMulReassoc()
741 Value *XX = Builder.CreateFMulFMF(Op0, Op0, &I); in foldFMulReassoc()
810 Y = Op0; in visitFMul()
2042 Value *F0 = Builder.CreateFreeze(Op0, Op0->getName() + ".fr"); in visitURem()
2054 Value *FrozenOp0 = Builder.CreateFreeze(Op0, Op0->getName() + ".frozen"); in visitURem()
[all …]
H A DInstCombineAddSub.cpp874 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()
1377 if (!Op0 || !Op1 || !(Op0->hasOneUse() || Op1->hasOneUse())) in factorizeMathWithShlOps()
2075 Value *Op0 = I.getOperand(0); in foldSubOfMinMax() local
2156 if (match(Op0, m_ImmConstant(C))) { in visitSub()
2221 if (match(Op0, m_AllOnes())) in visitSub()
2277 if (isFreeToInvert(Op0, Op0->hasOneUse(), ConsumesOp0) && in visitSub()
2280 Value *NotOp0 = getFreelyInverted(Op0, Op0->hasOneUse(), &Builder); in visitSub()
2333 if (match(Op0, m_APInt(Op0C))) { in visitSub()
[all …]
H A DInstCombineShifts.cpp407 assert(Op0->getType() == Op1->getType()); in commonShiftTransforms()
422 if (isa<Constant>(Op0)) in commonShiftTransforms()
439 if (match(Op0, m_Constant(C)) && in commonShiftTransforms()
809 if (!Op0->hasOneUse()) in FoldShiftByConstant()
1217 if (match(Op0, m_One())) { in visitShl()
1285 if (Op0->hasOneUse()) { in visitLShr()
1301 if (Op0->hasOneUse()) { in visitLShr()
1319 if (match(Op0, in visitLShr()
1339 if (match(Op0, m_SExt(m_Value(X)))) { in visitLShr()
1349 Op0->hasOneUse()) { in visitLShr()
[all …]
H A DInstCombineAndOrXor.cpp1540 std::swap(Op0, Op1); in reassociateFCmps()
1677 match(Op0, in foldCastedBitwiseLogic()
1962 if (match(Op0, in foldComplexAndOrPatterns()
3616 if ((Op0 == B->getOperand(0) || Op0 == B->getOperand(1)) && in visitOr()
4183 if (Op0->hasNUses(2)) in canonicalizeAbs()
4229 Value *Op0, *Op1; in sinkNotIntoLogicalOp() local
4235 if (Op0 == Op1) in sinkNotIntoLogicalOp()
4250 Op0 = freelyInvert(*this, Op0, &I); in sinkNotIntoLogicalOp()
4275 Value *Op0, *Op1; in sinkNotIntoOtherHandOfLogicalOp() local
4286 Op0 = NotOp0; in sinkNotIntoOtherHandOfLogicalOp()
[all …]
H A DInstCombineCompares.cpp2915 return Op0; in createLogicFromTable()
2935 Value *Op0, *Op1; in foldICmpAddConstant() local
4674 if ((C == Op0 || D == Op0) && NoOp1WrapProblem) in foldICmpBinOp()
5208 A = Op0; in foldICmpPow2Test()
5223 A = Op0; in foldICmpPow2Test()
5284 A = Op0; in foldICmpEquality()
6258 LHS = Op0; in foldICmpUsingKnownBits()
6782 Pred == ICmpInst::ICMP_UGT && (Op0 == A || Op0 == B)) in foldICmpOfUAddOv()
7128 if (isFreeToInvert(Op0, Op0->hasOneUse(), ConsumesOp0) && in visitICmpInst()
7655 if (Op0 == Op1) { in visitFCmpInst()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp127 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 …]
H A DSystemZISelLowering.cpp42 SDValue Op0, Op1; member
2706 C.Op0 = C.Op0.getOperand(0); in adjustICmpTruncate()
2859 NewC.Op0 = C.Op0.getOperand(0); in adjustForTestUnderMask()
2903 NewC.Op0 = NewC.Op0.getOperand(0); in adjustForTestUnderMask()
2914 NewC.Op0 = NewC.Op0.getOperand(0); in adjustForTestUnderMask()
2925 C.Op0 = NewC.Op0; in adjustForTestUnderMask()
2993 C.Op0 = C.Op0.getOperand(0); in adjustForRedundantAnd()
3140 Op0 = DAG.getNode(Extend, DL, MVT::i64, Op0); in lowerMUL_LOHI32()
5171 Op0 = DAG.getNode(ISD::BITCAST, DL, InVT, Op0); in getPermuteNode()
6709 Op0 = Op0.getOperand(0); in combineMERGE()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp91 Value *Op0; member
97 : Pred(Pred), Op0(Op0), Op1(Op1) {} in ConditionTy()
508 Value *Op0; in decompose() local
541 Value *Op0; in decompose() local
545 V = Op0; in decompose()
615 std::swap(Op0, Op1); in getConstraint()
629 std::swap(Op0, Op1); in getConstraint()
1101 Value *Op0, *Op1; in addInfoFor() local
1120 QueueValue(Op0); in addInfoFor()
1133 QueueValue(Op0); in addInfoFor()
[all …]
H A DScalarizer.cpp645 Value *Op0 = VOp0[Frag]; in splitBinary() local
776 Value *Op0 = VOp0[I]; in visitSelectInst() local
783 Value *Op0 = SI.getOperand(0); in visitSelectInst() local
918 Value *V = Op0[I]; in visitBitCastInst()
948 ConcatOps[J] = Op0[SrcI++]; in visitBitCastInst()
991 Res[I] = Op0[I]; in visitInsertElementInst()
1003 Value *OldElt = Op0[I]; in visitInsertElementInst()
1025 Value *Res = Op0[Fragment]; in visitExtractElementInst()
1045 Value *Elt = Op0[I]; in visitExtractElementInst()
1070 Res[I] = Op0[Selector]; in visitShuffleVectorInst()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.cpp158 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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DFastISel.h355 virtual unsigned fastEmit_r(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0);
359 virtual unsigned fastEmit_rr(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0,
373 Register fastEmit_ri_(MVT VT, unsigned Opcode, unsigned Op0, uint64_t Imm,
394 const TargetRegisterClass *RC, unsigned Op0);
399 const TargetRegisterClass *RC, unsigned Op0,
405 const TargetRegisterClass *RC, unsigned Op0,
411 const TargetRegisterClass *RC, unsigned Op0,
417 const TargetRegisterClass *RC, unsigned Op0,
429 const TargetRegisterClass *RC, unsigned Op0,
439 Register fastEmitInst_extractsubreg(MVT RetVT, unsigned Op0, uint32_t Idx);
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp2010 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_r()
2032 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_rr()
2037 .addReg(Op0) in fastEmitInst_rr()
2041 .addReg(Op0) in fastEmitInst_rr()
2056 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_rrr()
2062 .addReg(Op0) in fastEmitInst_rrr()
2067 .addReg(Op0) in fastEmitInst_rrr()
2083 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_ri()
2087 .addReg(Op0) in fastEmitInst_ri()
2106 Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs()); in fastEmitInst_rii()
[all …]
H A DTargetLowering.cpp1359 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
1394 if (isBitwiseNot(Op0) && Op0.hasOneUse() && in SimplifyDemandedBits()
1457 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
1510 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
1637 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
2810 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
4772 Op0 = Op0.getOperand(0); in SimplifySetCC()
6734 Op0 = DAG.getNode(ISD::ROTR, DL, VT, Op0, KVal); in prepareUREMEqFold()
6988 Op0 = DAG.getNode(ISD::ADD, DL, VT, Op0, AVal); in prepareSREMEqFold()
6999 Op0 = DAG.getNode(ISD::ROTR, DL, VT, Op0, KVal); in prepareSREMEqFold()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp107 Value *Op0 = Icmp->getOperand(0); in adjustICmpToBuiltin() local
108 if (!isa<TruncInst>(Op0)) in adjustICmpToBuiltin()
130 M, Intrinsic::bpf_compare, {Op0->getType(), ConstOp1->getType()}); in adjustICmpToBuiltin()
131 auto *NewInst = CallInst::Create(Fn, {Opcode, Op0, ConstOp1}); in adjustICmpToBuiltin()
163 Value *Op0, *Op1; in serializeICMPInBB() local
165 if (!match(&I, m_LogicalOr(m_Value(Op0), m_Value(Op1)))) in serializeICMPInBB()
167 auto *Icmp1 = dyn_cast<ICmpInst>(Op0); in serializeICMPInBB()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h230 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);
516 Register Op0,
523 return buildInstr(TargetOpcode::G_PTRMASK, {Res}, {Op0, Op1}); in buildPtrMask()
620 const SrcOp &Op0, const SrcOp &Op1, in buildUAdde() argument
623 {Op0, Op1, CarryIn}); in buildUAdde()
628 const SrcOp &Op0, const SrcOp &Op1, in buildUSube() argument
631 {Op0, Op1, CarryIn}); in buildUSube()
639 {Op0, Op1, CarryIn}); in buildSAdde()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp184 assert((Res == Op0) && "type mismatch"); in validateUnaryOp()
190 assert((Res == Op0 && Res == Op1) && "type mismatch"); in validateBinaryOp()
196 assert((Res == Op0) && "type mismatch"); in validateShiftOp()
216 Res = Op0; in materializePtrAdd()
222 return buildPtrAdd(Res, Op0, Cst.getReg(0)); in materializePtrAdd()
232 return buildPtrMask(Res, Op0, MaskReg); in buildMaskLowPtrBits()
239 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildPadVectorWithUndefElements()
249 auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0); in buildPadVectorWithUndefElements()
256 Regs.push_back(Op0.getReg()); in buildPadVectorWithUndefElements()
270 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildDeleteTrailingVectorElements()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DOverflowInstAnalysis.h38 bool isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, bool IsAnd,
40 bool isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, bool IsAnd);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2302 return m_Intrinsic<Intrinsic::bitreverse>(Op0);
2307 return m_Intrinsic<Intrinsic::bswap>(Op0);
2312 return m_Intrinsic<Intrinsic::fabs>(Op0);
2323 return m_Intrinsic<Intrinsic::minnum>(Op0, Op1);
2329 return m_Intrinsic<Intrinsic::maxnum>(Op0, Op1);
2346 return m_Intrinsic<Intrinsic::sqrt>(Op0);
2510 m_c_Intrinsic(const T0 &Op0, const T1 &Op1) {
2601 T0 Op0;
2604 InsertValue_match(const T0 &Op0, const T1 &Op1) : Op0(Op0), Op1(Op1) {}
2665 auto *Op0 = I->getOperand(0);
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SystemOperands.td830 // Op0 Op1 CRn CRm Op2
835 // Op0 Op1 CRn CRm Op2
842 // Op0 Op1 CRn CRm Op2
1401 // Op0 Op1 CRn CRm Op2
1443 // Op0 Op1 CRn CRm Op2
1466 // Op0 Op1 CRn CRm Op2
1497 // Op0 Op1 CRn CRm Op2
1513 // Op0 Op1 CRn CRm Op2
1635 // Op0 Op1 CRn CRm Op2
1782 // Op0 Op1 CRn CRm Op2
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp258 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 DX86FloatingPoint.cpp1372 TOS = Op0; in handleTwoArgFP()
1382 duplicateToTop(Op0, Dest, I); in handleTwoArgFP()
1383 Op0 = TOS = Dest; in handleTwoArgFP()
1390 duplicateToTop(Op0, Dest, I); in handleTwoArgFP()
1391 Op0 = TOS = Dest; in handleTwoArgFP()
1403 bool isForward = TOS == Op0; in handleTwoArgFP()
1421 unsigned NotTOS = (TOS == Op0) ? Op1 : Op0; in handleTwoArgFP()
1432 if (KillsOp0 && KillsOp1 && Op0 != Op1) { in handleTwoArgFP()
1461 moveToTop(Op0, I); in handleCompareFP()
1486 moveToTop(Op0, I); in handleCondMovFP()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYISelDAGToDAG.cpp300 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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenCommonISel.cpp277 auto Op0 = salvageDebugInfoImpl(MRI, MI, Ops); in salvageDebugInfoForDbgValue() local
278 if (!Op0) in salvageDebugInfoForDbgValue()
286 UseMO.setReg(Op0->getReg()); in salvageDebugInfoForDbgValue()
287 UseMO.setSubReg(Op0->getSubReg()); in salvageDebugInfoForDbgValue()

12345678