[llvm-branch-commits] [mlir] 25bf90e - [MLIR][Docs] Fix typo in addTypeAttributeConversion comment (#146977)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Jul 6 19:11:19 PDT 2025
Author: Xiaomin Liu
Date: 2025-07-04T09:14:51+02:00
New Revision: 25bf90eaede41156e45f974c772e320758cbb3c8
URL: https://github.com/llvm/llvm-project/commit/25bf90eaede41156e45f974c772e320758cbb3c8
DIFF: https://github.com/llvm/llvm-project/commit/25bf90eaede41156e45f974c772e320758cbb3c8.diff
LOG: [MLIR][Docs] Fix typo in addTypeAttributeConversion comment (#146977)
Typo in
```
This result can either contan an `Attribute`,
```
to
```
This result can either contain an `Attribute`,
```
rest is clang-format
Signed-off-by: Xiaomin Liu <xl4624 at nyu.edu>
Added:
Modified:
mlir/include/mlir/Transforms/DialectConversion.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Transforms/DialectConversion.h b/mlir/include/mlir/Transforms/DialectConversion.h
index 81858812d2623..f6437657c9a93 100644
--- a/mlir/include/mlir/Transforms/DialectConversion.h
+++ b/mlir/include/mlir/Transforms/DialectConversion.h
@@ -221,12 +221,13 @@ class TypeConverter {
///
/// The conversion functions take a non-null Type or subclass of Type and a
/// non-null Attribute (or subclass of Attribute), and returns a
- /// `AttributeConversionResult`. This result can either contan an `Attribute`,
- /// which may be `nullptr`, representing the conversion's success,
- /// `AttributeConversionResult::na()` (the default empty value), indicating
- /// that the conversion function did not apply and that further conversion
- /// functions should be checked, or `AttributeConversionResult::abort()`
- /// indicating that the conversion process should be aborted.
+ /// `AttributeConversionResult`. This result can either contain an
+ /// `Attribute`, which may be `nullptr`, representing the conversion's
+ /// success, `AttributeConversionResult::na()` (the default empty value),
+ /// indicating that the conversion function did not apply and that further
+ /// conversion functions should be checked, or
+ /// `AttributeConversionResult::abort()` indicating that the conversion
+ /// process should be aborted.
///
/// Registered conversion functions are callled in the reverse of the order in
/// which they were registered.
More information about the llvm-branch-commits
mailing list