Home
last modified time | relevance | path

Searched refs:Shr (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeFpConvert.cpp369 Value *Shr = in expandIToFP() local
371 Value *Xor = Builder.CreateXor(Shr, IntVal); in expandIToFP()
372 Value *Sub = Builder.CreateSub(Xor, Shr); in expandIToFP()
503 And29 = Builder.CreateAnd(Shr, Temp2, "and29"); in expandIToFP()
505 Value *Conv28 = Builder.CreateTrunc(Shr, Builder.getIntNTy(32)); in expandIToFP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp1116 BinaryOperator *Shr; in visitShl() local
1117 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl()
1118 match(Shr, m_Shr(m_Value(X), m_APInt(C1)))) { in visitShl()
1123 auto ShiftOpc = ShrAmtC > ShAmtC ? Shr->getOpcode() : Instruction::Shl; in visitShl()
1157 Value *Shr = Op0BO->getOperand(0); in visitShl() local
1165 std::swap(Shr, Y); in visitShl()
1168 if (match(Shr, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl()
1173 Builder.CreateBinOp(Op0BO->getOpcode(), X, YS, Shr->getName()); in visitShl()
1181 if (match(Shr, in visitShl()
H A DInstCombineSimplifyDemanded.cpp636 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local
637 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits()
1319 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument
1324 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits()
1340 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits()
1356 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits()
1370 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
H A DInstCombineInternal.h569 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl,
697 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
H A DInstCombineCompares.cpp2456 BinaryOperator *Shr, in foldICmpShrConstant() argument
2460 Value *X = Shr->getOperand(0); in foldICmpShrConstant()
2462 if (Cmp.isEquality() && Shr->isExact() && C.isZero()) in foldICmpShrConstant()
2465 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant()
2469 return foldICmpShrConstConst(Cmp, Shr->getOperand(1), C, *ShiftValC); in foldICmpShrConstant()
2477 Shr->getOperand(1), in foldICmpShrConstant()
2491 Constant *NewC = ConstantInt::get(Shr->getType(), CmpLZ - ShiftLZ); in foldICmpShrConstant()
2493 return new ICmpInst(NewPred, Shr->getOperand(1), NewC); in foldICmpShrConstant()
2498 if (!match(Shr->getOperand(1), m_APInt(ShiftAmtC))) in foldICmpShrConstant()
2508 bool IsExact = Shr->isExact(); in foldICmpShrConstant()
[all …]
H A DInstCombineMulDivRem.cpp1697 Value *Shr = Builder.CreateLShr(Op0, CNegLog2, I.getName(), I.isExact()); in visitSDiv() local
1698 return BinaryOperator::CreateNeg(Shr); in visitSDiv()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtVisitor.h130 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
H A DOperationKinds.def387 BINARY_OPERATION(Shr, ">>")
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp838 BinaryOperator *Shr = cast<BinaryOperator>(U); in strengthenRightShift() local
839 if (!Shr->isExact() && IVRange.getUnsignedMin().uge(*C)) { in strengthenRightShift()
840 Shr->setIsExact(true); in strengthenRightShift()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DOpcodes.td564 def Shr : Opcode {
H A DInterp.h2329 inline bool Shr(InterpState &S, CodePtr OpPC) { in Shr() function
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp2451 auto *Shr = dyn_cast_or_null<Instruction>(Add->getUniqueUndroppableUser()); in isExtPartOfAvgExpr() local
2452 if (!Shr || Shr->getOpcode() != Instruction::LShr) in isExtPartOfAvgExpr()
2455 auto *Trunc = dyn_cast_or_null<Instruction>(Shr->getUniqueUndroppableUser()); in isExtPartOfAvgExpr()
H A DAArch64ISelLowering.cpp19438 auto IsRSHRN = [](SDValue Shr) { in performConcatVectorsCombine() argument
19439 if (Shr.getOpcode() != AArch64ISD::VLSHR) in performConcatVectorsCombine()
19441 SDValue Op = Shr.getOperand(0); in performConcatVectorsCombine()
19443 unsigned ShtAmt = Shr.getConstantOperandVal(1); in performConcatVectorsCombine()
19478 SDValue Shr = in performConcatVectorsCombine() local
19480 return Shr; in performConcatVectorsCombine()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp2010 auto Shr = MIRBuilder.buildLShr(SrcTy, SrcReg, ShiftAmt); in widenScalarUnmergeValues() local
2011 MIRBuilder.buildTrunc(MI.getOperand(I), Shr); in widenScalarUnmergeValues()
7836 auto Shr = MIRBuilder.buildLShr(SrcIntTy, SrcReg, ShiftAmt); in lowerExtract() local
7837 MIRBuilder.buildTrunc(DstReg, Shr); in lowerExtract()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp872 HANDLEBINOP(Shr)
5578 COMPOUND_OP(Shr); in EmitCompoundAssignmentLValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp2751 SDValue Shr = DAG.getNode(ISD::SRL, dl, SrcVT, Op0, ShiftConst); in ExpandLegalINT_TO_FP() local
2754 SDValue Or = DAG.getNode(ISD::OR, dl, SrcVT, And, Shr); in ExpandLegalINT_TO_FP()
H A DDAGCombiner.cpp27712 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC() local
27714 return DAG.getNode(ISD::AND, DL, VT, Shr, N3); in SimplifySelectCC()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp2541 auto Shr = B.buildAShr(S64, FractMask, Exp); in legalizeIntrinsicTrunc() local
2542 auto Not = B.buildNot(S64, Shr); in legalizeIntrinsicTrunc()
H A DAMDGPUISelLowering.cpp2432 SDValue Shr = DAG.getNode(ISD::SRA, SL, MVT::i64, FractMask, Exp); in LowerFTRUNC() local
2433 SDValue Not = DAG.getNOT(SL, Shr, MVT::i64); in LowerFTRUNC()