[Mlir-commits] [mlir] [mlir] Retain original identifier names for debugging (PR #79704)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Jan 27 10:52:26 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 6ccb06a7abc2062c72267bb7054502ae7db8cb82 d062cb861c283594413c8edc7dca57f9494b1f3e -- mlir/include/mlir/IR/AsmState.h mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h mlir/lib/AsmParser/Parser.cpp mlir/lib/IR/AsmPrinter.cpp mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/include/mlir/IR/AsmState.h b/mlir/include/mlir/IR/AsmState.h
index 9c4eadb04c..36f80712ef 100644
--- a/mlir/include/mlir/IR/AsmState.h
+++ b/mlir/include/mlir/IR/AsmState.h
@@ -144,7 +144,8 @@ public:
   /// Return the underlying data as an array of the given type. This is an
   /// inherrently unsafe operation, and should only be used when the data is
   /// known to be of the correct type.
-  template <typename T> ArrayRef<T> getDataAs() const {
+  template <typename T>
+  ArrayRef<T> getDataAs() const {
     return llvm::ArrayRef<T>((const T *)data.data(), data.size() / sizeof(T));
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/79704


More information about the Mlir-commits mailing list