Home
last modified time | relevance | path

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

/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp535 if (Instruction *Shr = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits() local
536 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits()
1006 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument
1011 Value *VarX = Shr->getOperand(0); in simplifyShrShlDemandedBits()
1027 bool isLshr = (Shr->getOpcode() == Instruction::LShr); in simplifyShrShlDemandedBits()
1043 if (!Shr->hasOneUse()) in simplifyShrShlDemandedBits()
1057 if (cast<BinaryOperator>(Shr)->isExact()) in simplifyShrShlDemandedBits()
H A DInstCombineCompares.cpp2188 BinaryOperator *Shr, in foldICmpShrConstant() argument
2192 Value *X = Shr->getOperand(0); in foldICmpShrConstant()
2194 if (Cmp.isEquality() && Shr->isExact() && Shr->hasOneUse() && in foldICmpShrConstant()
2199 if (Cmp.isEquality() && match(Shr->getOperand(0), m_APInt(ShiftVal))) in foldICmpShrConstant()
2203 if (!match(Shr->getOperand(1), m_APInt(ShiftAmt))) in foldICmpShrConstant()
2213 bool IsAShr = Shr->getOpcode() == Instruction::AShr; in foldICmpShrConstant()
2214 bool IsExact = Shr->isExact(); in foldICmpShrConstant()
2215 Type *ShrTy = Shr->getType(); in foldICmpShrConstant()
2280 if (Shr->isExact()) in foldICmpShrConstant()
2293 if (Shr->hasOneUse()) { in foldICmpShrConstant()
[all …]
H A DInstCombineInternal.h592 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl,
683 Instruction *foldICmpShrConstant(ICmpInst &Cmp, BinaryOperator *Shr,
/netbsd/external/apache2/llvm/dist/clang/include/clang/AST/
H A DStmtVisitor.h129 BINOP_FALLBACK(Shr) in BINOP_FALLBACK()
H A DOperationKinds.def380 BINARY_OPERATION(Shr, ">>")
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp805 BinaryOperator *Shr = cast<BinaryOperator>(U); in strengthenRightShift() local
806 if (!Shr->isExact() && IVRange.getUnsignedMin().uge(*C)) { in strengthenRightShift()
807 Shr->setIsExact(true); in strengthenRightShift()
/netbsd/external/gpl3/gcc/dist/gcc/d/dmd/
H A Doptimize.c787 shift_optimize(e, &Shr); in Expression_optimize()
H A Doptimize.d991 shift_optimize(e, &Shr); in Expression_optimize()
H A Dconstfold.c644 UnionExp Shr(Loc loc, Type *type, Expression *e1, Expression *e2) in Shr() function
H A Dconstfold.d609 UnionExp Shr(const ref Loc loc, Type type, Expression e1, Expression e2) in Shr() function
H A Ddinterpret.c3112 case TOKshr: interpretCommon(e, &Shr); return; in visit()
4258 case TOKshrass: interpretAssignCommon(e, &Shr); return; in visit()
H A Ddinterpret.d3223 interpretCommon(e, &Shr); in visit()
4381 interpretAssignCommon(e, &Shr); in visit()
/netbsd/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Doptimize.c787 shift_optimize(e, &Shr); in Expression_optimize()
H A Dexpression.h1561 UnionExp Shr(Loc loc, Type *type, Expression *e1, Expression *e2);
H A Dconstfold.c644 UnionExp Shr(Loc loc, Type *type, Expression *e1, Expression *e2) in Shr() function
H A Ddinterpret.c3112 case TOKshr: interpretCommon(e, &Shr); return; in visit()
4258 case TOKshrass: interpretAssignCommon(e, &Shr); return; in visit()
/netbsd/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DInterp.h896 inline bool Shr(InterpState &S, CodePtr OpPC) { in Shr() function
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp1537 auto Shr = MIRBuilder.buildLShr(SrcTy, SrcReg, ShiftAmt); in widenScalarUnmergeValues() local
1538 MIRBuilder.buildTrunc(MI.getOperand(I), Shr); in widenScalarUnmergeValues()
6400 auto Shr = MIRBuilder.buildLShr(SrcIntTy, Src, ShiftAmt); in lowerExtract() local
6401 MIRBuilder.buildTrunc(Dst, Shr); in lowerExtract()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp2005 auto Shr = B.buildAShr(S64, FractMask, Exp); in legalizeIntrinsicTrunc() local
2006 auto Not = B.buildNot(S64, Shr); in legalizeIntrinsicTrunc()
H A DAMDGPUISelLowering.cpp2183 SDValue Shr = DAG.getNode(ISD::SRA, SL, MVT::i64, FractMask, Exp); in LowerFTRUNC() local
2184 SDValue Not = DAG.getNOT(SL, Shr, MVT::i64); in LowerFTRUNC()
/netbsd/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExprScalar.cpp812 HANDLEBINOP(Shr)
4863 COMPOUND_OP(Shr); in EmitCompoundAssignmentLValue()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp2401 SDValue Shr = DAG.getNode(ISD::SRL, dl, SrcVT, Op0, ShiftConst); in ExpandLegalINT_TO_FP() local
2404 SDValue Or = DAG.getNode(ISD::OR, dl, SrcVT, And, Shr); in ExpandLegalINT_TO_FP()
H A DDAGCombiner.cpp22344 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC() local
22346 return DAG.getNode(ISD::AND, DL, VT, Shr, N3); in SimplifySelectCC()
/netbsd/external/apache2/llvm/dist/llvm/docs/
H A DCodingStandards.rst1172 assert((Opcode == Shl || Opcode == Shr) && "ShiftInst Opcode invalid!");