reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/CodeGen/BasicTTIImpl.h
 1141       Cost += ConcreteTTI->getArithmeticInstrCost(BinaryOperator::Shl, RetTy,
 1377       Cost += ConcreteTTI->getArithmeticInstrCost(Instruction::Shl, RetTy,
include/llvm/IR/IRBuilder.h
 1227     return CreateInsertNUWNSWBinOp(Instruction::Shl, LHS, RHS, Name,
include/llvm/IR/InstrTypes.h
  366   DEFINE_HELPERS(Shl, NSW) // CreateNSWShl
  367   DEFINE_HELPERS(Shl, NUW) // CreateNUWShl
include/llvm/IR/Instruction.h
  161     return Opcode >= Shl && Opcode <= AShr;
  166     return getOpcode() == Shl || getOpcode() == LShr;
include/llvm/IR/Operator.h
  103            I->getOpcode() == Instruction::Shl;
  109            CE->getOpcode() == Instruction::Shl;
  431   : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
include/llvm/IR/PatternMatch.h
  892 inline BinaryOp_match<LHS, RHS, Instruction::Shl> m_Shl(const LHS &L,
  894   return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R);
  959 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
  962   return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
  992 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
  995   return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
 1033     return Opcode == Instruction::LShr || Opcode == Instruction::Shl;
lib/Analysis/BasicAliasAnalysis.cpp
  341       case Instruction::Shl:
lib/Analysis/CFLGraph.h
  576       case Instruction::Shl:
lib/Analysis/DemandedBits.cpp
  182   case Instruction::Shl:
lib/Analysis/InstructionSimplify.cpp
 1274   if (Value *V = SimplifyShift(Instruction::Shl, Op0, Op1, Q, MaxRecurse))
 2959     case Instruction::Shl: {
 4786   case Instruction::Shl:
 5297   case Instruction::Shl:
lib/Analysis/ObjCARCInstKind.cpp
  264     case Instruction::Shl:
lib/Analysis/ScalarEvolution.cpp
 4516   case Instruction::Shl:
 6363     case Instruction::Shl:
 6413       if (L && L->getOpcode() == Instruction::Shl) {
 7593       OutOpCode = Instruction::Shl;
 7687   case Instruction::Shl:
lib/Analysis/ScalarEvolutionExpander.cpp
  842         Prod = InsertBinop(Instruction::Shl, Prod,
lib/Analysis/TargetTransformInfo.cpp
 1166   case Instruction::Shl:
lib/Analysis/ValueTracking.cpp
 1169   case Instruction::Shl: {
 2467     case Instruction::Shl: {
 2712   case Instruction::Shl:
 2717     if (I->getOpcode() == Instruction::Shl) {
 4330   case Instruction::Shl:
 5490   case Instruction::Shl:
lib/AsmParser/LLLexer.cpp
  846   INSTKEYWORD(shl,   Shl);  INSTKEYWORD(lshr,  LShr); INSTKEYWORD(ashr,  AShr);
lib/AsmParser/LLParser.cpp
 3462         Opc == Instruction::Mul || Opc == Instruction::Shl) {
 3492     case Instruction::Shl:
lib/Bitcode/Reader/BitcodeReader.cpp
 1095     return IsFP ? -1 : Instruction::Shl;
 2545               Opc == Instruction::Shl) {
 3903             Opc == Instruction::Shl) {
lib/Bitcode/Writer/BitcodeWriter.cpp
  542   case Instruction::Shl:  return bitc::BINOP_SHL;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2295   case Instruction::Shl:
 2308     case Instruction::Shl: return MCBinaryExpr::createShl(LHS, RHS, Ctx);
lib/CodeGen/CodeGenPrepare.cpp
 3554   case Instruction::Shl:
 3770   if (Inst->getOpcode() == Instruction::Shl && Inst->hasOneUse()) {
 4114   case Instruction::Shl: {
 4121     if (Opcode == Instruction::Shl)
 5753     case Instruction::Shl: {
 7047   case Instruction::Shl:
lib/CodeGen/SelectionDAG/FastISel.cpp
 1822   case Instruction::Shl:
lib/CodeGen/TargetLoweringBase.cpp
 1604   case Shl:            return ISD::SHL;
lib/ExecutionEngine/Interpreter/Execution.cpp
 2088   case Instruction::Shl:
lib/FuzzMutate/Operations.cpp
   26   Ops.push_back(binOpDescriptor(1, Instruction::Shl));
  104   case Instruction::Shl:
lib/IR/ConstantFold.cpp
  290   case Instruction::Shl: {
 1066     case Instruction::Shl:
 1254       case Instruction::Shl:
 1276     case Instruction::Shl:
 1353     case Instruction::Shl:
lib/IR/ConstantRange.cpp
  273   case Instruction::Shl: {
  795   case Instruction::Shl:
lib/IR/Constants.cpp
 1903   case Instruction::Shl:
 2325   return get(Instruction::Shl, C1, C2, Flags);
 2369     case Instruction::Shl:  // X << 0 = X
lib/IR/Instruction.cpp
  125   case Instruction::Shl:
  360   case Shl:            return "shl";
lib/IR/Instructions.cpp
 2318   case Shl:
lib/IR/Verifier.cpp
 3205   case Instruction::Shl:
lib/Target/AArch64/AArch64FastISel.cpp
  711   case Instruction::Shl: {
 1199         if (SI->getOpcode() == Instruction::Shl  ||
 1234         if ((SI->getOpcode() == Instruction::Shl) && (C->getZExtValue() < 4)) {
 1282         case Instruction::Shl:  ShiftType = AArch64_AM::LSL; break;
 4792     case Instruction::Shl:
 4822   case Instruction::Shl:
 5168   case Instruction::Shl:
lib/Target/AArch64/AArch64ISelLowering.cpp
 8585     case Instruction::Shl:
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  119   case Instruction::Shl:
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  248   case Instruction::Shl:
  262   case Instruction::Shl:
lib/Target/ARM/ARMFastISel.cpp
 2877     case Instruction::Shl:
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1239     case Instruction::Shl:
 1287   if (Opc == Instruction::Shl || Opc == Instruction::LShr)
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
  116       if (!(Shl && Shl->getOpcode() == Instruction::Shl))
lib/Target/Mips/MipsFastISel.cpp
 1998     case Instruction::Shl:
 2021   case Instruction::Shl:
 2061   case Instruction::Shl:
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  155   case Instruction::Shl:
  453                (J->getOpcode() == Instruction::Shl ||
lib/Target/RISCV/RISCVTargetTransformInfo.cpp
   60   case Instruction::Shl:
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  155   case Instruction::Shl:
  403     if (Opcode == Instruction::Shl || Opcode == Instruction::LShr ||
lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
   58     case Instruction::Shl:
lib/Target/X86/X86FastISel.cpp
 1788     case Instruction::Shl:  OpReg = X86::SHL8rCL; break;
 1798     case Instruction::Shl:  OpReg = X86::SHL16rCL; break;
 1807     case Instruction::Shl:  OpReg = X86::SHL32rCL; break;
 1816     case Instruction::Shl:  OpReg = X86::SHL64rCL; break;
 3622   case Instruction::Shl:
lib/Target/X86/X86TargetTransformInfo.cpp
 3026   case Instruction::Shl:
lib/Target/XCore/XCoreLowerThreadLocal.cpp
   97     case Instruction::Shl:
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1708   if (Opc == Instruction::LShr || Opc == Instruction::Shl)
 2082   bool IsFshl = (!SubIsOnLHS && ShiftOpcode0 == BinaryOperator::Shl) ||
 2083                 (SubIsOnLHS && ShiftOpcode1 == BinaryOperator::Shl);
lib/Transforms/InstCombine/InstCombineCasts.cpp
   48       if (I->getOpcode() == Instruction::Shl) {
  184   case Instruction::Shl:
  375   case Instruction::Shl: {
  569   bool IsFshl = (!SubIsOnLHS && ShiftOpcode0 == BinaryOperator::Shl) ||
  570                 (SubIsOnLHS && ShiftOpcode1 == BinaryOperator::Shl);
  834           Instruction::Shl, NewTrunc,
 1030   case Instruction::Shl: {
 1978   case Instruction::Shl: {
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1645   bool IsShl = ShiftOpcode == Instruction::Shl;
 1649     if (ShiftOpcode == Instruction::Shl) {
 2842     case Instruction::Shl:
 3996     case Instruction::Shl: {
lib/Transforms/InstCombine/InstCombineInternal.h
  268       case Instruction::Shl:  // 0 << X = 0
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
   84     if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) {
lib/Transforms/InstCombine/InstCombineSelect.cpp
  252   case Instruction::Shl:   // Can only fold on the shift amount.
  270   case Instruction::Shl:
 2183   bool IsFshl = (ShAmt == SA0 && ShiftOpcode0 == BinaryOperator::Shl) ||
 2184                 (ShAmt == SA1 && ShiftOpcode1 == BinaryOperator::Shl);
lib/Transforms/InstCombine/InstCombineShifts.cpp
  122     if (ShiftOpcode == Instruction::BinaryOps::Shl) {
  179   assert(OuterShift->getOpcode() == Instruction::BinaryOps::Shl &&
  356   bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl;
  442   case Instruction::Shl:
  471   bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl;
  562   case Instruction::Shl:
  594     return Shift.getOpcode() == Instruction::Shl;
  604   bool isLeftShift = I.getOpcode() == Instruction::Shl;
  661       if (I.getOpcode() == Instruction::Shl)
 1207         auto *NewShl = BinaryOperator::Create(Instruction::Shl, X, ShiftDiff);
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  465   case Instruction::Shl: {
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1161     case Instruction::Shl:
 1229     case Instruction::Shl:
 1327     case Instruction::Shl:
 1447     case Instruction::Shl: {
 1600     if (Opc0 == Instruction::Shl || Opc1 == Instruction::Shl)
 1600     if (Opc0 == Instruction::Shl || Opc1 == Instruction::Shl)
lib/Transforms/InstCombine/InstructionCombining.cpp
 1263       if (logScale > 0 && BO->getOpcode() == Instruction::Shl &&
lib/Transforms/Instrumentation/PoisonChecking.cpp
  174   case Instruction::Shl: {
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  463   case Instruction::Shl:
  879       case Instruction::Shl:
lib/Transforms/Scalar/GVN.cpp
  509     case Instruction::Shl:
lib/Transforms/Scalar/GVNSink.cpp
  457     case Instruction::Shl:
lib/Transforms/Scalar/IndVarSimplify.cpp
 1102   case Instruction::Shl:
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1441   IntrinID = DefX->getOpcode() == Instruction::Shl ? Intrinsic::cttz :
 1713     else if (DefX->getOpcode() == Instruction::Shl) // cttz
lib/Transforms/Scalar/LoopRerollPass.cpp
  749     case Instruction::Shl:
lib/Transforms/Scalar/NewGVN.cpp
 2012     case Instruction::Shl:
lib/Transforms/Scalar/Reassociate.cpp
 2076   if (I->getOpcode() == Instruction::Shl && isa<ConstantInt>(I->getOperand(1)))
lib/Transforms/Scalar/SCCP.cpp
 1603       case Instruction::Shl:
lib/Transforms/Scalar/SpeculativeExecution.cpp
  220     case Instruction::Shl:
lib/Transforms/Utils/Local.cpp
 1709     case Instruction::Shl:
 2738       if (I->getOpcode() == Instruction::Shl) {
lib/Transforms/Utils/LoopRotationUtils.cpp
  552     case Instruction::Shl:
lib/Transforms/Utils/SimplifyIndVar.cpp
  768   if (BO->getOpcode() == Instruction::Shl) {
lib/Transforms/Vectorize/LoopVectorize.cpp
 4149   case Instruction::Shl:
 6194   case Instruction::Shl:
 6872     case Instruction::Shl:
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2579     case Instruction::Shl:
 3093     case Instruction::Shl:
 3977     case Instruction::Shl:
tools/lldb/source/Expression/IRInterpreter.cpp
  585       case Instruction::Shl:
  704     case Instruction::Shl:
  776       case Instruction::Shl:
tools/llvm-stress/llvm-stress.cpp
  402     case 7: {Op = Instruction::Shl;  break; }
unittests/Analysis/ScalarEvolutionTest.cpp
 1669     EXPECT_EQ(I->getOpcode(), Instruction::Shl);
unittests/IR/ConstantRangeTest.cpp
 1539                 Instruction::Shl, UpToBitWidth, OBO::NoUnsignedWrap),
 1541                 Instruction::Shl, OneLessThanBitWidth, OBO::NoUnsignedWrap));
 1543                 Instruction::Shl, UpToBitWidth, OBO::NoSignedWrap),
 1545                 Instruction::Shl, OneLessThanBitWidth, OBO::NoSignedWrap));
 1547                 Instruction::Shl, UpToBitWidth, OBO::NoUnsignedWrap),
 1550                 Instruction::Shl, UpToBitWidth, OBO::NoSignedWrap),
 1555           Instruction::Shl, ConstantRange::getFull(32), OBO::NoUnsignedWrap),
 1557           Instruction::Shl, OneLessThanBitWidth, OBO::NoUnsignedWrap));
 1560           Instruction::Shl, ConstantRange::getFull(32), OBO::NoSignedWrap),
 1562           Instruction::Shl, OneLessThanBitWidth, OBO::NoSignedWrap));
 1566                 Instruction::Shl, IllegalShAmt, OBO::NoUnsignedWrap),
 1569                 Instruction::Shl, IllegalShAmt, OBO::NoSignedWrap),
 1574           Instruction::Shl, ConstantRange(APInt(32, -32), APInt(32, 16) + 1),
 1577           Instruction::Shl, ConstantRange(APInt(32, 0), APInt(32, 16) + 1),
 1581           Instruction::Shl, ConstantRange(APInt(32, -32), APInt(32, 16) + 1),
 1584           Instruction::Shl, ConstantRange(APInt(32, 0), APInt(32, 16) + 1),
 1588                 Instruction::Shl,
 1593                 Instruction::Shl,
 1676   TestNoWrapRegionExhaustive(Instruction::Shl,
 1683   TestNoWrapRegionExhaustive(Instruction::Shl,