Home
last modified time | relevance | path

Searched refs:MatchInfo (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DCombinerHelper.h302 ShiftOfShiftedLogic &MatchInfo);
304 ShiftOfShiftedLogic &MatchInfo);
505 BuildFnTy &MatchInfo);
588 void applyBuildFn(MachineInstr &MI, BuildFnTy &MatchInfo);
607 BuildFnTy &MatchInfo);
613 BuildFnTy &MatchInfo);
625 BuildFnTy &MatchInfo);
636 bool matchConstantFold(MachineInstr &MI, APInt &MatchInfo);
667 bool matchMulOBy2(MachineInstr &MI, BuildFnTy &MatchInfo);
671 bool matchMulOBy0(MachineInstr &MI, BuildFnTy &MatchInfo);
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCombinerHelper.cpp187 MatchInfo = MRI.getVRegDef(Src); in matchFoldableFneg()
197 if (fnegFoldsIntoMI(*MatchInfo) && in matchFoldableFneg()
203 switch (MatchInfo->getOpcode()) { in matchFoldableFneg()
217 return mayIgnoreSignedZero(*MatchInfo); in matchFoldableFneg()
287 Builder.setInstrAndDebugLoc(*MatchInfo); in applyFoldableFneg()
291 switch (MatchInfo->getOpcode()) { in applyFoldableFneg()
294 NegateOperand(MatchInfo->getOperand(1)); in applyFoldableFneg()
298 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2)); in applyFoldableFneg()
314 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2)); in applyFoldableFneg()
338 NegateEitherOperand(MatchInfo->getOperand(2), MatchInfo->getOperand(3)); in applyFoldableFneg()
[all …]
H A DAMDGPUPreLegalizerCombiner.cpp54 ClampI64ToI16MatchInfo &MatchInfo);
62 ClampI64ToI16MatchInfo &MatchInfo) { in matchClampI64ToI16() argument
76 auto IsApplicableForCombine = [&MatchInfo]() -> bool { in matchClampI64ToI16()
77 const auto Cmp1 = MatchInfo.Cmp1; in matchClampI64ToI16()
78 const auto Cmp2 = MatchInfo.Cmp2; in matchClampI64ToI16()
96 m_GSMin(m_Reg(Base), m_ICst(MatchInfo.Cmp1)))) { in matchClampI64ToI16()
98 m_GSMax(m_Reg(MatchInfo.Origin), m_ICst(MatchInfo.Cmp2)))) { in matchClampI64ToI16()
106 m_GSMin(m_Reg(MatchInfo.Origin), m_ICst(MatchInfo.Cmp2)))) { in matchClampI64ToI16()
124 Register Src = MatchInfo.Origin; in applyClampI64ToI16()
140 auto MinBoundary = std::min(MatchInfo.Cmp1, MatchInfo.Cmp2); in applyClampI64ToI16()
[all …]
H A DAMDGPUPostLegalizerCombiner.cpp63 std::function<void(MachineIRBuilder &)> &MatchInfo);
72 bool matchCvtF32UByteN(MachineInstr &MI, CvtF32UByteMatchInfo &MatchInfo);
74 const CvtF32UByteMatchInfo &MatchInfo);
231 MatchInfo = [SqrtSrcMI, &MI](MachineIRBuilder &B) { in matchRcpSqrtToRsq()
241 MatchInfo = [RcpSrcMI, &MI](MachineIRBuilder &B) { in matchRcpSqrtToRsq()
253 MachineInstr &MI, CvtF32UByteMatchInfo &MatchInfo) { in matchCvtF32UByteN() argument
271 MatchInfo.CvtVal = Src0; in matchCvtF32UByteN()
272 MatchInfo.ShiftOffset = ShiftOffset; in matchCvtF32UByteN()
281 MachineInstr &MI, const CvtF32UByteMatchInfo &MatchInfo) { in applyCvtF32UByteN() argument
286 Register CvtSrc = MatchInfo.CvtVal; in applyCvtF32UByteN()
[all …]
H A DAMDGPURegBankCombiner.cpp70 bool matchIntMinMaxToMed3(MachineInstr &MI, Med3MatchInfo &MatchInfo);
71 bool matchFPMinMaxToMed3(MachineInstr &MI, Med3MatchInfo &MatchInfo);
74 void applyMed3(MachineInstr &MI, Med3MatchInfo &MatchInfo);
151 MachineInstr &MI, Med3MatchInfo &MatchInfo) { in matchIntMinMaxToMed3() argument
174 MatchInfo = {OpcodeTriple.Med, Val, K0->VReg, K1->VReg}; in matchIntMinMaxToMed3()
197 MachineInstr &MI, Med3MatchInfo &MatchInfo) { in matchFPMinMaxToMed3() argument
228 MatchInfo = {OpcodeTriple.Med, Val, K0->VReg, K1->VReg}; in matchFPMinMaxToMed3()
322 Med3MatchInfo &MatchInfo) { in applyMed3() argument
324 B.buildInstr(MatchInfo.Opc, {MI.getOperand(0)}, in applyMed3()
325 {getAsVgpr(MatchInfo.Val0), getAsVgpr(MatchInfo.Val1), in applyMed3()
[all …]
H A DAMDGPUCombinerHelper.h24 bool matchFoldableFneg(MachineInstr &MI, MachineInstr *&MatchInfo);
25 void applyFoldableFneg(MachineInstr &MI, MachineInstr *&MatchInfo);
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp219 ShuffleVectorPseudo &MatchInfo) { in matchREV() argument
248 ShuffleVectorPseudo &MatchInfo) { in matchTRN() argument
351 MatchInfo = in matchDupFromBuildVector()
399 MIRBuilder.buildInstr(MatchInfo.Opc, {MatchInfo.Dst}, MatchInfo.SrcOps); in applyShuffleVectorPseudo()
412 MIRBuilder.buildInstr(MatchInfo.Opc, {MatchInfo.Dst}, in applyEXT()
413 {MatchInfo.SrcOps[0], MatchInfo.SrcOps[1], Cst}); in applyEXT()
623 MatchInfo = *MaybeNewImmAndPred; in matchAdjustICmpImmAndPred()
636 MatchInfo.first); in applyAdjustICmpImmAndPred()
639 MI.getOperand(1).setPredicate(MatchInfo.second); in applyAdjustICmpImmAndPred()
691 MatchInfo.first = Opc; in matchDupLane()
[all …]
H A DAArch64PostLegalizerCombiner.cpp55 std::tuple<unsigned, LLT, Register> &MatchInfo) { in matchExtractVecEltPairwiseAdd() argument
88 std::get<0>(MatchInfo) = TargetOpcode::G_FADD; in matchExtractVecEltPairwiseAdd()
89 std::get<1>(MatchInfo) = DstTy; in matchExtractVecEltPairwiseAdd()
90 std::get<2>(MatchInfo) = Other->getOperand(0).getReg(); in matchExtractVecEltPairwiseAdd()
98 std::tuple<unsigned, LLT, Register> &MatchInfo) { in applyExtractVecEltPairwiseAdd() argument
99 unsigned Opc = std::get<0>(MatchInfo); in applyExtractVecEltPairwiseAdd()
102 LLT Ty = std::get<1>(MatchInfo); in applyExtractVecEltPairwiseAdd()
103 Register Src = std::get<2>(MatchInfo); in applyExtractVecEltPairwiseAdd()
H A DAArch64PreLegalizerCombiner.cpp66 GISelKnownBits *KB, Register &MatchInfo) { in matchICmpRedundantTrunc() argument
90 MatchInfo = WideReg; in matchICmpRedundantTrunc()
118 std::pair<uint64_t, uint64_t> &MatchInfo) { in matchFoldGlobalOffset() argument
180 MatchInfo = std::make_pair(NewOffset, MinOffset); in matchFoldGlobalOffset()
187 std::pair<uint64_t, uint64_t> &MatchInfo) { in applyFoldGlobalOffset() argument
209 std::tie(Offset, MinOffset) = MatchInfo; in applyFoldGlobalOffset()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp1040 MatchInfo.IsPre = findPreIndexCandidate(MI, MatchInfo.Addr, MatchInfo.Base, in matchCombineIndexedLoadStore()
1042 if (!MatchInfo.IsPre && in matchCombineIndexedLoadStore()
1043 !findPostIndexCandidate(MI, MatchInfo.Addr, MatchInfo.Base, in matchCombineIndexedLoadStore()
1388 MatchInfo.Base = Base; in matchPtrAddImmedChain()
1438 MatchInfo.Imm = in matchShiftImmedChain()
1440 MatchInfo.Reg = Base; in matchShiftImmedChain()
2614 if (!MatchInfo[I]) in applyCombineInsertVecElts()
4025 MatchInfo(Builder); in applyBuildFn()
4032 MatchInfo(Builder); in applyBuildFnNoErase()
4186 MatchInfo = in matchICmpToTrueFalseKnownBits()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dx86-64-static-relo-movl.ll6 %struct.MatchInfo = type [64 x i64]
8 @NO_MATCH = internal constant %struct.MatchInfo zeroinitializer, align 8
11 %pending = alloca %struct.MatchInfo, align 8
13 %u = getelementptr inbounds %struct.MatchInfo, ptr %pending, i32 0, i32 2
/llvm-project-15.0.7/llvm/lib/FileCheck/
H A DFileCheck.cpp1294 SmallVector<StringRef, 4> MatchInfo; in match() local
1298 if (!Regex(RegExToMatch, Flags).match(Buffer, &MatchInfo)) in match()
1302 assert(!MatchInfo.empty() && "Didn't get any match"); in match()
1303 StringRef FullMatch = MatchInfo[0]; in match()
1307 assert(VariableDef.second < MatchInfo.size() && "Internal paren error"); in match()
1309 MatchInfo[VariableDef.second]; in match()
1325 assert(CaptureParenGroup < MatchInfo.size() && "Internal paren error"); in match()
1329 StringRef MatchedValue = MatchInfo[CaptureParenGroup]; in match()