Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Target/Hexagon/
DHexagonOptimizeSZextends.cpp118 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0)); in runOnFunction() local
119 if (!(Shl && Shl->getOpcode() == Instruction::Shl)) in runOnFunction()
121 Value *Intr = Shl->getOperand(0); in runOnFunction()
122 Value *ShlOp1 = Shl->getOperand(1); in runOnFunction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp117 case Instruction::Shl: { in CanEvaluateShifted()
218 case Instruction::Shl: { in GetShiftedValue()
323 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant()
396 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant()
587 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
598 if (I.getOpcode() == Instruction::Shl && in FoldShiftByConstant()
599 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
604 BinaryOperator *NewShl = BinaryOperator::Create(Instruction::Shl, in FoldShiftByConstant()
613 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
632 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.cpp554 case Instruction::Shl: in SimplifyDemandedUseBits()
805 Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) { in SimplifyShrShlDemandedBits() argument
807 const APInt &ShlOp1 = cast<ConstantInt>(Shl->getOperand(1))->getValue(); in SimplifyShrShlDemandedBits()
851 BinaryOperator *Orig = cast<BinaryOperator>(Shl); in SimplifyShrShlDemandedBits()
862 return InsertNewInstWith(New, *Shl); in SimplifyShrShlDemandedBits()
DInstCombineVectorOps.cpp573 case Instruction::Shl: in CanEvaluateShuffled()
636 case Instruction::Shl: in buildNew()
736 case Instruction::Shl: in EvaluateInDifferentElementOrder()
DInstCombineCasts.cpp46 if (I->getOpcode() == Instruction::Shl) { in decomposeSimpleLinearExpr()
182 case Instruction::Shl: in EvaluateInDifferentType()
379 case Instruction::Shl: in canEvaluateTruncated()
778 case Instruction::Shl: in canEvaluateZExtd()
1711 case Instruction::Shl: { in collectInsertionElements()
/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.h126 return Opcode >= Shl && Opcode <= AShr;
132 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()
DInstruction.def138 HANDLE_BINARY_INST(23, Shl , BinaryOperator) // Shift left (logical)
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp1030 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
1031 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
1032 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul()
1035 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
1036 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
1037 Mul->takeName(Shl); in ConvertShiftToMul()
1040 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1041 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1046 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul()
1047 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul()
[all …]
DSpeculativeExecution.cpp180 case Instruction::Shl: in ComputeSpeculationCost()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp402 if (base->getOpcode() == Instruction::Shl) { in setupBitInsert()
427 if (src->getOpcode() == Instruction::Shl && !shift) { in setupBitInsert()
739 if (ShiftInst->getOpcode() == Instruction::Shl) { in optimizeBitExtract()
912 lhs = BinaryOperator::Create(Instruction::Shl, newShiftConst, in expandBFM()
919 lhs = BinaryOperator::Create(Instruction::Shl, lhs, rhs, "bfm_shl", CI); in expandBFM()
/external/llvm/include/llvm/MC/
DMCExpr.h428 Shl, ///< Shift left. enumerator
506 return create(Shl, LHS, RHS, Ctx); in createShl()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp156 case Instruction::Shl: in getIntImmCost()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp98 case Instruction::Shl: in createReplacementInstr()
/external/clang/include/clang/AST/
DStmtVisitor.h125 BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) in BINOP_FALLBACK()
/external/llvm/lib/MC/
DMCExpr.cpp111 case MCBinaryExpr::Shl: OS << "<<"; break; in print()
767 case MCBinaryExpr::Shl: Result = uint64_t(LHS) << uint64_t(RHS); break; in evaluateAsRelocatableImpl()
/external/lldb/source/Expression/
DIRInterpreter.cpp516 case Instruction::Shl: in CanInterpret()
624 case Instruction::Shl: in Interpret()
697 case Instruction::Shl: in Interpret()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp135 case Instruction::Shl: in getIntImmCost()
/external/llvm/lib/Analysis/
DDemandedBits.cpp141 case Instruction::Shl: in determineLiveOperandBits()
DCostModel.cpp403 case Instruction::Shl: in getInstructionCost()
/external/llvm/unittests/ADT/
DAPIntTest.cpp30 APInt Shl = One.shl(0); in TEST() local
31 EXPECT_TRUE(Shl[0]); in TEST()
32 EXPECT_FALSE(Shl[1]); in TEST()
/external/llvm/lib/IR/
DConstantFold.cpp288 case Instruction::Shl: { in ExtractConstantBytes()
992 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1141 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1163 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1237 case Instruction::Shl: in ConstantFoldBinaryInstruction()
DInstruction.cpp259 case Shl: return "shl"; in getOpcodeName()

1234