Home
last modified time | relevance | path

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

1234

/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()
198 Constant *Shl = ConstantExpr::getShl(C1, C2); in visitMul() local
200 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl); in visitMul()
204 Shl->isNotMinSignedValue()) in visitMul()
220 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul() local
223 Shl->setHasNoUnsignedWrap(); in visitMul()
225 Shl->setHasNoSignedWrap(); in visitMul()
227 return Shl; in visitMul()
DInstCombineSimplifyDemanded.cpp638 case Instruction::Shl: in SimplifyDemandedUseBits()
889 Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) { in SimplifyShrShlDemandedBits() argument
891 const APInt &ShlOp1 = cast<ConstantInt>(Shl->getOperand(1))->getValue(); in SimplifyShrShlDemandedBits()
935 BinaryOperator *Orig = cast<BinaryOperator>(Shl); in SimplifyShrShlDemandedBits()
946 return InsertNewInstWith(New, *Shl); in SimplifyShrShlDemandedBits()
DInstCombineCasts.cpp46 if (I->getOpcode() == Instruction::Shl) { in DecomposeSimpleLinearExpr()
183 case Instruction::Shl: in EvaluateInDifferentType()
380 case Instruction::Shl: in CanEvaluateTruncated()
703 case Instruction::Shl: in CanEvaluateZExtd()
1633 case Instruction::Shl: { in CollectInsertionElements()
DInstCombineVectorOps.cpp622 case Instruction::Shl: in CanEvaluateShuffled()
685 case Instruction::Shl: in BuildNew()
785 case Instruction::Shl: in EvaluateInDifferentElementOrder()
/external/llvm/include/llvm/IR/
DOperator.h111 I->getOpcode() == Instruction::Shl; in classof()
117 CE->getOpcode() == Instruction::Shl; in classof()
343 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DInstruction.h131 return Opcode >= Shl && Opcode <= AShr;
137 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()
DInstrTypes.h267 DEFINE_HELPERS(Shl, NSW) // CreateNSWShl
268 DEFINE_HELPERS(Shl, NUW) // CreateNUWShl
DInstruction.def122 HANDLE_BINARY_INST(20, Shl , BinaryOperator) // Shift left (logical)
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp1045 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
1046 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
1047 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul()
1050 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
1051 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
1052 Mul->takeName(Shl); in ConvertShiftToMul()
1055 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1056 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1061 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul()
1062 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul()
[all …]
DBDCE.cpp154 case Instruction::Shl: in determineLiveOperandBits()
/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.h415 Shl, ///< Shift left. enumerator
492 return Create(Shl, LHS, RHS, Ctx); in CreateShl()
/external/v8/src/compiler/
Dmachine-operator.h156 V(Word, Shl) \
/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.h123 BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) in BINOP_FALLBACK()
/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/MC/
DMCExpr.cpp105 case MCBinaryExpr::Shl: OS << "<<"; break; in print()
731 case MCBinaryExpr::Shl: Result = LHS << RHS; break; in EvaluateAsRelocatableImpl()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp135 case Instruction::Shl: in getIntImmCost()
/external/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/llvm/lib/IR/
DConstantFold.cpp288 case Instruction::Shl: { in ExtractConstantBytes()
986 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1135 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1157 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1231 case Instruction::Shl: in ConstantFoldBinaryInstruction()
/external/llvm/lib/Target/R600/
DAMDGPUISelDAGToDAG.cpp1172 const SDValue &Shl = N->getOperand(0); in SelectS_BFEFromShifts() local
1173 ConstantSDNode *B = dyn_cast<ConstantSDNode>(Shl->getOperand(1)); in SelectS_BFEFromShifts()
1184 return getS_BFE(Opcode, SDLoc(N), Shl.getOperand(0), in SelectS_BFEFromShifts()
/external/llvm/lib/Analysis/
DCostModel.cpp408 case Instruction::Shl: in getInstructionCost()

1234