/external/llvm/lib/Target/Hexagon/ |
D | HexagonOptimizeSZextends.cpp | 121 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0)); in runOnFunction() local 122 if (!(Shl && Shl->getOpcode() == Instruction::Shl)) in runOnFunction() 124 Value *Intr = Shl->getOperand(0); in runOnFunction() 125 Value *ShlOp1 = Shl->getOperand(1); in runOnFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonOptimizeSZextends.cpp | 116 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0)); in runOnFunction() local 117 if (!(Shl && Shl->getOpcode() == Instruction::Shl)) in runOnFunction() 119 Value *Intr = Shl->getOperand(0); in runOnFunction() 120 Value *ShlOp1 = Shl->getOperand(1); in runOnFunction()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 72 bool IsSecondShiftLeft = SecondShift->getOpcode() == Instruction::Shl; in canEvaluateShiftedShift() 162 case Instruction::Shl: in CanEvaluateShifted() 217 case Instruction::Shl: { in GetShiftedValue() 324 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant() 397 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant() 588 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant() 599 if (I.getOpcode() == Instruction::Shl && in FoldShiftByConstant() 600 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant() 605 BinaryOperator *NewShl = BinaryOperator::Create(Instruction::Shl, in FoldShiftByConstant() 614 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant() [all …]
|
D | InstCombineMulDivRem.cpp | 65 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero() 205 Constant *Shl = ConstantExpr::getShl(C1, C2); in visitMul() local 207 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl); in visitMul() 211 Shl->isNotMinSignedValue()) in visitMul() 228 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul() local 231 Shl->setHasNoUnsignedWrap(); in visitMul() 235 Shl->setHasNoSignedWrap(); in visitMul() 238 return Shl; in visitMul()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 115 case Instruction::Shl: { in CanEvaluateShifted() 210 case Instruction::Shl: { in GetShiftedValue() 313 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant() 385 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant() 558 if (I.getOpcode() == Instruction::Shl && in FoldShiftByConstant() 559 ShiftOp->getOpcode() != Instruction::Shl) { in FoldShiftByConstant() 566 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant() 575 if (I.getOpcode() == Instruction::Shl && in FoldShiftByConstant() 576 ShiftOp->getOpcode() != Instruction::Shl) { in FoldShiftByConstant() 588 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant() [all …]
|
D | InstCombineMulDivRem.cpp | 62 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero() 116 if (SI->getOpcode() == Instruction::Shl) in visitMul() 124 BinaryOperator *Shl = BinaryOperator::CreateShl(Op0, NewCst); in visitMul() local 125 if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); in visitMul() 126 if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); in visitMul() 127 return Shl; in visitMul()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 520 static Instruction *ConvertShiftToMul(Instruction *Shl, in ConvertShiftToMul() argument 524 if (isReassociableOp(Shl->getOperand(0), Instruction::Mul) || in ConvertShiftToMul() 525 (Shl->hasOneUse() && in ConvertShiftToMul() 526 (isReassociableOp(Shl->use_back(), Instruction::Mul) || in ConvertShiftToMul() 527 isReassociableOp(Shl->use_back(), Instruction::Add)))) { in ConvertShiftToMul() 528 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul() 529 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul() 532 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul() 533 ValueRankMap.erase(Shl); in ConvertShiftToMul() 534 Mul->takeName(Shl); in ConvertShiftToMul() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Operator.h | 110 I->getOpcode() == Instruction::Shl; in classof() 116 CE->getOpcode() == Instruction::Shl; in classof() 201 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
|
D | Instruction.h | 102 return Opcode >= Shl && Opcode <= AShr; in isShift() 108 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 83 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in canEvaluateShiftedShift() 169 case Instruction::Shl: in canEvaluateShifted() 198 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl; in foldShiftedShift() 289 case Instruction::Shl: in getShiftedValue() 324 IsValid = Shift.getOpcode() == Instruction::Shl; in canShiftBinOpWithConstantRHS() 349 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant() 406 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant() 865 auto *NewShl = BinaryOperator::Create(Instruction::Shl, X, ShiftDiff); in visitAShr()
|
D | InstCombineMulDivRem.cpp | 85 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero() 160 Constant *Shl = ConstantExpr::getShl(C1, C2); in visitMul() local 162 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl); in visitMul() 166 Shl->isNotMinSignedValue()) in visitMul() 175 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul() local 178 Shl->setHasNoUnsignedWrap(); in visitMul() 182 Shl->setHasNoSignedWrap(); in visitMul() 185 return Shl; in visitMul()
|
/external/v8/tools/ |
D | bigint-tester.py | 234 class Shl(BinaryOp): class 254 class Sar(Shl): # Sharing GenerateInputsInternal. 284 "shl": Shl,
|
/external/llvm/include/llvm/IR/ |
D | Operator.h | 110 I->getOpcode() == Instruction::Shl; in classof() 116 CE->getOpcode() == Instruction::Shl; in classof() 343 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
|
D | Instruction.h | 123 return Opcode >= Shl && Opcode <= AShr; 128 return getOpcode() == Shl || getOpcode() == LShr;
|
D | PatternMatch.h | 524 inline BinaryOp_match<LHS, RHS, Instruction::Shl> m_Shl(const LHS &L, in m_Shl() 526 return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R); in m_Shl() 591 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl, 594 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl, in m_NSWShl() 624 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl, 627 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl, in m_NUWShl() 664 inline BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl> 666 return BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>(L, R); in m_LogicalShift()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 929 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument 930 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul() 931 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul() 934 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul() 935 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul() 936 Mul->takeName(Shl); in ConvertShiftToMul() 939 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul() 940 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul() 945 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul() 946 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | AddrModeMatcher.cpp | 139 case Instruction::Shl: in MightBeFoldableInst() 205 case Instruction::Shl: { in MatchOperationAddr() 210 if (Opcode == Instruction::Shl) in MatchOperationAddr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Operator.h | 104 I->getOpcode() == Instruction::Shl; in classof() 110 CE->getOpcode() == Instruction::Shl; in classof() 409 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
|
D | Instruction.h | 152 return Opcode >= Shl && Opcode <= AShr; 157 return getOpcode() == Shl || getOpcode() == LShr;
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 953 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument 954 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul() 955 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul() 958 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul() 959 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul() 960 Mul->takeName(Shl); in ConvertShiftToMul() 963 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul() 964 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul() 969 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul() 970 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul() [all …]
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.cpp | 58 case Instruction::Shl: in getArithmeticInstrCost()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.cpp | 58 case Instruction::Shl: in getArithmeticInstrCost()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Instruction.h | 132 return Opcode >= Shl && Opcode <= AShr; in isShift() 137 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
|
/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | APIntTest.cpp | 22 APInt Shl = One.shl(0); in TEST() local 23 EXPECT_TRUE(Shl[0]); in TEST() 24 EXPECT_FALSE(Shl[1]); in TEST()
|
/external/swiftshader/third_party/LLVM/include/llvm/MC/ |
D | MCExpr.h | 303 Shl, ///< Shift left. enumerator 380 return Create(Shl, LHS, RHS, Ctx); in CreateShl()
|