| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | fixit.cpp | 288 struct Shr { struct 289 template<typename T> Shr(T); 302 (Shr)t<S<int>>>>=p; // expected-error {{use '> >'}} in g()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 918 BinaryOperator *Shr; in visitShl() local 919 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl() 920 match(Shr, m_Shr(m_Value(X), m_APInt(C1)))) { in visitShl() 925 auto ShiftOpc = ShrAmtC > ShAmtC ? Shr->getOpcode() : Instruction::Shl; in visitShl() 967 Value *Shr = Op0BO->getOperand(0); in visitShl() local 975 std::swap(Shr, Y); in visitShl() 978 if (match(Shr, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl() 983 Builder.CreateBinOp(Op0BO->getOpcode(), X, YS, Shr->getName()); in visitShl() 991 if (match(Shr, in visitShl()
|
| H A D | InstCombineSimplifyDemanded.cpp | 558 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local 559 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits() 1097 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument 1102 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits() 1118 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits() 1134 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits() 1148 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
|
| H A D | InstCombineInternal.h | 593 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, 703 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
|
| H A D | InstCombineCompares.cpp | 2265 Value *X = Shr->getOperand(0); in foldICmpShrConstant() 2267 if (Cmp.isEquality() && Shr->isExact() && C.isZero()) in foldICmpShrConstant() 2270 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant() 2282 Shr->getOperand(1), in foldICmpShrConstant() 2299 return new ICmpInst(NewPred, Shr->getOperand(1), NewC); in foldICmpShrConstant() 2304 if (!match(Shr->getOperand(1), m_APInt(ShiftAmtC))) in foldICmpShrConstant() 2314 bool IsExact = Shr->isExact(); in foldICmpShrConstant() 2315 Type *ShrTy = Shr->getType(); in foldICmpShrConstant() 2390 if (Shr->isExact()) in foldICmpShrConstant() 2403 if (Shr->hasOneUse()) { in foldICmpShrConstant() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 1203 Value *Shr = Builder.CreateLShr(Op0, CNegLog2, I.getName(), I.isExact()); in visitSDiv() local 1204 return BinaryOperator::CreateNeg(Shr); in visitSDiv()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | StmtVisitor.h | 129 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
|
| H A D | OperationKinds.def | 380 BINARY_OPERATION(Shr, ">>")
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 800 BinaryOperator *Shr = cast<BinaryOperator>(U); in strengthenRightShift() local 801 if (!Shr->isExact() && IVRange.getUnsignedMin().uge(*C)) { in strengthenRightShift() 802 Shr->setIsExact(true); in strengthenRightShift()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Interp.h | 898 inline bool Shr(InterpState &S, CodePtr OpPC) { in Shr() function
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 1662 auto Shr = MIRBuilder.buildLShr(SrcTy, SrcReg, ShiftAmt); in widenScalarUnmergeValues() local 1663 MIRBuilder.buildTrunc(MI.getOperand(I), Shr); in widenScalarUnmergeValues() 6777 auto Shr = MIRBuilder.buildLShr(SrcIntTy, Src, ShiftAmt); in lowerExtract() local 6778 MIRBuilder.buildTrunc(Dst, Shr); in lowerExtract()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 816 HANDLEBINOP(Shr) 4941 COMPOUND_OP(Shr); in EmitCompoundAssignmentLValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelLowering.cpp | 2097 SDValue Shr = DAG.getNode(ISD::SRA, SL, MVT::i64, FractMask, Exp); in LowerFTRUNC() local 2098 SDValue Not = DAG.getNOT(SL, Shr, MVT::i64); in LowerFTRUNC()
|
| H A D | AMDGPULegalizerInfo.cpp | 2169 auto Shr = B.buildAShr(S64, FractMask, Exp); in legalizeIntrinsicTrunc() local 2170 auto Not = B.buildNot(S64, Shr); in legalizeIntrinsicTrunc()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 2426 SDValue Shr = DAG.getNode(ISD::SRL, dl, SrcVT, Op0, ShiftConst); in ExpandLegalINT_TO_FP() local 2429 SDValue Or = DAG.getNode(ISD::OR, dl, SrcVT, And, Shr); in ExpandLegalINT_TO_FP()
|
| H A D | DAGCombiner.cpp | 24160 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC() local 24162 return DAG.getNode(ISD::AND, DL, VT, Shr, N3); in SimplifySelectCC()
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | CodingStandards.rst | 1172 assert((Opcode == Shl || Opcode == Shr) && "ShiftInst Opcode invalid!");
|