[llvm] [DirectX] Make dx.RawBuffer an op that can't be replaced (PR #154620)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 12:52:52 PDT 2025
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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/IR/DerivedTypes.h llvm/lib/IR/Type.cpp llvm/lib/Target/DirectX/DXILResourceAccess.cpp llvm/lib/Transforms/Utils/Local.cpp llvm/unittests/Transforms/Utils/LocalTest.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Transforms/Utils/LocalTest.cpp b/llvm/unittests/Transforms/Utils/LocalTest.cpp
index 194684d86..3e31e666b 100644
--- a/llvm/unittests/Transforms/Utils/LocalTest.cpp
+++ b/llvm/unittests/Transforms/Utils/LocalTest.cpp
@@ -1061,7 +1061,7 @@ TEST(LocalTest, TargetTypeInfoHasNoReplacementProperty) {
LLVMContext Ctx;
SmallVector<unsigned, 3> Ints = {};
auto *TT = llvm::TargetExtType::get(Ctx, "dx.RawBuffer", {}, Ints);
-
+
EXPECT_TRUE(TT->hasProperty(TargetExtType::Property::NoReplacement));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/154620
More information about the llvm-commits
mailing list