Home
last modified time | relevance | path

Searched refs:ExtOpcode (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerHelper.h134 unsigned ExtOpcode);
151 unsigned ExtOpcode);
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp1840 unsigned ExtOpcode; in widenScalarAddSubOverflow() local
1847 ExtOpcode = TargetOpcode::G_SEXT; in widenScalarAddSubOverflow()
1851 ExtOpcode = TargetOpcode::G_SEXT; in widenScalarAddSubOverflow()
1855 ExtOpcode = TargetOpcode::G_ZEXT; in widenScalarAddSubOverflow()
1859 ExtOpcode = TargetOpcode::G_ZEXT; in widenScalarAddSubOverflow()
1863 ExtOpcode = TargetOpcode::G_SEXT; in widenScalarAddSubOverflow()
1868 ExtOpcode = TargetOpcode::G_SEXT; in widenScalarAddSubOverflow()
1873 ExtOpcode = TargetOpcode::G_ZEXT; in widenScalarAddSubOverflow()
1878 ExtOpcode = TargetOpcode::G_ZEXT; in widenScalarAddSubOverflow()
2438 widenScalarSrc(MI, WideTy, 2, ExtOpcode); in widenScalar()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp1963 auto ExtOpcode = ExtInst->getOpcode(); in foldSelectExtConst() local
1964 if (ExtOpcode != Instruction::ZExt && ExtOpcode != Instruction::SExt) in foldSelectExtConst()
1981 Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType); in foldSelectExtConst()
1990 return CastInst::Create(Instruction::CastOps(ExtOpcode), NewSel, SelType); in foldSelectExtConst()
2000 Constant *AllOnesOrOne = ConstantExpr::getCast(ExtOpcode, One, SelType); in foldSelectExtConst()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp1728 unpackV2S16ToS32(MachineIRBuilder &B, Register Src, unsigned ExtOpcode) { in unpackV2S16ToS32() argument
1732 if (ExtOpcode == TargetOpcode::G_SEXT) { in unpackV2S16ToS32()
1739 if (ExtOpcode == TargetOpcode::G_ZEXT) { in unpackV2S16ToS32()
1744 assert(ExtOpcode == TargetOpcode::G_ANYEXT); in unpackV2S16ToS32()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4173 unsigned ExtOpcode) { in addRequiredExtensionForVectorMULL() argument
4184 return DAG.getNode(ExtOpcode, SDLoc(N), NewVT, N); in addRequiredExtensionForVectorMULL()
4983 unsigned ExtOpcode = IsSigned ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; in LowerMGATHER() local
4984 Index = DAG.getNode(ExtOpcode, DL, PromotedVT, Index); in LowerMGATHER()
5073 unsigned ExtOpcode = IsSigned ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; in LowerMSCATTER() local
5074 Index = DAG.getNode(ExtOpcode, DL, PromotedVT, Index); in LowerMSCATTER()
13880 unsigned ExtOpcode = Op0.getOpcode(); in performVecReduceAddCombine() local
13883 if (ExtOpcode == ISD::MUL) { in performVecReduceAddCombine()
13889 ExtOpcode = A.getOpcode(); in performVecReduceAddCombine()
13891 if (ExtOpcode != ISD::ZERO_EXTEND && ExtOpcode != ISD::SIGN_EXTEND) in performVecReduceAddCombine()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp10929 auto ExtOpcode = IsSigned ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; in visitVSELECT() local
10930 SDValue WideLHS = DAG.getNode(ExtOpcode, DL, WideVT, LHS); in visitVSELECT()
10931 SDValue WideRHS = DAG.getNode(ExtOpcode, DL, WideVT, RHS); in visitVSELECT()
11248 static bool isCompatibleLoad(SDValue N, unsigned ExtOpcode) { in isCompatibleLoad() argument
11262 if ((LoadExt == ISD::SEXTLOAD && ExtOpcode != ISD::SIGN_EXTEND) || in isCompatibleLoad()
11263 (LoadExt == ISD::ZEXTLOAD && ExtOpcode != ISD::ZERO_EXTEND)) in isCompatibleLoad()
11894 unsigned ExtOpcode = IsSignedCmp ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; in foldSextSetcc() local
11922 if (User->getOpcode() != ExtOpcode || User->getValueType(0) != VT) in foldSextSetcc()
11929 SDValue Ext0 = DAG.getNode(ExtOpcode, DL, VT, N00); in foldSextSetcc()
11930 SDValue Ext1 = DAG.getNode(ExtOpcode, DL, VT, N01); in foldSextSetcc()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp6779 unsigned ExtOpcode = in combineINT_TO_FP() local
6781 SDValue ExtOp = DAG.getNode(ExtOpcode, SDLoc(N), ExtVT, Op); in combineINT_TO_FP()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp3339 unsigned ExtOpcode = Op.getOpcode() == ISD::UINT_TO_FP in LowerOperation() local
3342 SDValue Ext = DAG.getNode(ExtOpcode, DL, IVecVT, Src); in LowerOperation()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp9351 unsigned ExtOpcode) { in AddRequiredExtensionForVMULL() argument
9362 return DAG.getNode(ExtOpcode, SDLoc(N), NewVT, N); in AddRequiredExtensionForVMULL()