Home
last modified time | relevance | path

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

1234567

/external/llvm/lib/Target/Hexagon/
DHexagonOptimizeSZextends.cpp121 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/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp72 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 …]
DInstCombineMulDivRem.cpp65 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()
DInstCombineSimplifyDemanded.cpp553 case Instruction::Shl: in SimplifyDemandedUseBits()
832 Instruction *Shl, in SimplifyShrShlDemandedBits() argument
837 const APInt &ShlOp1 = cast<ConstantInt>(Shl->getOperand(1))->getValue(); in SimplifyShrShlDemandedBits()
881 BinaryOperator *Orig = cast<BinaryOperator>(Shl); in SimplifyShrShlDemandedBits()
892 return InsertNewInstWith(New, *Shl); in SimplifyShrShlDemandedBits()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineShifts.cpp115 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 …]
DInstCombineMulDivRem.cpp62 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/r8/src/main/java/com/android/tools/r8/ir/code/
DShl.java13 public class Shl extends LogicalBinop { class
15 public Shl(NumericType type, Value dest, Value left, Value right) { in Shl() method in Shl
36 public Shl asShl() { in asShl()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DReassociate.cpp520 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/
DOperator.h110 I->getOpcode() == Instruction::Shl; in classof()
116 CE->getOpcode() == Instruction::Shl; in classof()
201 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DInstruction.h102 return Opcode >= Shl && Opcode <= AShr; in isShift()
108 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
/external/llvm/include/llvm/IR/
DOperator.h110 I->getOpcode() == Instruction::Shl; in classof()
116 CE->getOpcode() == Instruction::Shl; in classof()
343 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DInstruction.h123 return Opcode >= Shl && Opcode <= AShr;
128 return getOpcode() == Shl || getOpcode() == LShr;
DPatternMatch.h524 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/
DReassociate.cpp929 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 …]
DSpeculativeExecution.cpp216 case Instruction::Shl: in ComputeSpeculationCost()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DAddrModeMatcher.cpp139 case Instruction::Shl: in MightBeFoldableInst()
205 case Instruction::Shl: { in MatchOperationAddr()
210 if (Opcode == Instruction::Shl) in MatchOperationAddr()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.cpp58 case Instruction::Shl: in getArithmeticInstrCost()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h132 return Opcode >= Shl && Opcode <= AShr; in isShift()
137 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
/external/swiftshader/third_party/LLVM/unittests/ADT/
DAPIntTest.cpp22 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/
DMCExpr.h303 Shl, ///< Shift left. enumerator
380 return Create(Shl, LHS, RHS, Ctx); in CreateShl()
/external/libyuv/files/tools/ubsan/
Dblacklist.txt35 # fun:*v8*internal*Range*Shl*
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h381 inline BinaryOp_match<LHS, RHS, Instruction::Shl>
383 return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R); in m_Shl()
431 inline BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>
433 return BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>(L, R); in m_LogicalShift()
/external/v8/src/wasm/
Dwasm-opcodes.cc74 CASE_INT_OP(Shl, "shl") in OpcodeName()
200 CASE_SIMDI_OP(Shl, "shl") in OpcodeName()
/external/llvm/include/llvm/MC/
DMCExpr.h404 Shl, ///< Shift left. enumerator
482 return create(Shl, LHS, RHS, Ctx); in createShl()
/external/swiftshader/third_party/subzero/crosstest/
Dtest_arith.def27 X(Shl, <<, 0, 1) \

1234567