[all-commits] [llvm/llvm-project] 894f52: [AMDGPU] Use BUF multiclasses to reduce repetition...

Jay Foad via All-commits all-commits at lists.llvm.org
Tue Mar 5 05:28:02 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 894f52fc0d4adbe8782e97ce7dd100da02abf020
      https://github.com/llvm/llvm-project/commit/894f52fc0d4adbe8782e97ce7dd100da02abf020
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2024-03-05 (Tue, 05 Mar 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/BUFInstructions.td

  Log Message:
  -----------
  [AMDGPU] Use BUF multiclasses to reduce repetition. NFC. (#84003)

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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list