[llvm] AMDGPU: Define HasExpOrExportInsts for export instruction definitions. (PR #84083)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 14:37:31 PST 2024


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 e96c0c1d5e0a9916098b1a31acb006ea6c1108fb b726f08ab3489689799108312dd20ecd2546d80c -- llvm/lib/Target/AMDGPU/GCNSubtarget.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/GCNSubtarget.h b/llvm/lib/Target/AMDGPU/GCNSubtarget.h
index bb0ccfce32..36e38b9954 100644
--- a/llvm/lib/Target/AMDGPU/GCNSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/GCNSubtarget.h
@@ -647,9 +647,7 @@ public:
   // BUFFER/FLAT/GLOBAL_ATOMIC_ADD/MIN/MAX_F64
   bool hasBufferFlatGlobalAtomicsF64() const { return hasGFX90AInsts(); }
 
-  bool hasExpOrExportInsts() const {
-    return !hasGFX940Insts();
-  }
+  bool hasExpOrExportInsts() const { return !hasGFX940Insts(); }
 
   // DS_ADD_F64/DS_ADD_RTN_F64
   bool hasLdsAtomicAddF64() const { return hasGFX90AInsts(); }

``````````

</details>


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


More information about the llvm-commits mailing list