[llvm] [AMDGPU][GlobalISel] Add RegBankLegalize support for G_BLOCK_ADDR and G_GLOBAL_VALUE (PR #165340)
Petar Avramovic via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 28 04:30:48 PDT 2025
================
@@ -903,6 +903,10 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
addRulesForGOpcs({G_READSTEADYCOUNTER}, Standard).Uni(S64, {{Sgpr64}, {}});
+ addRulesForGOpcs({G_BLOCK_ADDR}).Any({{UniP0}, {{SgprP0}, {}}});
+
+ addRulesForGOpcs({G_GLOBAL_VALUE}).Any({{UniP3}, {{SgprP3}, {}}});
----------------
petar-avramovic wrote:
Should add more ll tests. Also need to cover all pointer types, could use Ptr32, Ptr64 and Ptr128
https://github.com/llvm/llvm-project/pull/165340
More information about the llvm-commits
mailing list