[llvm-branch-commits] [llvm] [AMDGPU] Guard more intrinsics with target features (PR #203956)
Diana Picus via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 26 01:03:12 PDT 2026
================
@@ -475,6 +476,7 @@ def int_amdgcn_fmul_legacy : ClangBuiltin<"__builtin_amdgcn_fmul_legacy">,
// intended for use on subtargets that have the v_fma_legacy_f32 and/or
// v_fmac_legacy_f32 instructions. (Note that v_fma_legacy_f16 is unrelated and
// has a completely different kind of legacy behaviour.)
+let TargetFeatures = "gfx10-3-insts" in
----------------
rovka wrote:
This doesn't look great - it used to be guarded by `ST.hasFmaLegacy32Insts`. Can we make that a proper subtarget feature and check that instead of the generation? Ditto below where you're checking GFX11 etc.
https://github.com/llvm/llvm-project/pull/203956
More information about the llvm-branch-commits
mailing list