| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandFp.cpp | 374 Value *Shr = in expandIToFP() local 376 Value *Xor = Builder.CreateXor(Shr, IntVal); in expandIToFP() 377 Value *Sub = Builder.CreateSub(Xor, Shr); in expandIToFP() 508 And29 = Builder.CreateAnd(Shr, Temp2, "and29"); in expandIToFP() 510 Value *Conv28 = Builder.CreateTrunc(Shr, Builder.getIntNTy(32)); in expandIToFP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 1138 BinaryOperator *Shr; in visitShl() local 1139 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl() 1140 match(Shr, m_Shr(m_Value(X), m_APInt(C1)))) { in visitShl() 1145 auto ShiftOpc = ShrAmtC > ShAmtC ? Shr->getOpcode() : Instruction::Shl; in visitShl() 1179 Value *Shr = Op0BO->getOperand(0); in visitShl() local 1187 std::swap(Shr, Y); in visitShl() 1190 if (match(Shr, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl() 1195 Builder.CreateBinOp(Op0BO->getOpcode(), X, YS, Shr->getName()); in visitShl() 1203 if (match(Shr, in visitShl()
|
| H A D | InstCombineSimplifyDemanded.cpp | 651 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local 652 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits() 1323 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument 1328 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits() 1344 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits() 1360 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits() 1374 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
|
| H A D | InstCombineInternal.h | 590 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, 744 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
|
| H A D | InstCombineCompares.cpp | 2506 BinaryOperator *Shr, in foldICmpShrConstant() argument 2510 Value *X = Shr->getOperand(0); in foldICmpShrConstant() 2512 if (Cmp.isEquality() && Shr->isExact() && C.isZero()) in foldICmpShrConstant() 2515 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant() 2519 return foldICmpShrConstConst(Cmp, Shr->getOperand(1), C, *ShiftValC); in foldICmpShrConstant() 2527 Shr->getOperand(1), in foldICmpShrConstant() 2541 Constant *NewC = ConstantInt::get(Shr->getType(), CmpLZ - ShiftLZ); in foldICmpShrConstant() 2543 return new ICmpInst(NewPred, Shr->getOperand(1), NewC); in foldICmpShrConstant() 2548 if (!match(Shr->getOperand(1), m_APInt(ShiftAmtC))) in foldICmpShrConstant() 2558 bool IsExact = Shr->isExact(); in foldICmpShrConstant() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 1865 Value *Shr = Builder.CreateLShr(Op0, CNegLog2, I.getName(), I.isExact()); in visitSDiv() local 1866 return BinaryOperator::CreateNeg(Shr); in visitSDiv()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | StmtVisitor.h | 131 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
|
| H A D | OperationKinds.def | 393 BINARY_OPERATION(Shr, ">>")
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 840 BinaryOperator *Shr = cast<BinaryOperator>(U); in strengthenRightShift() local 841 if (!Shr->isExact() && IVRange.getUnsignedMin().uge(*C)) { in strengthenRightShift() 842 Shr->setIsExact(true); in strengthenRightShift()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Opcodes.td | 589 def Shr : Opcode {
|
| H A D | Interp.h | 2810 inline bool Shr(InterpState &S, CodePtr OpPC) { in Shr() function
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenExprScalar.cpp | 837 HANDLEBINOP(Shr) in HANDLEBINOP() 1204 COMPOUND_OP(Shr); in emitCompoundAssignmentLValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 3018 auto *Shr = dyn_cast_or_null<Instruction>(Add->getUniqueUndroppableUser()); in isExtPartOfAvgExpr() local 3019 if (!Shr || Shr->getOpcode() != Instruction::LShr) in isExtPartOfAvgExpr() 3022 auto *Trunc = dyn_cast_or_null<Instruction>(Shr->getUniqueUndroppableUser()); in isExtPartOfAvgExpr()
|
| H A D | AArch64ISelLowering.cpp | 20143 auto IsRSHRN = [](SDValue Shr) { in performConcatVectorsCombine() argument 20144 if (Shr.getOpcode() != AArch64ISD::VLSHR) in performConcatVectorsCombine() 20146 SDValue Op = Shr.getOperand(0); in performConcatVectorsCombine() 20148 unsigned ShtAmt = Shr.getConstantOperandVal(1); in performConcatVectorsCombine() 20183 SDValue Shr = in performConcatVectorsCombine() local 20185 return Shr; in performConcatVectorsCombine()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 2308 auto Shr = MIRBuilder.buildLShr(SrcTy, SrcReg, ShiftAmt); in widenScalarUnmergeValues() local 2309 MIRBuilder.buildTrunc(MI.getOperand(I), Shr); in widenScalarUnmergeValues() 8757 auto Shr = MIRBuilder.buildLShr(SrcIntTy, SrcReg, ShiftAmt); in lowerExtract() local 8758 MIRBuilder.buildTrunc(DstReg, Shr); in lowerExtract()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 910 HANDLEBINOP(Shr) 5912 COMPOUND_OP(Shr); in EmitCompoundAssignmentLValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelLowering.cpp | 2489 SDValue Shr = DAG.getNode(ISD::SRA, SL, MVT::i64, FractMask, Exp); in LowerFTRUNC() local 2490 SDValue Not = DAG.getNOT(SL, Shr, MVT::i64); in LowerFTRUNC()
|
| H A D | AMDGPULegalizerInfo.cpp | 2591 auto Shr = B.buildAShr(S64, FractMask, Exp); in legalizeIntrinsicTrunc() local 2592 auto Not = B.buildNot(S64, Shr); in legalizeIntrinsicTrunc()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 2778 SDValue Shr = DAG.getNode(ISD::SRL, dl, SrcVT, Op0, ShiftConst); in ExpandLegalINT_TO_FP() local 2781 SDValue Or = DAG.getNode(ISD::OR, dl, SrcVT, And, Shr); in ExpandLegalINT_TO_FP()
|
| H A D | DAGCombiner.cpp | 28834 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC() local 28836 return DAG.getNode(ISD::AND, DL, VT, Shr, N3); in SimplifySelectCC()
|