[llvm] [clang] [HLSL][DirectX] Move handling of resource element types into the frontend (PR #75674)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 15 16:31:59 PST 2023
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 b3e353d263f9d6ef061f4e6d89619c72a3553002 9d6e00bd972a563daefd67b544614e2bb609cc42 -- clang/lib/CodeGen/CGHLSLRuntime.cpp clang/lib/CodeGen/CGHLSLRuntime.h llvm/include/llvm/Frontend/HLSL/HLSLResource.h llvm/lib/Frontend/HLSL/HLSLResource.cpp llvm/lib/Target/DirectX/DXILResource.cpp llvm/lib/Target/DirectX/DXILResource.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/DirectX/DXILResource.cpp b/llvm/lib/Target/DirectX/DXILResource.cpp
index b22f6d3ca4..621852f245 100644
--- a/llvm/lib/Target/DirectX/DXILResource.cpp
+++ b/llvm/lib/Target/DirectX/DXILResource.cpp
@@ -236,8 +236,8 @@ void UAVResource::print(raw_ostream &OS) const {
OS << right_justify("UAV", 10);
- printElementType(
- Shape, ExtProps.ElementType.value_or(ElementType::Invalid), 8, OS);
+ printElementType(Shape, ExtProps.ElementType.value_or(ElementType::Invalid),
+ 8, OS);
// FIXME: support SampleCount.
// See https://github.com/llvm/llvm-project/issues/58175
``````````
</details>
https://github.com/llvm/llvm-project/pull/75674
More information about the cfe-commits
mailing list