| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/ |
| D | ExpandLargeFpConvert.cpp | 365 Value *Shr = in expandIToFP() local 367 Value *Xor = Builder.CreateXor(Shr, IntVal); in expandIToFP() 368 Value *Sub = Builder.CreateSub(Xor, Shr); in expandIToFP() 499 And29 = Builder.CreateAnd(Shr, Temp2, "and29"); in expandIToFP() 501 Value *Conv28 = Builder.CreateTrunc(Shr, Builder.getIntNTy(32)); in expandIToFP()
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineShifts.cpp | 999 BinaryOperator *Shr; in visitShl() local 1000 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl() 1001 match(Shr, m_Shr(m_Value(X), m_APInt(C1)))) { in visitShl() 1006 auto ShiftOpc = ShrAmtC > ShAmtC ? Shr->getOpcode() : Instruction::Shl; in visitShl() 1048 Value *Shr = Op0BO->getOperand(0); in visitShl() local 1056 std::swap(Shr, Y); in visitShl() 1059 if (match(Shr, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl() 1064 Builder.CreateBinOp(Op0BO->getOpcode(), X, YS, Shr->getName()); in visitShl() 1072 if (match(Shr, in visitShl()
|
| D | InstCombineSimplifyDemanded.cpp | 607 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local 608 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits() 1161 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument 1166 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits() 1182 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits() 1198 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits() 1212 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
|
| D | InstCombineInternal.h | 485 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, 595 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
|
| D | InstCombineCompares.cpp | 2207 BinaryOperator *Shr, in foldICmpShrConstant() argument 2211 Value *X = Shr->getOperand(0); in foldICmpShrConstant() 2213 if (Cmp.isEquality() && Shr->isExact() && C.isZero()) in foldICmpShrConstant() 2216 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant() 2220 return foldICmpShrConstConst(Cmp, Shr->getOperand(1), C, *ShiftValC); in foldICmpShrConstant() 2228 Shr->getOperand(1), in foldICmpShrConstant() 2243 Constant *NewC = ConstantInt::get(Shr->getType(), CmpLZ - ShiftLZ); in foldICmpShrConstant() 2245 return new ICmpInst(NewPred, Shr->getOperand(1), NewC); in foldICmpShrConstant() 2250 if (!match(Shr->getOperand(1), m_APInt(ShiftAmtC))) in foldICmpShrConstant() 2260 bool IsExact = Shr->isExact(); in foldICmpShrConstant() [all …]
|
| D | InstCombineMulDivRem.cpp | 1436 Value *Shr = Builder.CreateLShr(Op0, CNegLog2, I.getName(), I.isExact()); in visitSDiv() local 1437 return BinaryOperator::CreateNeg(Shr); in visitSDiv()
|
| /openbsd/src/gnu/llvm/clang/include/clang/AST/ |
| D | StmtVisitor.h | 129 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
|
| D | OperationKinds.def | 380 BINARY_OPERATION(Shr, ">>")
|
| /openbsd/src/gnu/llvm/clang/lib/AST/Interp/ |
| D | Opcodes.td | 420 def Shr : Opcode {
|
| D | Interp.h | 1198 inline bool Shr(InterpState &S, CodePtr OpPC) { in Shr() function
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| D | SimplifyIndVar.cpp | 789 BinaryOperator *Shr = cast<BinaryOperator>(U); in strengthenRightShift() local 790 if (!Shr->isExact() && IVRange.getUnsignedMin().uge(*C)) { in strengthenRightShift() 791 Shr->setIsExact(true); in strengthenRightShift()
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| D | LegalizerHelper.cpp | 1669 auto Shr = MIRBuilder.buildLShr(SrcTy, SrcReg, ShiftAmt); in widenScalarUnmergeValues() local 1670 MIRBuilder.buildTrunc(MI.getOperand(I), Shr); in widenScalarUnmergeValues() 6871 auto Shr = MIRBuilder.buildLShr(SrcIntTy, Src, ShiftAmt); in lowerExtract() local 6872 MIRBuilder.buildTrunc(Dst, Shr); in lowerExtract()
|
| /openbsd/src/gnu/llvm/clang/lib/CodeGen/ |
| D | CGExprScalar.cpp | 845 HANDLEBINOP(Shr) 5121 COMPOUND_OP(Shr); in EmitCompoundAssignmentLValue()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| D | AMDGPULegalizerInfo.cpp | 2161 auto Shr = B.buildAShr(S64, FractMask, Exp); in legalizeIntrinsicTrunc() local 2162 auto Not = B.buildNot(S64, Shr); in legalizeIntrinsicTrunc()
|
| D | AMDGPUISelLowering.cpp | 2214 SDValue Shr = DAG.getNode(ISD::SRA, SL, MVT::i64, FractMask, Exp); in LowerFTRUNC() local 2215 SDValue Not = DAG.getNOT(SL, Shr, MVT::i64); in LowerFTRUNC()
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| D | LegalizeDAG.cpp | 2423 SDValue Shr = DAG.getNode(ISD::SRL, dl, SrcVT, Op0, ShiftConst); in ExpandLegalINT_TO_FP() local 2426 SDValue Or = DAG.getNode(ISD::OR, dl, SrcVT, And, Shr); in ExpandLegalINT_TO_FP()
|
| D | DAGCombiner.cpp | 25607 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC() local 25609 return DAG.getNode(ISD::AND, DL, VT, Shr, N3); in SimplifySelectCC()
|
| /openbsd/src/gnu/llvm/llvm/docs/ |
| D | CodingStandards.rst | 1177 assert((Opcode == Shl || Opcode == Shr) && "ShiftInst Opcode invalid!");
|