[llvm] [Target][AMDGPU] Fix TSan error on AMDGPU Target. (PR #79529)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 16: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 320a5197a6d3a0929d0ade3b621769eaf120b203 8431f3a95a1bc9c19c9ace99d17a85c39ed2b5e8 -- llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.h b/llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.h
index 93b5c3ce71..16dcc28bcf 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.h
@@ -72,10 +72,10 @@ public:
   }
 
 private:
-  SIFunctionResourceInfo analyzeResourceUsage(const MachineFunction &MF,
-                                              const TargetMachine &TM,
-    uint32_t AssumedStackSizeForDynamicSizeObjects,
-    uint32_t AssumedStackSizeForExternalCall) const;
+  SIFunctionResourceInfo
+  analyzeResourceUsage(const MachineFunction &MF, const TargetMachine &TM,
+                       uint32_t AssumedStackSizeForDynamicSizeObjects,
+                       uint32_t AssumedStackSizeForExternalCall) const;
   void propagateIndirectCallRegisterUsage();
 
   DenseMap<const Function *, SIFunctionResourceInfo> CallGraphResourceInfo;

``````````

</details>


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


More information about the llvm-commits mailing list