Skip to content

Commit

Permalink
[AMDGPU] Use BUF multiclasses to reduce repetition. NFC. (#84003)
Browse files Browse the repository at this point in the history
Define BUF Real instructions with this general pattern for all
architectures (not just GFX11):

  multiclass Something_Real_gfx11<...> {
    defvar ps = !cast<Pseudo>(NAME);
    def _gfx11 : ...;
  }

This allows removing a huge amount of repetition in the definitions of
individual Real instructions, where they would have to !cast their own
name to a Pseudo and pass that in as a class argument.
  • Loading branch information
jayfoad committed Mar 5, 2024
1 parent e84182a commit 894f52f
Showing 1 changed file with 289 additions and 316 deletions.
Loading

0 comments on commit 894f52f

Please sign in to comment.