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.cpp366 Value *Shr = in expandIToFP() local
368 Value *Xor = Builder.CreateXor(Shr, IntVal); in expandIToFP()
369 Value *Sub = Builder.CreateSub(Xor, Shr); in expandIToFP()
500 And29 = Builder.CreateAnd(Shr, Temp2, "and29"); in expandIToFP()
502 Value *Conv28 = Builder.CreateTrunc(Shr, Builder.getIntNTy(32)); in expandIToFP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp1097 BinaryOperator *Shr; in visitShl() local
1098 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl()
1099 match(Shr, m_Shr(m_Value(X), m_APInt(C1)))) { in visitShl()
1104 auto ShiftOpc = ShrAmtC > ShAmtC ? Shr->getOpcode() : Instruction::Shl; in visitShl()
1146 Value *Shr = Op0BO->getOperand(0); in visitShl() local
1154 std::swap(Shr, Y); in visitShl()
1157 if (match(Shr, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl()
1162 Builder.CreateBinOp(Op0BO->getOpcode(), X, YS, Shr->getName()); in visitShl()
1170 if (match(Shr, in visitShl()
H A DInstCombineSimplifyDemanded.cpp638 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local
639 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits()
1263 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument
1268 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits()
1284 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits()
1300 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits()
1314 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
H A DInstCombineInternal.h556 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl,
675 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
H A DInstCombineCompares.cpp2379 Value *X = Shr->getOperand(0); in foldICmpShrConstant()
2381 if (Cmp.isEquality() && Shr->isExact() && C.isZero()) in foldICmpShrConstant()
2384 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant()
2396 Shr->getOperand(1), in foldICmpShrConstant()
2412 return new ICmpInst(NewPred, Shr->getOperand(1), NewC); in foldICmpShrConstant()
2417 if (!match(Shr->getOperand(1), m_APInt(ShiftAmtC))) in foldICmpShrConstant()
2427 bool IsExact = Shr->isExact(); in foldICmpShrConstant()
2428 Type *ShrTy = Shr->getType(); in foldICmpShrConstant()
2433 if (IsAShr && Shr->hasOneUse()) { in foldICmpShrConstant()
2503 if (Shr->isExact()) in foldICmpShrConstant()
[all …]
H A DInstCombineMulDivRem.cpp1562 Value *Shr = Builder.CreateLShr(Op0, CNegLog2, I.getName(), I.isExact()); in visitSDiv() local
1563 return BinaryOperator::CreateNeg(Shr); in visitSDiv()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtVisitor.h129 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
H A DOperationKinds.def381 BINARY_OPERATION(Shr, ">>")
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp813 BinaryOperator *Shr = cast<BinaryOperator>(U); in strengthenRightShift() local
814 if (!Shr->isExact() && IVRange.getUnsignedMin().uge(*C)) { in strengthenRightShift()
815 Shr->setIsExact(true); in strengthenRightShift()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DOpcodes.td535 def Shr : Opcode {
H A DInterp.h1759 inline bool Shr(InterpState &S, CodePtr OpPC) { in Shr() function
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp2203 auto *Shr = dyn_cast_or_null<Instruction>(Add->getUniqueUndroppableUser()); in isExtPartOfAvgExpr() local
2204 if (!Shr || Shr->getOpcode() != Instruction::LShr) in isExtPartOfAvgExpr()
2207 auto *Trunc = dyn_cast_or_null<Instruction>(Shr->getUniqueUndroppableUser()); in isExtPartOfAvgExpr()
H A DAArch64ISelLowering.cpp18274 auto IsRSHRN = [](SDValue Shr) { in performConcatVectorsCombine() argument
18275 if (Shr.getOpcode() != AArch64ISD::VLSHR) in performConcatVectorsCombine()
18277 SDValue Op = Shr.getOperand(0); in performConcatVectorsCombine()
18279 unsigned ShtAmt = Shr.getConstantOperandVal(1); in performConcatVectorsCombine()
18314 SDValue Shr = in performConcatVectorsCombine() local
18316 return Shr; in performConcatVectorsCombine()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp1946 auto Shr = MIRBuilder.buildLShr(SrcTy, SrcReg, ShiftAmt); in widenScalarUnmergeValues() local
1947 MIRBuilder.buildTrunc(MI.getOperand(I), Shr); in widenScalarUnmergeValues()
7351 auto Shr = MIRBuilder.buildLShr(SrcIntTy, SrcReg, ShiftAmt); in lowerExtract() local
7352 MIRBuilder.buildTrunc(DstReg, Shr); in lowerExtract()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp853 HANDLEBINOP(Shr)
5238 COMPOUND_OP(Shr); in EmitCompoundAssignmentLValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp2728 SDValue Shr = DAG.getNode(ISD::SRL, dl, SrcVT, Op0, ShiftConst); in ExpandLegalINT_TO_FP() local
2731 SDValue Or = DAG.getNode(ISD::OR, dl, SrcVT, And, Shr); in ExpandLegalINT_TO_FP()
H A DDAGCombiner.cpp27322 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC() local
27324 return DAG.getNode(ISD::AND, DL, VT, Shr, N3); in SimplifySelectCC()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp2445 auto Shr = B.buildAShr(S64, FractMask, Exp); in legalizeIntrinsicTrunc() local
2446 auto Not = B.buildNot(S64, Shr); in legalizeIntrinsicTrunc()
H A DAMDGPUISelLowering.cpp2391 SDValue Shr = DAG.getNode(ISD::SRA, SL, MVT::i64, FractMask, Exp); in LowerFTRUNC() local
2392 SDValue Not = DAG.getNOT(SL, Shr, MVT::i64); in LowerFTRUNC()