[llvm] [DirectX] Follow naming conventions for enumerators in DXILABI.h. NFC (PR #86237)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 20:23:02 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 40beb9b001a3c67c60b98fae9e999dcaa2d88717 01cab7b04f2d95273a6512ba8eedb68bb73d381c -- llvm/include/llvm/Support/DXILABI.h llvm/lib/Target/DirectX/DXILOpBuilder.cpp llvm/utils/TableGen/DXILEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/DirectX/DXILOpBuilder.cpp b/llvm/lib/Target/DirectX/DXILOpBuilder.cpp
index 0841ae9542..6949382bc1 100644
--- a/llvm/lib/Target/DirectX/DXILOpBuilder.cpp
+++ b/llvm/lib/Target/DirectX/DXILOpBuilder.cpp
@@ -320,8 +320,7 @@ Type *DXILOpBuilder::getOverloadTy(dxil::OpCode OpCode, FunctionType *FT) {
auto ParamKinds = getOpCodeParameterKind(*Prop);
auto Kind = ParamKinds[Prop->OverloadParamIndex];
// For ResRet and CBufferRet, OverloadTy is in field of StructType.
- if (Kind == ParameterKind::CBufferRet ||
- Kind == ParameterKind::ResourceRet) {
+ if (Kind == ParameterKind::CBufferRet || Kind == ParameterKind::ResourceRet) {
auto *ST = cast<StructType>(OverloadType);
OverloadType = ST->getElementType(0);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/86237
More information about the llvm-commits
mailing list