[llvm] [AMDGPU] Check hasNoF16PseudoScalarTransInlineConstants in more places (PR #208459)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 10:19:01 PDT 2026


================
@@ -1232,9 +1232,13 @@ defm PseudoScalarTrans : AMDGPUSubtargetFeature<"pseudo-scalar-trans",
 
 defm NoF16PseudoScalarTransInlineConstants : AMDGPUSubtargetFeature<"no-f16-pseudo-scalar-trans-inline-constants",
   "Inline constants are not supported for F16 pseudo scalar transcendentals",
-  /*GenPredicate=*/0
+  /*GenPredicate=*/1
 >;
 
+def HasF16PseudoScalarTransWithInlineConstants :
+  Predicate<"Subtarget->hasPseudoScalarTrans() && !Subtarget->hasNoF16PseudoScalarTransInlineConstants()">,
+  AssemblerPredicate<(all_of FeaturePseudoScalarTrans, (not FeatureNoF16PseudoScalarTransInlineConstants))>;
----------------
arsenm wrote:

Seems like there should be new assembler error tests?

https://github.com/llvm/llvm-project/pull/208459


More information about the llvm-commits mailing list