[llvm] [AMDGPU][MC] GFX9 - Support NV bit in FLAT instructions in pre-GFX90A (PR #154237)
Jun Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 16 15:00:39 PDT 2025
================
@@ -2329,6 +2329,16 @@ def isGFX8GFX9NotGFX90A :
" Subtarget->getGeneration() == AMDGPUSubtarget::GFX9)">,
AssemblerPredicate<(all_of FeatureGFX8Insts, FeatureGCN3Encoding, (not FeatureGFX90AInsts))>;
+def isGFX9NotGFX90A :
+ Predicate<"!Subtarget->hasGFX90AInsts() &&"
+ " Subtarget->getGeneration() == AMDGPUSubtarget::GFX9)">,
+ AssemblerPredicate<(all_of FeatureGFX9Insts, (not FeatureGFX90AInsts), (not FeatureGFX10Insts))>;
+
+def isGFX8orGFX9After908 :
+ Predicate<"(Subtarget->getGeneration() == AMDGPUSubtarget::VOLCANIC_ISLANDS) ||"
+ " ((Subtarget->getGeneration() == AMDGPUSubtarget::GFX9) && Subtarget->hasGFX90AInsts())">,
+ AssemblerPredicate <(any_of FeatureVolcanicIslands, FeatureGFX90AInsts)>;
----------------
jwanggit86 wrote:
`isGFX9NotGFX90A` renamed to `isNVAllowedinFlat`, and `isGFX9OrGFX9After908` renamed to `isNVNotAllowedinFlat`. Your thoughts?
https://github.com/llvm/llvm-project/pull/154237
More information about the llvm-commits
mailing list