Home
last modified time | relevance | path

Searched refs:m_ICst (Results 1 – 16 of 16) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUGlobalISelUtils.cpp36 if (mi_match(Def->getOperand(2).getReg(), MRI, m_ICst(Offset))) in getBaseWithConstantOffset()
40 if (mi_match(Def->getOperand(2).getReg(), MRI, m_Copy(m_ICst(Offset)))) in getBaseWithConstantOffset()
DAMDGPUInstructionSelector.cpp802 if (mi_match(Reg, MRI, m_ICst(C)) && C == 0) in isZero()
806 return mi_match(Reg, MRI, m_Copy(m_ICst(C))) && C == 0; in isZero()
2102 if (mi_match(Root.getReg(), *MRI, m_ICst(Offset))) { in selectMUBUFScratchOffen()
2208 if (!mi_match(Root.getReg(), *MRI, m_ICst(Offset)) || in selectMUBUFScratchOffset()
2260 } else if (mi_match(Root.getReg(), *MRI, m_ICst(ConstAddr))) { in selectDS1Addr1Offset()
DAMDGPURegisterBankInfo.cpp1285 if (mi_match(Reg, MRI, m_ICst(Const))) in getBaseWithConstantOffset()
1289 if (mi_match(Reg, MRI, m_GAdd(m_Reg(Base), m_ICst(Const)))) in getBaseWithConstantOffset()
1342 return mi_match(Reg, MRI, m_ICst(C)) && C == 0; in isZero()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUGlobalISelUtils.cpp36 if (mi_match(Def->getOperand(2).getReg(), MRI, m_ICst(Offset))) in getBaseWithConstantOffset()
40 if (mi_match(Def->getOperand(2).getReg(), MRI, m_Copy(m_ICst(Offset)))) in getBaseWithConstantOffset()
DAMDGPUPostLegalizerCombiner.cpp211 bool IsShr = mi_match(SrcReg, MRI, m_GLShr(m_Reg(Src0), m_ICst(ShiftAmt))); in matchCvtF32UByteN()
212 if (IsShr || mi_match(SrcReg, MRI, m_GShl(m_Reg(Src0), m_ICst(ShiftAmt)))) { in matchCvtF32UByteN()
DAMDGPUInstructionSelector.cpp3605 if (mi_match(Root.getReg(), *MRI, m_ICst(Offset)) && in selectMUBUFScratchOffen()
3726 if (!mi_match(Root.getReg(), *MRI, m_ICst(Offset)) || in selectMUBUFScratchOffset()
3771 } else if (mi_match(Root.getReg(), *MRI, m_ICst(ConstAddr))) { in selectDS1Addr1OffsetImpl()
3837 } else if (mi_match(Root.getReg(), *MRI, m_ICst(ConstAddr))) { in selectDSReadWrite2Impl()
DAMDGPURegisterBankInfo.cpp1706 if (mi_match(Reg, MRI, m_ICst(Const))) in getBaseWithConstantOffset()
1710 if (mi_match(Reg, MRI, m_GAdd(m_Reg(Base), m_ICst(Const)))) in getBaseWithConstantOffset()
1763 return mi_match(Reg, MRI, m_ICst(C)) && C == 0; in isZero()
DAMDGPULegalizerInfo.cpp4157 m_ICst(ConstantLod))) { in legalizeImageIntrinsic()
/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/
DConstantFoldingTest.cpp31 bool match = mi_match(MIBCAdd.getReg(0), *MRI, m_ICst(Cst)); in TEST_F()
38 match = mi_match(MIBCAdd1.getReg(0), *MRI, m_ICst(Cst)); in TEST_F()
50 match = mi_match(MIBCSub.getReg(0), *MRI, m_ICst(Cst)); in TEST_F()
58 match = mi_match(MIBCSext1.getReg(0), *MRI, m_ICst(Cst)); in TEST_F()
66 match = mi_match(MIBCSext2.getReg(0), *MRI, m_ICst(Cst)); in TEST_F()
DPatternMatchTest.cpp39 bool match = mi_match(MIBCst.getReg(0), *MRI, m_ICst(Cst)); in TEST_F()
86 m_GMul(m_ICst(Cst), m_Reg(Src0))); in TEST_F()
94 m_GSub(m_ICst(Cst), m_Reg(Src0))); in TEST_F()
101 m_GFMul(m_ICst(Cst), m_Reg(Src0))); in TEST_F()
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DMIPatternMatch.h54 inline ConstantMatch m_ICst(int64_t &Cst) { return ConstantMatch(Cst); } in m_ICst() function
62 return mi_match(Reg, MRI, m_ICst(MatchedVal)) && MatchedVal == RequestedVal; in match()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DMIPatternMatch.h55 inline ConstantMatch m_ICst(int64_t &Cst) { return ConstantMatch(Cst); } in m_ICst() function
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp2205 if (mi_match(LHS, MRI, m_GIntToPtr(m_ICst(Cst)))) { in matchCombineConstPtrAddToI2P()
2646 m_GInsertVecElt(m_MInstr(TmpInst), m_Reg(TmpReg), m_ICst(IntImm)))) { in matchCombineInsertVecElts()
2811 m_GAShr(m_GShl(m_Reg(Src), m_ICst(ShlCst)), m_ICst(AshrCst)))) in matchAshrShlToSextInreg()
3018 if (!mi_match(CstReg, MRI, m_ICst(Cst))) in matchNotCmp()
DUtils.cpp703 if (!mi_match(Element, MRI, m_ICst(ElementValue))) in getBuildVectorConstantSplat()
DLegalizerHelper.cpp3171 if (mi_match(IdxReg, *B.getMRI(), m_ICst(IdxVal))) in clampDynamicVectorIndex()
3672 if (mi_match(Idx, MRI, m_ICst(IdxVal))) { in fewerElementsVectorExtractInsertVectorElt()
5666 if (mi_match(Idx, MRI, m_ICst(IdxVal))) { in lowerExtractInsertVectorElt()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp3698 if (!mi_match(InsMI->getOperand(3).getReg(), MRI, m_ICst(Index)) || Index) in tryOptVectorDup()