Home
last modified time | relevance | path

Searched refs:ShiftOp (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.h332 : public mlir::OpConversionPattern<cir::ShiftOp> {
334 using mlir::OpConversionPattern<cir::ShiftOp>::OpConversionPattern;
337 matchAndRewrite(cir::ShiftOp op, OpAdaptor,
H A DLowerToLLVM.cpp1774 cir::ShiftOp op, OpAdaptor adaptor, in matchAndRewrite()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMInstPrinter.cpp814 unsigned ShiftOp = MI->getOperand(OpNum).getImm(); in printShiftImmOperand() local
815 bool isASR = (ShiftOp & (1 << 5)) != 0; in printShiftImmOperand()
816 unsigned Amt = ShiftOp & 0x1f; in printShiftImmOperand()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeIntegerTypes.cpp1131 unsigned ShiftOp; in PromoteIntRes_ADDSUBSHLSAT() local
1136 ShiftOp = ISD::SRA; in PromoteIntRes_ADDSUBSHLSAT()
1139 ShiftOp = ISD::SRL; in PromoteIntRes_ADDSUBSHLSAT()
1154 return matcher.getNode(ShiftOp, dl, PromotedType, Result, ShiftAmount); in PromoteIntRes_ADDSUBSHLSAT()
1198 unsigned ShiftOp = Signed ? ISD::SRA : ISD::SRL; in PromoteIntRes_MULFIX() local
1199 return DAG.getNode(ShiftOp, dl, PromotedType, Result, in PromoteIntRes_MULFIX()
4987 SDValue ShiftOp = N->getOperand(1); in ExpandIntRes_Shift() local
4989 if (ShiftOp.getValueType() != ShiftTy) in ExpandIntRes_Shift()
4990 ShiftOp = DAG.getZExtOrTrunc(ShiftOp, dl, ShiftTy); in ExpandIntRes_Shift()
4992 SDValue Ops[] = { LHSL, LHSH, ShiftOp }; in ExpandIntRes_Shift()
H A DDAGCombiner.cpp2757 SDValue ShiftOp = IsAdd ? N->getOperand(0) : N->getOperand(1); in foldAddSubOfSignBit() local
2759 ShiftOp.getOpcode() != ISD::SRL) in foldAddSubOfSignBit()
2763 SDValue Not = ShiftOp.getOperand(0); in foldAddSubOfSignBit()
2768 EVT VT = ShiftOp.getValueType(); in foldAddSubOfSignBit()
2769 SDValue ShAmt = ShiftOp.getOperand(1); in foldAddSubOfSignBit()
7252 static SDValue foldLogicOfShifts(SDNode *N, SDValue LogicOp, SDValue ShiftOp, in foldLogicOfShifts() argument
7258 if (!LogicOp.hasOneUse() || !ShiftOp.hasOneUse()) in foldLogicOfShifts()
7262 unsigned ShiftOpcode = ShiftOp.getOpcode(); in foldLogicOfShifts()
7272 SDValue X1 = ShiftOp.getOperand(0); in foldLogicOfShifts()
7273 SDValue Y = ShiftOp.getOperand(1); in foldLogicOfShifts()
[all …]
H A DSelectionDAGBuilder.cpp3293 SDValue ShiftOp = DAG.getCopyFromReg(getControlRoot(), dl, Reg, VT); in visitBitTestCase() local
3302 ShiftOp, DAG.getConstant(llvm::countr_zero(B.Mask), dl, VT), in visitBitTestCase()
3308 ShiftOp, DAG.getConstant(llvm::countr_one(B.Mask), dl, VT), ISD::SETNE); in visitBitTestCase()
3312 DAG.getConstant(1, dl, VT), ShiftOp); in visitBitTestCase()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h419 return create<cir::ShiftOp>(loc, lhs.getType(), lhs, rhs, isShiftLeft); in createShift()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp2044 unsigned ShiftOp = TrueOp->getSExtValue() == 1 ? ISD::SRL : ISD::SRA; in expandSelectBoolean() local
2045 Result = CurDAG->getNode(ShiftOp, DL, MVT::i32, Result, in expandSelectBoolean()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp2246 Instruction::BinaryOps ShiftOp = in foldBinOpOfDisplacedShifts() local
2248 if (ShiftOp != Op1Inst->getOpcode()) in foldBinOpOfDisplacedShifts()
2252 if (I.getOpcode() == Instruction::Add && ShiftOp != Instruction::Shl) in foldBinOpOfDisplacedShifts()
2256 I.getOpcode(), ShiftedC1, Builder.CreateBinOp(ShiftOp, ShiftedC2, AddC)); in foldBinOpOfDisplacedShifts()
2257 return BinaryOperator::Create(ShiftOp, NewC, ShAmt); in foldBinOpOfDisplacedShifts()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp12539 auto *ShiftOp = dyn_cast<ConstantSDNode>(Op->getOperand(1)); in calculateSrcByte() local
12540 if (!ShiftOp) in calculateSrcByte()
12543 uint64_t BitShift = ShiftOp->getZExtValue(); in calculateSrcByte()
12633 auto *ShiftOp = dyn_cast<ConstantSDNode>(Op->getOperand(2)); in calculateByteProvider() local
12634 if (!ShiftOp || Op.getValueType().isVector()) in calculateByteProvider()
12641 uint64_t BitShift = ShiftOp->getAPIntValue().urem(BitsProvided); in calculateByteProvider()
12660 auto *ShiftOp = dyn_cast<ConstantSDNode>(Op->getOperand(1)); in calculateByteProvider() local
12661 if (!ShiftOp) in calculateByteProvider()
12664 uint64_t BitShift = ShiftOp->getZExtValue(); in calculateByteProvider()
12688 auto *ShiftOp = dyn_cast<ConstantSDNode>(Op->getOperand(1)); in calculateByteProvider() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRDialect.cpp1623 LogicalResult cir::ShiftOp::verify() { in verify()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp3396 unsigned ShiftOp = Subtarget.isABI_N64() ? Mips::DSLL : Mips::SLL; in emitINSERT_DF_VIDX() local
3441 BuildMI(*BB, MI, DL, TII->get(ShiftOp), LaneTmp1) in emitINSERT_DF_VIDX()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIROps.td1411 // ShiftOp
1414 def ShiftOp : CIR_Op<"shift", [Pure]> {
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp2922 auto ShiftOp = [&](const APInt &Lhs, const APInt &Rhs) { in isNonZeroShift() local
2957 if (!ShiftOp(KnownVal.One, MaxShift).isZero()) in isNonZeroShift()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp9230 unsigned ShiftOp = IsSigned ? TargetOpcode::G_ASHR : TargetOpcode::G_LSHR; in lowerSMULH_UMULH() local
9233 auto Shifted = MIRBuilder.buildInstr(ShiftOp, {WideTy}, {Mul, ShiftAmt}); in lowerSMULH_UMULH()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp231 for (auto ShiftOp : {ISD::FSHL, ISD::FSHR}) { in X86TargetLowering()
235 setOperationAction(ShiftOp , MVT::i8 , Custom); in X86TargetLowering()
236 setOperationAction(ShiftOp , MVT::i16 , Custom); in X86TargetLowering()
237 setOperationAction(ShiftOp , MVT::i32 , ShiftDoubleAction); in X86TargetLowering()
239 setOperationAction(ShiftOp , MVT::i64 , ShiftDoubleAction); in X86TargetLowering()
52606 SDValue ShiftOp = Shift.getOperand(0); in foldXorTruncShiftIntoCmp() local
52607 EVT ShiftOpTy = ShiftOp.getValueType(); in foldXorTruncShiftIntoCmp()
52612 DAG.getSetCC(DL, SetCCResultType, ShiftOp, in foldXorTruncShiftIntoCmp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp24212 SDValue ShiftOp = Index.getOperand(1); in foldIndexIntoBase() local
24214 if (auto Shift = DAG.getSplatValue(ShiftOp)) in foldIndexIntoBase()
24220 Add.getOperand(0), ShiftOp); in foldIndexIntoBase()