| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonOptimizeSZextends.cpp | 106 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0)); in runOnFunction() local 107 if (!(Shl && Shl->getOpcode() == Instruction::Shl)) in runOnFunction() 109 Value *Intr = Shl->getOperand(0); in runOnFunction() 110 Value *ShlOp1 = Shl->getOperand(1); in runOnFunction()
|
| H A D | HexagonPatterns.td | 382 def Mul: pf2<mul>; def Xor: pf2<xor>; def Shl: pf2<shl>; 1212 def: OpR_RI_pat<S2_asl_i_r, Shl, i32, I32, u5_0ImmPred>; 1215 def: OpR_RI_pat<S2_asl_i_p, Shl, i64, I64, u6_0ImmPred>; 1218 def: OpR_RI_pat<S2_asl_i_vh, Shl, v4i16, V4I16, u4_0ImmPred>; 1221 def: OpR_RI_pat<S2_asl_i_vh, Shl, v2i32, V2I32, u5_0ImmPred>; 1225 def: OpR_RR_pat<S2_asl_r_r, Shl, i32, I32, I32>; 1228 def: OpR_RR_pat<S2_asl_r_p, Shl, i64, I64, I32>; 1348 def: AccRRI_pat<S2_asl_i_r_acc, Add, Su<Shl>, I32, u5_0ImmPred>; 1349 def: AccRRI_pat<S2_asl_i_r_nac, Sub, Su<Shl>, I32, u5_0ImmPred>; 1350 def: AccRRI_pat<S2_asl_i_r_and, And, Su<Shl>, I32, u5_0ImmPred>; [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 153 if (ShiftOpcode == Instruction::BinaryOps::Shl) { in reassociateShiftAmtsOfTwoSameDirectionShifts() 192 assert(OuterShift->getOpcode() == Instruction::BinaryOps::Shl && in dropRedundantMaskingOfLeftShiftInput() 261 Instruction::Shl, ExtendedAllOnes, ExtendedSumOfShAmts, Q.DL); in dropRedundantMaskingOfLeftShiftInput() 367 ShiftOpcode != Instruction::Shl) in foldShiftOfShiftedBinOp() 447 if (I.getOpcode() == Instruction::Shl) { in commonShiftTransforms() 473 case Instruction::Shl: in commonShiftTransforms() 483 Constant *NewC = ConstantInt::get(Ty, I.getOpcode() == Instruction::Shl in commonShiftTransforms() 488 if (I.getOpcode() == Instruction::Shl) { in commonShiftTransforms() 548 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in canEvaluateShiftedShift() 609 case Instruction::Shl: in canEvaluateShifted() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 82 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero() 169 Value *Shl = Builder.CreateShl(FrX, Z, "mulshl", HasNUW, PropagateNSW); in foldMulShl1() local 170 return Builder.CreateAdd(Shl, FrX, Mul.getName(), HasNUW, PropagateNSW); in foldMulShl1() 182 Value *Shl = Builder.CreateShl(FrX, Z, "mulshl"); in foldMulShl1() local 183 return Builder.CreateSub(Shl, FrX, Mul.getName()); in foldMulShl1() 228 Constant *Shl = in visitMul() local 229 ConstantFoldBinaryOpOperands(Instruction::Shl, C1, C2, DL); in visitMul() 230 assert(Shl && "Constant folding of immediate constants failed"); in visitMul() 232 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl); in visitMul() 235 if (HasNSW && Mul->hasNoSignedWrap() && Shl->isNotMinSignedValue()) in visitMul() [all …]
|
| H A D | InstCombineSimplifyDemanded.cpp | 630 Instruction *Shl = BinaryOperator::CreateShl(I->getOperand(0), ShiftC); in SimplifyDemandedUseBits() local 631 return InsertNewInstWith(Shl, I->getIterator()); in SimplifyDemandedUseBits() 646 case Instruction::Shl: { in SimplifyDemandedUseBits() 691 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::Shl, C, in SimplifyDemandedUseBits() 774 if (ConstantFoldBinaryOpOperands(Instruction::Shl, NewC, in SimplifyDemandedUseBits() 776 Instruction *Shl = BinaryOperator::CreateShl(NewC, X); in SimplifyDemandedUseBits() local 777 return InsertNewInstWith(Shl, I->getIterator()); in SimplifyDemandedUseBits() 1323 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits() argument 1367 BinaryOperator *Orig = cast<BinaryOperator>(Shl); in simplifyShrShlDemandedBits() 1378 return InsertNewInstWith(New, Shl->getIterator()); in simplifyShrShlDemandedBits()
|
| H A D | InstCombineCompares.cpp | 1707 bool IsShl = ShiftOpcode == Instruction::Shl; in foldICmpAndShift() 1712 if (ShiftOpcode == Instruction::Shl) { in foldICmpAndShift() 2275 static Instruction *foldICmpShlLHSC(ICmpInst &Cmp, Instruction *Shl, in foldICmpShlLHSC() argument 2279 if (!match(Shl, m_NUWShl(m_APInt(C2), m_Value(Y)))) in foldICmpShlLHSC() 2282 Type *ShiftType = Shl->getType(); in foldICmpShlLHSC() 2326 BinaryOperator *Shl, in foldICmpShlConstant() argument 2329 if (Cmp.isEquality() && match(Shl->getOperand(0), m_APInt(ShiftVal))) in foldICmpShlConstant() 2330 return foldICmpShlConstConst(Cmp, Shl->getOperand(1), C, *ShiftVal); in foldICmpShlConstant() 2338 if (C.sle(0) && Shl->hasNoUnsignedWrap() && Shl->hasNoSignedWrap()) in foldICmpShlConstant() 2339 return new ICmpInst(Pred, Shl->getOperand(0), Cmp.getOperand(1)); in foldICmpShlConstant() [all …]
|
| H A D | InstCombineVectorOps.cpp | 1874 case Instruction::Shl: in canEvaluateShuffled() 1943 case Instruction::Shl: in buildNew() 2037 case Instruction::Shl: in evaluateInDifferentElementOrder() 2146 case Instruction::Shl: { in getAlternateBinop() 2151 Instruction::Shl, ConstantInt::get(Ty, 1), C, DL); in getAlternateBinop() 2377 if (Opc0 == Instruction::Shl || Opc1 == Instruction::Shl) in foldSelectShuffle()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 909 case Instruction::Shl: in isLoadCombineCandidate() 935 Instruction::Shl}) in shouldConvertOrWithNoCommonBitsToAdd() 1024 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument 1025 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul() 1026 auto *SA = cast<ConstantInt>(Shl->getOperand(1)); in ConvertShiftToMul() 1027 MulCst = ConstantFoldBinaryInstruction(Instruction::Shl, MulCst, SA); in ConvertShiftToMul() 1030 BinaryOperator *Mul = BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, in ConvertShiftToMul() 1031 "", Shl->getIterator()); in ConvertShiftToMul() 1032 Shl->setOperand(0, PoisonValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul() 1033 Mul->takeName(Shl); in ConvertShiftToMul() [all …]
|
| H A D | SpeculativeExecution.cpp | 222 case Instruction::Shl: in ComputeSpeculationCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVGatherScatterLowering.cpp | 138 BO->getOpcode() != Instruction::Shl && in matchStridedStart() 180 case Instruction::Shl: in matchStridedStart() 252 case Instruction::Shl: in matchStridedRecurrence() 313 case Instruction::Shl: { in matchStridedRecurrence() 331 case Instruction::Shl: in matchStridedRecurrence()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelperVectorOps.cpp | 427 GShl *Shl = cast<GShl>(MRI.getVRegDef(MO.getReg())); in matchShlOfVScale() local 428 GVScale *LHSVScale = cast<GVScale>(MRI.getVRegDef(Shl->getSrcReg())); in matchShlOfVScale() 430 std::optional<APInt> MaybeRHS = getIConstantVRegVal(Shl->getShiftReg(), MRI); in matchShlOfVScale()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | TruncInstCombine.cpp | 63 case Instruction::Shl: in getRelevantOperands() 141 case Instruction::Shl: in buildTruncExpressionGraph() 431 case Instruction::Shl: in ReduceExpressionGraph()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 347 I->getOpcode() == Instruction::Shl) { in getIfConst() 356 if (I->getOpcode() == Instruction::Shl) in getIfConst() 781 Instruction::Shl, OffsetsIncoming, in tryCreateIncrementingGatScat() 839 Instruction::Shl, Phi->getIncomingValue(1 - IncrementIndex), in tryCreateIncrementingWBGatScat() 960 OpCode == Instruction::Shl || in hasAllGatScatUsers() 982 Offs->getOpcode() != Instruction::Shl) in optimiseOffsets() 1090 case Instruction::Shl: in optimiseOffsets()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandFp.cpp | 212 Value *Shl = Builder.CreateShl(Or, Sub15); in expandFPToI() local 213 Value *Mul16 = Builder.CreateMul(Shl, Sign); in expandFPToI() 397 Value *Shl = in expandIToFP() local 426 AAddr0->addIncoming(Shl, SwBB); in expandIToFP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRShiftExpand.cpp | 121 case Instruction::Shl: in expand()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Operator.h | 134 I->getOpcode() == Instruction::Shl; in classof() 409 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
|
| H A D | Instruction.h | 352 return Opcode >= Shl && Opcode <= AShr; 357 return getOpcode() == Shl || getOpcode() == LShr;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCExpr.h | 321 Shl, ///< Shift left. enumerator 415 return create(Shl, LHS, RHS, Ctx); in createShl()
|
| /freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | Operations.cpp | 26 Ops.push_back(binOpDescriptor(1, Instruction::Shl)); in describeFuzzerIntOps() 129 case Instruction::Shl: in binOpDescriptor()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Values.def | 105 OP(Shl) \
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | StmtVisitor.h | 130 BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) in BINOP_FALLBACK()
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCExpr.cpp | 165 case MCBinaryExpr::Shl: OS << "<<"; break; in print() 669 case MCBinaryExpr::Shl: Result = uint64_t(LHS) << uint64_t(RHS); break; in evaluateAsRelocatableImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Operator.cpp | 26 case Instruction::Shl: { in hasPoisonGeneratingFlags()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/ |
| H A D | Legality.cpp | 139 case Instruction::Opcode::Shl: in notVectorizableBasedOnOpcodesAndTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | AMDGPUMCExpr.cpp | 436 case MCBinaryExpr::Opcode::Shl: in binaryOpKnownBitsMapHelper() 647 case MCBinaryExpr::Opcode::Shl: in tryFoldHelper()
|