Home
last modified time | relevance | path

Searched refs:Shl (Results 1 – 25 of 118) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp113 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0)); in runOnFunction() local
114 if (!(Shl && Shl->getOpcode() == Instruction::Shl)) in runOnFunction()
116 Value *Intr = Shl->getOperand(0); in runOnFunction()
117 Value *ShlOp1 = Shl->getOperand(1); in runOnFunction()
H A DHexagonPatterns.td374 def Mul: pf2<mul>; def Xor: pf2<xor>; def Shl: pf2<shl>;
1187 def: OpR_RI_pat<S2_asl_i_r, Shl, i32, I32, u5_0ImmPred>;
1190 def: OpR_RI_pat<S2_asl_i_p, Shl, i64, I64, u6_0ImmPred>;
1193 def: OpR_RI_pat<S2_asl_i_vh, Shl, v4i16, V4I16, u4_0ImmPred>;
1196 def: OpR_RI_pat<S2_asl_i_vh, Shl, v2i32, V2I32, u5_0ImmPred>;
1200 def: OpR_RR_pat<S2_asl_r_r, Shl, i32, I32, I32>;
1203 def: OpR_RR_pat<S2_asl_r_p, Shl, i64, I64, I32>;
1373 def: AccRRR_pat<S2_asl_r_r_acc, Add, Su<Shl>, I32, I32, I32>;
1374 def: AccRRR_pat<S2_asl_r_r_nac, Sub, Su<Shl>, I32, I32, I32>;
1375 def: AccRRR_pat<S2_asl_r_r_and, And, Su<Shl>, I32, I32, I32>;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp181 Value *Shl = Builder.CreateShl(FrX, Z, "mulshl"); in foldMulShl1() local
182 return Builder.CreateSub(Shl, FrX, Mul.getName()); in foldMulShl1()
230 Constant *Shl = ConstantExpr::getShl(C1, C2); in visitMul() local
246 Shl->setHasNoUnsignedWrap(); in visitMul()
250 Shl->setHasNoSignedWrap(); in visitMul()
253 return Shl; in visitMul()
514 Shl->setHasNoUnsignedWrap(HasNUW); in visitMul()
515 return Shl; in visitMul()
523 Shl->setHasNoUnsignedWrap(HasNUW); in visitMul()
524 return Shl; in visitMul()
[all …]
H A DInstCombineShifts.cpp153 if (ShiftOpcode == Instruction::BinaryOps::Shl) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
364 ShiftOpcode != Instruction::Shl) in foldShiftOfShiftedBinOp()
462 case Instruction::Shl: in commonShiftTransforms()
477 if (I.getOpcode() == Instruction::Shl) { in commonShiftTransforms()
522 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in canEvaluateShiftedShift()
583 case Instruction::Shl: in canEvaluateShifted()
703 case Instruction::Shl: in getShiftedValue()
746 return Shift.getOpcode() == Instruction::Shl; in canShiftBinOpWithConstantRHS()
767 bool IsLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant()
950 if (I.getOpcode() == Instruction::Shl) { in setShiftFlags()
[all …]
H A DInstCombineSimplifyDemanded.cpp617 Instruction *Shl = BinaryOperator::CreateShl(I->getOperand(0), ShiftC); in SimplifyDemandedUseBits() local
618 return InsertNewInstWith(Shl, I->getIterator()); in SimplifyDemandedUseBits()
633 case Instruction::Shl: { in SimplifyDemandedUseBits()
656 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::Shl, C, in SimplifyDemandedUseBits()
724 if (ConstantFoldBinaryOpOperands(Instruction::Shl, NewC, in SimplifyDemandedUseBits()
726 Instruction *Shl = BinaryOperator::CreateShl(NewC, X); in SimplifyDemandedUseBits() local
727 return InsertNewInstWith(Shl, I->getIterator()); in SimplifyDemandedUseBits()
1263 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument
1307 BinaryOperator *Orig = cast<BinaryOperator>(Shl); in simplifyShrShlDemandedBits()
1318 return InsertNewInstWith(New, Shl->getIterator()); in simplifyShrShlDemandedBits()
H A DInstCombineCompares.cpp2176 Type *ShiftType = Shl->getType(); in foldICmpShlOne()
2227 if (C.sle(0) && Shl->hasNoUnsignedWrap() && Shl->hasNoSignedWrap()) in foldICmpShlConstant()
2233 (Shl->hasNoUnsignedWrap() || Shl->hasNoSignedWrap())) in foldICmpShlConstant()
2242 if (Shl->hasNoSignedWrap() && in foldICmpShlConstant()
2249 return foldICmpShlOne(Cmp, Shl, C); in foldICmpShlConstant()
2257 Value *X = Shl->getOperand(0); in foldICmpShlConstant()
2258 Type *ShType = Shl->getType(); in foldICmpShlConstant()
2263 if (Shl->hasNoSignedWrap()) { in foldICmpShlConstant()
2288 if (Shl->hasNoUnsignedWrap()) { in foldICmpShlConstant()
3702 case Instruction::Shl: in foldICmpBinOpWithConstant()
[all …]
H A DInstCombineCasts.cpp48 case Instruction::Shl: in EvaluateInDifferentType()
295 case Instruction::Shl: { in canEvaluateTruncated()
464 assert(Or0->getOpcode() == BinaryOperator::Shl && in narrowFunnelShift()
821 return BinaryOperator::Create(Instruction::Shl, NewTrunc, in visitTrunc()
1039 case Instruction::Shl: { in canEvaluateZExtd()
2196 case Instruction::Shl: { in collectInsertionElements()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1001 case Instruction::Shl: in isLoadCombineCandidate()
1027 Instruction::Shl}) in shouldConvertOrWithNoCommonBitsToAdd()
1116 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
1117 auto *SA = cast<ConstantInt>(Shl->getOperand(1)); in ConvertShiftToMul()
1121 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
1122 Shl->setOperand(0, PoisonValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
1123 Mul->takeName(Shl); in ConvertShiftToMul()
1126 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1127 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1133 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul()
[all …]
H A DSpeculativeExecution.cpp222 case Instruction::Shl: in ComputeSpeculationCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp140 BO->getOpcode() != Instruction::Shl && in matchStridedStart()
182 case Instruction::Shl: in matchStridedStart()
258 case Instruction::Shl: in matchStridedRecurrence()
319 case Instruction::Shl: { in matchStridedRecurrence()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h113 I->getOpcode() == Instruction::Shl; in classof()
119 CE->getOpcode() == Instruction::Shl; in classof()
360 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
H A DInstruction.h274 return Opcode >= Shl && Opcode <= AShr;
279 return getOpcode() == Shl || getOpcode() == LShr;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp75 case Instruction::Shl: in inferScalarTypeForRecipe()
141 case Instruction::Shl: in inferScalarTypeForRecipe()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp63 case Instruction::Shl: in getRelevantOperands()
142 case Instruction::Shl: in buildTruncExpressionGraph()
432 case Instruction::Shl: in ReduceExpressionGraph()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp348 I->getOpcode() == Instruction::Shl) { in getIfConst()
357 if (I->getOpcode() == Instruction::Shl) in getIfConst()
782 Instruction::Shl, OffsetsIncoming, in tryCreateIncrementingGatScat()
839 Instruction::Shl, Phi->getIncomingValue(1 - IncrementIndex), in tryCreateIncrementingWBGatScat()
955 OpCode == Instruction::Shl || in hasAllGatScatUsers()
977 Offs->getOpcode() != Instruction::Shl) in optimiseOffsets()
1085 case Instruction::Shl: in optimiseOffsets()
H A DMVELaneInterleavingPass.cpp239 case Instruction::Shl: in tryInterleave()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp67 case Instruction::Shl: in getArithmeticInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeFpConvert.cpp208 Value *Shl = Builder.CreateShl(Or, Sub15); in expandFPToI() local
209 Value *Mul16 = Builder.CreateMul(Shl, Sign); in expandFPToI()
389 Value *Shl = in expandIToFP() local
418 AAddr0->addIncoming(Shl, SwBB); in expandIToFP()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp120 case Instruction::Shl: in expand()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp26 Ops.push_back(binOpDescriptor(1, Instruction::Shl)); in describeFuzzerIntOps()
129 case Instruction::Shl: in binOpDescriptor()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCExpr.h506 Shl, ///< Shift left. enumerator
600 return create(Shl, LHS, RHS, Ctx); in createShl()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp26 case Instruction::Shl: { in hasPoisonGeneratingFlags()
H A DConstantFold.cpp158 case Instruction::Shl: { in ExtractConstantBytes()
765 case Instruction::Shl: in ConstantFoldBinaryInstruction()
925 case Instruction::Shl: in ConstantFoldBinaryInstruction()
947 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1044 case Instruction::Shl: in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtVisitor.h128 BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) in BINOP_FALLBACK()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPoisonChecking.cpp167 case Instruction::Shl: { in generateCreationChecksForBinOp()

12345