[llvm] [AMDGPU] Add GFX12 encoding and aliases for existing SOP (SALU) instructions (PR #74305)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 03:47:31 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 6d6baef5c9bf880a28c3b9861fc5c1f578b6635c 7c84e2a8e7d1ecd7c73e7cfcc4e96820ef76064a -- llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp b/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
index d613ea4abd..ced3f06a5d 100644
--- a/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
+++ b/llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
@@ -607,7 +607,8 @@ DecodeStatus AMDGPUDisassembler::getInstruction(MCInst &MI, uint64_t &Size,
     if (Res) break;
 
     Res = tryDecodeInst(DecoderTableGFX1232, MI, DW, Address, CS);
-    if (Res) break;
+    if (Res)
+      break;
 
     if (Bytes.size() < 4) break;
     const uint64_t QW = ((uint64_t)eatBytes<uint32_t>(Bytes) << 32) | DW;

``````````

</details>


https://github.com/llvm/llvm-project/pull/74305


More information about the llvm-commits mailing list