Searched refs:Shl (Results 1 - 25 of 102) sorted by relevance

12345

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptimizeSZextends.cpp116 Instruction *Shl = dyn_cast<Instruction>(Ashr->getOperand(0)); local
117 if (!(Shl && Shl->getOpcode() == Instruction::Shl))
119 Value *Intr = Shl->getOperand(0);
120 Value *ShlOp1 = Shl->getOperand(1);
126 // The first operand of Shl comes from an intrinsic.
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.cpp202 SDValue Shl = Or.getOperand(0); local
203 if (isa<ConstantSDNode>(Shl.getOperand(1)) &&
207 uint64_t VC2 = Shl.getConstantOperandVal(1);
209 RS1 = Shl.getOperand(0);
211 Shl.getOperand(1).getValueType());
217 uint32_t VC2 = Shl.getConstantOperandVal(1);
219 RS1 = Shl.getOperand(0);
221 Shl.getOperand(1).getValueType());
332 SDValue Shl = And.getOperand(0); local
333 if (isa<ConstantSDNode>(Shl
366 SDValue Shl = Or.getOperand(0); local
437 SDValue Shl = Or.getOperand(0); local
485 SDValue Shl = Or.getOperand(0); local
[all...]
H A DRISCVTargetTransformInfo.cpp61 case Instruction::Shl:
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp60 case Instruction::Shl:
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h64 /// Mul, and Shl. It does not include SDiv, despite that operator having the
104 I->getOpcode() == Instruction::Shl;
110 CE->getOpcode() == Instruction::Shl;
436 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
H A DInstruction.h196 return Opcode >= Shl && Opcode <= AShr;
201 return getOpcode() == Shl || getOpcode() == LShr;
H A DPatternMatch.h973 inline BinaryOp_match<LHS, RHS, Instruction::Shl> m_Shl(const LHS &L,
975 return BinaryOp_match<LHS, RHS, Instruction::Shl>(L, R);
1040 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
1043 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
1073 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
1076 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Shl,
1114 return Opcode == Instruction::LShr || Opcode == Instruction::Shl;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp142 if (ShiftOpcode == Instruction::BinaryOps::Shl) {
181 assert(OuterShift->getOpcode() == Instruction::BinaryOps::Shl &&
435 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl;
521 case Instruction::Shl:
550 bool IsInnerShl = InnerShift->getOpcode() == Instruction::Shl;
635 case Instruction::Shl:
667 return Shift.getOpcode() == Instruction::Shl;
677 bool isLeftShift = I.getOpcode() == Instruction::Shl;
734 if (I.getOpcode() == Instruction::Shl)
1280 auto *NewShl = BinaryOperator::Create(Instruction::Shl,
[all...]
H A DInstCombineMulDivRem.cpp84 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) {
206 Constant *Shl = ConstantExpr::getShl(C1, C2); local
208 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl);
212 Shl->isNotMinSignedValue())
224 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); local
227 Shl->setHasNoUnsignedWrap();
231 Shl->setHasNoSignedWrap();
234 return Shl;
H A DInstCombineCompares.cpp1664 bool IsShl = ShiftOpcode == Instruction::Shl;
1669 if (ShiftOpcode == Instruction::Shl) {
1984 static Instruction *foldICmpShlOne(ICmpInst &Cmp, Instruction *Shl, argument
1987 if (!match(Shl, m_Shl(m_One(), m_Value(Y))))
1990 Type *ShiftType = Shl->getType();
2047 BinaryOperator *Shl,
2050 if (Cmp.isEquality() && match(Shl->getOperand(0), m_APInt(ShiftVal)))
2051 return foldICmpShlConstConst(Cmp, Shl->getOperand(1), C, *ShiftVal);
2054 if (!match(Shl->getOperand(1), m_APInt(ShiftAmt)))
2055 return foldICmpShlOne(Cmp, Shl,
2046 foldICmpShlConstant(ICmpInst &Cmp, BinaryOperator *Shl, const APInt &C) argument
[all...]
H A DInstCombineVectorOps.cpp1203 case Instruction::Shl:
1272 case Instruction::Shl:
1362 case Instruction::Shl:
1470 case Instruction::Shl: {
1625 if (Opc0 == Instruction::Shl || Opc1 == Instruction::Shl)
H A DInstCombineInternal.h276 case Instruction::Shl: // 0 << X = 0
873 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl,
963 Instruction *foldICmpShlConstant(ICmpInst &Cmp, BinaryOperator *Shl,
H A DInstCombineNegator.cpp324 case Instruction::Shl: {
H A DInstCombineSimplifyDemanded.cpp515 case Instruction::Shl: {
963 Instruction *Shl, const APInt &ShlOp1,
1008 BinaryOperator *Orig = cast<BinaryOperator>(Shl);
1019 return InsertNewInstWith(New, *Shl);
962 simplifyShrShlDemandedBits(Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known) argument
H A DInstCombineCasts.cpp49 if (I->getOpcode() == Instruction::Shl) {
184 case Instruction::Shl:
379 case Instruction::Shl: {
575 bool IsFshl = (!SubIsOnLHS && ShiftOpcode0 == BinaryOperator::Shl) ||
576 (SubIsOnLHS && ShiftOpcode1 == BinaryOperator::Shl);
856 Instruction::Shl, NewTrunc,
1081 case Instruction::Shl: {
1389 //case Instruction::Shl: TODO
2139 case Instruction::Shl: {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp977 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) { argument
978 Constant *MulCst = ConstantInt::get(Shl->getType(), 1);
979 auto *SA = cast<ConstantInt>(Shl->getOperand(1));
983 BinaryOperator::CreateMul(Shl->getOperand(0), MulCst, "", Shl);
984 Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op.
985 Mul->takeName(Shl);
988 Shl->replaceAllUsesWith(Mul);
989 Mul->setDebugLoc(Shl
[all...]
H A DSpeculativeExecution.cpp222 case Instruction::Shl:
/freebsd-13-stable/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp26 Ops.push_back(binOpDescriptor(1, Instruction::Shl));
104 case Instruction::Shl:
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DStmtVisitor.h128 BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp98 case Instruction::Shl:
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCExpr.h502 Shl, ///< Shift left.
596 return create(Shl, LHS, RHS, Ctx);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPoisonChecking.cpp173 case Instruction::Shl: {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp183 case Instruction::Shl:
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp147 case Instruction::Shl:
387 case Shl: return "shl";
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp146 case MCBinaryExpr::Shl: OS << "<<"; break;
920 case MCBinaryExpr::Shl: Result = uint64_t(LHS) << uint64_t(RHS); break;

Completed in 159 milliseconds

12345