Home
last modified time | relevance | path

Searched refs:Shl (Results 1 – 25 of 63) 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()
572 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
583 if (I.getOpcode() == Instruction::Shl && in FoldShiftByConstant()
584 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
589 BinaryOperator *NewShl = BinaryOperator::Create(Instruction::Shl, in FoldShiftByConstant()
598 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
617 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()
DInstCombineCasts.cpp44 if (I->getOpcode() == Instruction::Shl) { in DecomposeSimpleLinearExpr()
177 case Instruction::Shl: in EvaluateInDifferentType()
373 case Instruction::Shl: in CanEvaluateTruncated()
671 case Instruction::Shl: in CanEvaluateZExtd()
1532 case Instruction::Shl: { in CollectInsertionElements()
DInstCombineSelect.cpp93 case Instruction::Shl: // Can only fold on the shift amount. in GetSelectFoldableOperands()
111 case Instruction::Shl: in GetSelectFoldableConstant()
DInstCombineAddSub.cpp47 if (I->getOpcode() == Instruction::Shl) in dyn_castFoldableMul()
DInstCombineCompares.cpp1174 if (Shift->getOpcode() == Instruction::Shl) in visitICmpInstWithInstAndIntCst()
1195 if (Shift->getOpcode() == Instruction::Shl) in visitICmpInstWithInstAndIntCst()
1266 case Instruction::Shl: { // (icmp pred (shl X, ShAmt), CI) in visitICmpInstWithInstAndIntCst()
2482 case Instruction::Shl: { in visitICmpInst()
/external/llvm/include/llvm/
DOperator.h111 I->getOpcode() == Instruction::Shl; in classof()
117 CE->getOpcode() == Instruction::Shl; in classof()
224 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
DInstruction.h102 return Opcode >= Shl && Opcode <= AShr; in isShift()
108 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
DInstrTypes.h273 DEFINE_HELPERS(Shl, NSW) // CreateNSWShl
274 DEFINE_HELPERS(Shl, NUW) // CreateNUWShl
DInstruction.def122 HANDLE_BINARY_INST(20, Shl , BinaryOperator) // Shift left (logical)
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp916 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { in ConvertShiftToMul() argument
917 Constant *MulCst = ConstantInt::get(Shl->getType(), 1); in ConvertShiftToMul()
918 MulCst = ConstantExpr::getShl(MulCst, cast<Constant>(Shl->getOperand(1))); in ConvertShiftToMul()
921 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl); in ConvertShiftToMul()
922 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op. in ConvertShiftToMul()
923 Mul->takeName(Shl); in ConvertShiftToMul()
924 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
925 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1511 if (I->getOpcode() == Instruction::Shl && in OptimizeInst()
DLoopRotation.cpp185 case Instruction::Shl: in shouldSpeculateInstrs()
/external/llvm/lib/Transforms/Utils/
DAddrModeMatcher.cpp141 case Instruction::Shl: in MightBeFoldableInst()
207 case Instruction::Shl: { in MatchOperationAddr()
212 if (Opcode == Instruction::Shl) in MatchOperationAddr()
/external/llvm/include/llvm/MC/
DMCExpr.h330 Shl, ///< Shift left. enumerator
407 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/include/llvm/Support/
DPatternMatch.h403 inline BinaryOp_match<LHS, RHS, Instruction::Shl>
405 return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R); in m_Shl()
453 inline BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>
455 return BinOp2_match<LHS, RHS, Instruction::LShr, Instruction::Shl>(L, R); in m_LogicalShift()
/external/llvm/lib/MC/
DMCExpr.cpp120 case MCBinaryExpr::Shl: OS << "<<"; break; in print()
582 case MCBinaryExpr::Shl: Result = LHS << RHS; break; in EvaluateAsRelocatableImpl()
/external/clang/include/clang/AST/
DStmtVisitor.h122 BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) in BINOP_FALLBACK()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1156 case Instruction::Shl: OpReg = X86::SHL8rCL; break; in X86SelectShift()
1165 case Instruction::Shl: OpReg = X86::SHL16rCL; break; in X86SelectShift()
1174 case Instruction::Shl: OpReg = X86::SHL32rCL; break; in X86SelectShift()
1183 case Instruction::Shl: OpReg = X86::SHL64rCL; break; in X86SelectShift()
1986 case Instruction::Shl: in TargetSelectInstruction()
/external/llvm/lib/VMCore/
DConstantFold.cpp269 case Instruction::Shl: { in ExtractConstantBytes()
930 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1075 case Instruction::Shl: { in ConstantFoldBinaryInstruction()
1106 case Instruction::Shl: in ConstantFoldBinaryInstruction()
1180 case Instruction::Shl: in ConstantFoldBinaryInstruction()
DInstruction.cpp155 case Shl: return "shl"; in getOpcodeName()
/external/llvm/lib/Analysis/
DValueTracking.cpp472 case Instruction::Shl: in ComputeMaskedBits()
1040 case Instruction::Shl: { in ComputeNumSignBits()
1223 case Instruction::Shl: in ComputeMultiple()
1228 if (I->getOpcode() == Instruction::Shl) { in ComputeMultiple()
DInstructionSimplify.cpp1236 if (Value *V = SimplifyShift(Instruction::Shl, Op0, Op1, Q, MaxRecurse)) in SimplifyShlInst()
2156 case Instruction::Shl: { in SimplifyICmpInst()
2693 case Instruction::Shl: in SimplifyBinOp()
2806 case Instruction::Shl: in SimplifyInstruction()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp898 case Instruction::Shl: Out << "getShl("; break; in printConstant()
1202 case Instruction::Shl: in printInstruction()
1222 case Instruction::Shl: Out << "Instruction::Shl"; break; in printInstruction()
/external/llvm/lib/AsmParser/
DLLLexer.cpp605 INSTKEYWORD(shl, Shl); INSTKEYWORD(lshr, LShr); INSTKEYWORD(ashr, AShr); in LexIdentifier()

123