[llvm] [DirectX] Add support to lower LLVM intrinsics ceil, cos, fabs, and floor to DXIL Ops. (PR #80350)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 14:01:31 PST 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 7a7d5481ad5c925d4f31bee3ab66bd1d7d514b73 51ee896ead097e899bacfe3e6f6fd4cebc1fceff -- llvm/lib/Target/DirectX/DXILOpLowering.cpp llvm/utils/TableGen/DXILEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/DXILEmitter.cpp b/llvm/utils/TableGen/DXILEmitter.cpp
index 0a53f31562..80967c9891 100644
--- a/llvm/utils/TableGen/DXILEmitter.cpp
+++ b/llvm/utils/TableGen/DXILEmitter.cpp
@@ -280,30 +280,30 @@ static std::string emitDXILOperationFnAttr(StringRef FnAttr) {
// Convert overload type notation as specified in DXIL
// specification.
-static std::string getOverloadKind(const char& Overload) {
+static std::string getOverloadKind(const char &Overload) {
switch (Overload) {
- case 'h' :
- return "OverloadKind::HALF";
- case 'f' :
- return "OverloadKind::FLOAT";
- case 'd' :
- return "OverloadKind::DOUBLE";
- case '1' :
- return "OverloadKind::I1";
- case 'w' :
- return "OverloadKind::I16";
- case 'i' :
- return "OverloadKind::I32";
- case 'l' :
- return "OverloadKind::I64";
- case 'u' :
- return "OverloadKind::UserDefinedType";
- case 'o' :
- return "OverloadKind::ObjectType";
- case 'v' :
- return "OverloadKind::VOID";
- default:
- llvm_unreachable("Unknown overload kind specified");
+ case 'h':
+ return "OverloadKind::HALF";
+ case 'f':
+ return "OverloadKind::FLOAT";
+ case 'd':
+ return "OverloadKind::DOUBLE";
+ case '1':
+ return "OverloadKind::I1";
+ case 'w':
+ return "OverloadKind::I16";
+ case 'i':
+ return "OverloadKind::I32";
+ case 'l':
+ return "OverloadKind::I64";
+ case 'u':
+ return "OverloadKind::UserDefinedType";
+ case 'o':
+ return "OverloadKind::ObjectType";
+ case 'v':
+ return "OverloadKind::VOID";
+ default:
+ llvm_unreachable("Unknown overload kind specified");
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/80350
More information about the llvm-commits
mailing list