[llvm] Add and call `AMDGPUMCResourceInfo::reset` method (PR #110818)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 03:35:08 PDT 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 4f6ad17adce1b87cadf0c896d3b38334045196ea 821d52c02f16f2e8d39cd25ebd54c30f22bce112 --extensions cpp,h -- llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.cpp llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index 8cc2132a2e..eac08e161a 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -360,7 +360,7 @@ bool AMDGPUAsmPrinter::doInitialization(Module &M) {
   }
 
   RI.reset();
-  
+
   return AsmPrinter::doInitialization(M);
 }
 
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.h b/llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.h
index 9f7f4b1b8f..9dc34100e6 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.h
@@ -76,7 +76,7 @@ public:
                               MCContext &Ctx);
 
   void reset();
-  
+
   // Resolves the final symbols that requires the inter-function resource info
   // to be resolved.
   void finalize(MCContext &OutContext);

``````````

</details>


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


More information about the llvm-commits mailing list