[llvm] [AMDGPU][MC] Allow UC_VERSION_* constant reuse (PR #96461)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 23:42:45 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 135483bf968bc72a9544a9f2640f73f196ca8cbc 01d49b52bca4dedf37d82707e924092f3ea8f9ea -- llvm/unittests/MC/AMDGPU/Disassembler.cpp llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/MC/AMDGPU/Disassembler.cpp b/llvm/unittests/MC/AMDGPU/Disassembler.cpp
index 9185e20e5f..3f841f87c4 100644
--- a/llvm/unittests/MC/AMDGPU/Disassembler.cpp
+++ b/llvm/unittests/MC/AMDGPU/Disassembler.cpp
@@ -170,8 +170,8 @@ TEST(AMDGPUDisassembler, UCVersionOverride) {
std::unique_ptr<MCDisassembler> DisAsm(
TheTarget->createMCDisassembler(*STI, *Ctx));
std::string Output = testing::internal::GetCapturedStderr();
- EXPECT_TRUE(Output.find("<unknown>:0: warning: unsupported redefinition of UC_VERSION_GFX10") !=
- std::string::npos);
+ EXPECT_TRUE(Output.find("<unknown>:0: warning: unsupported redefinition of "
+ "UC_VERSION_GFX10") != std::string::npos);
SmallVector<char, 64> InsnStr, AnnoStr;
raw_svector_ostream OS(InsnStr);
``````````
</details>
https://github.com/llvm/llvm-project/pull/96461
More information about the llvm-commits
mailing list