Home
last modified time | relevance | path

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

123

/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp115 case Instruction::Shl: { in CanEvaluateShifted()
211 case Instruction::Shl: { in GetShiftedValue()
314 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant()
386 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant()
569 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
580 if (I.getOpcode() == Instruction::Shl && in FoldShiftByConstant()
581 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
586 BinaryOperator *NewShl = BinaryOperator::Create(Instruction::Shl, in FoldShiftByConstant()
595 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
614 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
[all …]
DInstCombineSimplifyDemanded.cpp595 case Instruction::Shl: in SimplifyDemandedUseBits()
846 Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) { in SimplifyShrShlDemandedBits() argument
848 unsigned ShlAmt = cast<ConstantInt>(Shl->getOperand(1))->getZExtValue(); in SimplifyShrShlDemandedBits()
887 BinaryOperator *Orig = cast<BinaryOperator>(Shl); in SimplifyShrShlDemandedBits()
898 return InsertNewInstWith(New, *Shl); in SimplifyShrShlDemandedBits()
DInstCombineMulDivRem.cpp61 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
152 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul() local
153 if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); in visitMul()
154 if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); in visitMul()
155 return Shl; in visitMul()
DInstCombineCasts.cpp44 if (I->getOpcode() == Instruction::Shl) { in DecomposeSimpleLinearExpr()
183 case Instruction::Shl: in EvaluateInDifferentType()
382 case Instruction::Shl: in CanEvaluateTruncated()
703 case Instruction::Shl: in CanEvaluateZExtd()
1566 case Instruction::Shl: { in CollectInsertionElements()
DInstCombineVectorOps.cpp528 case Instruction::Shl: in CanEvaluateShuffled()
591 case Instruction::Shl: in BuildNew()
688 case Instruction::Shl: in EvaluateInDifferentElementOrder()
DInstCombineSelect.cpp93 case Instruction::Shl: // Can only fold on the shift amount. in GetSelectFoldableOperands()
111 case Instruction::Shl: in GetSelectFoldableConstant()
/external/llvm/include/llvm/IR/
DOperator.h115 I->getOpcode() == Instruction::Shl; in classof()
121 CE->getOpcode() == Instruction::Shl; in classof()
338 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DInstruction.h103 return Opcode >= Shl && Opcode <= AShr; in isShift()
109 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
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.cpp952 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
953 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
954 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul()
957 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
958 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
959 Mul->takeName(Shl); in ConvertShiftToMul()
960 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
961 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1812 if (I->getOpcode() == Instruction::Shl && in OptimizeInst()
DLoopRotation.cpp191 case Instruction::Shl: in shouldSpeculateInstrs()
DCodeGenPrepare.cpp1013 case Instruction::Shl: in MightBeFoldableInst()
1078 case Instruction::Shl: { in MatchOperationAddr()
1083 if (Opcode == Instruction::Shl) in MatchOperationAddr()
/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.h377 Shl, ///< Shift left. enumerator
454 return Create(Shl, LHS, RHS, Ctx); in CreateShl()
/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/include/llvm/Support/
DPatternMatch.h484 inline BinaryOp_match<LHS, RHS, Instruction::Shl>
486 return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R); in m_Shl()
534 inline BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>
536 return BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>(L, R); in m_LogicalShift()
/external/llvm/lib/Analysis/
DCostModel.cpp135 case Instruction::Shl: in getInstructionCost()
DValueTracking.cpp484 case Instruction::Shl: in ComputeMaskedBits()
1157 case Instruction::Shl: { in ComputeNumSignBits()
1340 case Instruction::Shl: in ComputeMultiple()
1345 if (I->getOpcode() == Instruction::Shl) { in ComputeMultiple()
/external/llvm/lib/MC/
DMCExpr.cpp114 case MCBinaryExpr::Shl: OS << "<<"; break; in print()
729 case MCBinaryExpr::Shl: Result = LHS << RHS; break; in EvaluateAsRelocatableImpl()
/external/clang/include/clang/AST/
DStmtVisitor.h123 BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) in BINOP_FALLBACK()
/external/llvm/lib/IR/
DConstantFold.cpp274 case Instruction::Shl: { in ExtractConstantBytes()
929 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1074 case Instruction::Shl: { in ConstantFoldBinaryInstruction()
1105 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1179 case Instruction::Shl: in ConstantFoldBinaryInstruction()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1208 case Instruction::Shl: OpReg = X86::SHL8rCL; break; in X86SelectShift()
1217 case Instruction::Shl: OpReg = X86::SHL16rCL; break; in X86SelectShift()
1226 case Instruction::Shl: OpReg = X86::SHL32rCL; break; in X86SelectShift()
1235 case Instruction::Shl: OpReg = X86::SHL64rCL; break; in X86SelectShift()
2281 case Instruction::Shl: in TargetSelectInstruction()

123