Home
last modified time | relevance | path

Searched refs:FPValReg (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMIPatternMatch.h156 std::optional<FPValueAndVReg> &FPValReg; member
157 GFCstAndRegMatch(std::optional<FPValueAndVReg> &FPValReg) in GFCstAndRegMatch()
158 : FPValReg(FPValReg) {} in GFCstAndRegMatch()
160 FPValReg = getFConstantVRegValWithLookThrough(Reg, MRI); in match()
161 return FPValReg ? true : false; in match()
165 inline GFCstAndRegMatch m_GFCst(std::optional<FPValueAndVReg> &FPValReg) { in m_GFCst() argument
166 return GFCstAndRegMatch(FPValReg); in m_GFCst()
170 std::optional<FPValueAndVReg> &FPValReg; member
171 GFCstOrSplatGFCstMatch(std::optional<FPValueAndVReg> &FPValReg) in GFCstOrSplatGFCstMatch()
172 : FPValReg(FPValReg) {} in GFCstOrSplatGFCstMatch()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCombinerHelper.cpp157 std::optional<FPValueAndVReg> FPValReg; in isConstantCostlierToNegate() local
158 if (mi_match(Reg, MRI, m_GFCstOrSplat(FPValReg))) { in isConstantCostlierToNegate()
159 if (FPValReg->Value.isZero() && !FPValReg->Value.isNegative()) in isConstantCostlierToNegate()
163 if (ST.hasInv2PiInlineImm() && isInv2Pi(FPValReg->Value)) in isConstantCostlierToNegate()
H A DAMDGPUInstructionSelector.cpp4053 std::optional<FPValueAndVReg> FPValReg; in selectWMMAVISrc() local
4054 if (mi_match(Root.getReg(), *MRI, m_GFCstOrSplat(FPValReg))) { in selectWMMAVISrc()
4055 if (TII.isInlineConstant(FPValReg->Value)) { in selectWMMAVISrc()
4057 MIB.addImm(FPValReg->Value.bitcastToAPInt().getSExtValue()); in selectWMMAVISrc()