[Mlir-commits] [mlir] [mlir] Add the ability to define dialect-specific location attrs. (PR #105584)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Sep 17 21:33:01 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 716594da176b4cbc956e7c7ab90988db6f907686 fa38aca3ff05f0cbc91cdc2d4ad9a41ea436f658 --extensions h,cpp -- mlir/unittests/IR/LocationTest.cpp mlir/include/mlir/IR/Attributes.h mlir/lib/AsmParser/Parser.cpp mlir/lib/IR/AsmPrinter.cpp mlir/lib/IR/Location.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/AsmParser/Parser.cpp b/mlir/lib/AsmParser/Parser.cpp
index 71c17c4631..d241ba63c3 100644
--- a/mlir/lib/AsmParser/Parser.cpp
+++ b/mlir/lib/AsmParser/Parser.cpp
@@ -1918,9 +1918,10 @@ public:
Token tok = parser.getToken();
- // Check to see if we are parsing a location alias. We are parsing a location
- // alias if the token is a hash identifier *without* a dot in it - the dot
- // signifies a dialect attribute. Otherwise, we parse the location directly.
+ // Check to see if we are parsing a location alias. We are parsing a
+ // location alias if the token is a hash identifier *without* a dot in it -
+ // the dot signifies a dialect attribute. Otherwise, we parse the location
+ // directly.
if (tok.is(Token::hash_identifier) && !tok.getSpelling().contains('.')) {
if (parser.parseLocationAlias(directLoc))
return failure();
``````````
</details>
https://github.com/llvm/llvm-project/pull/105584
More information about the Mlir-commits
mailing list