Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp117 case Instruction::Shl: { in CanEvaluateShifted()
213 case Instruction::Shl: { in GetShiftedValue()
316 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant()
389 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant()
580 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
591 if (I.getOpcode() == Instruction::Shl && in FoldShiftByConstant()
592 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
597 BinaryOperator *NewShl = BinaryOperator::Create(Instruction::Shl, in FoldShiftByConstant()
606 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
625 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
[all …]
DInstCombineSimplifyDemanded.cpp596 case Instruction::Shl: in SimplifyDemandedUseBits()
846 Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) { in SimplifyShrShlDemandedBits() argument
848 const APInt &ShlOp1 = cast<ConstantInt>(Shl->getOperand(1))->getValue(); in SimplifyShrShlDemandedBits()
892 BinaryOperator *Orig = cast<BinaryOperator>(Shl); in SimplifyShrShlDemandedBits()
903 return InsertNewInstWith(New, *Shl); in SimplifyShrShlDemandedBits()
DInstCombineMulDivRem.cpp63 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
157 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul() local
158 if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); in visitMul()
159 if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); in visitMul()
160 return Shl; in visitMul()
DInstCombineVectorOps.cpp621 case Instruction::Shl: in CanEvaluateShuffled()
684 case Instruction::Shl: in BuildNew()
783 case Instruction::Shl: in EvaluateInDifferentElementOrder()
DInstCombineCasts.cpp46 if (I->getOpcode() == Instruction::Shl) { in DecomposeSimpleLinearExpr()
186 case Instruction::Shl: in EvaluateInDifferentType()
385 case Instruction::Shl: in CanEvaluateTruncated()
706 case Instruction::Shl: in CanEvaluateZExtd()
1667 case Instruction::Shl: { in CollectInsertionElements()
/external/llvm/include/llvm/IR/
DOperator.h115 I->getOpcode() == Instruction::Shl; in classof()
121 CE->getOpcode() == Instruction::Shl; in classof()
342 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DInstruction.h106 return Opcode >= Shl && Opcode <= AShr; in isShift()
112 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
DPatternMatch.h484 inline BinaryOp_match<LHS, RHS, Instruction::Shl>
486 return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R); in m_Shl()
550 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
553 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl, in m_NSWShl()
583 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
586 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl, in m_NUWShl()
624 inline BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>
626 return BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>(L, R); in m_LogicalShift()
DInstrTypes.h271 DEFINE_HELPERS(Shl, NSW) // CreateNSWShl
272 DEFINE_HELPERS(Shl, NUW) // CreateNUWShl
DInstruction.def122 HANDLE_BINARY_INST(20, Shl , BinaryOperator) // Shift left (logical)
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp951 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
952 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
953 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul()
956 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
957 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
958 Mul->takeName(Shl); in ConvertShiftToMul()
959 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
960 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1813 if (I->getOpcode() == Instruction::Shl && in OptimizeInst()
/external/chromium_org/third_party/mesa/src/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/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.h401 Shl, ///< Shift left. enumerator
478 return Create(Shl, LHS, RHS, Ctx); in CreateShl()
/external/chromium_org/v8/src/compiler/
Dmachine-operator.h156 V(Word, Shl) \
/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/Transforms/ObjCARC/
DObjCARCUtil.cpp221 case Instruction::Shl: case Instruction::LShr: case Instruction::AShr: in GetInstructionClass()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp97 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/llvm/lib/MC/
DMCExpr.cpp109 case MCBinaryExpr::Shl: OS << "<<"; break; in print()
781 case MCBinaryExpr::Shl: Result = LHS << 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.cpp224 case Instruction::Shl: in getIntImmCost()
/external/llvm/lib/IR/
DConstantFold.cpp274 case Instruction::Shl: { in ExtractConstantBytes()
943 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1088 case Instruction::Shl: { in ConstantFoldBinaryInstruction()
1119 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1193 case Instruction::Shl: in ConstantFoldBinaryInstruction()
DInstruction.cpp250 case Shl: return "shl"; in getOpcodeName()
/external/llvm/lib/Analysis/
DValueTracking.cpp475 case Instruction::Shl: in computeKnownBits()
1165 case Instruction::Shl: { in ComputeNumSignBits()
1348 case Instruction::Shl: in ComputeMultiple()
1353 if (I->getOpcode() == Instruction::Shl) { in ComputeMultiple()

1234