[all-commits] [llvm/llvm-project] 28d767: [mlir] Add two clone methods about encoding to Ran...
Han-Chung Wang via All-commits
all-commits at lists.llvm.org
Thu Feb 27 17:59:48 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28d76714714a2cdcbdd62265de15115015eb9469
https://github.com/llvm/llvm-project/commit/28d76714714a2cdcbdd62265de15115015eb9469
Author: Han-Chung Wang <hanhan0912 at gmail.com>
Date: 2025-02-27 (Thu, 27 Feb 2025)
Changed paths:
M mlir/include/mlir/IR/BuiltinTypes.td
M mlir/unittests/IR/ShapedTypeTest.cpp
Log Message:
-----------
[mlir] Add two clone methods about encoding to RankedTensorType. (#127709)
There are clone methods for shape and element type, but not for
encodings. The revision adds two clone method to RankedTensorType:
- dropEncoding(): Return a clone of this type without the encoding.
- cloneWithEncoding(Attribute encoding): Return a clone of this type
with the given new encoding and the same shape and element type as this
type.
Signed-off-by: hanhanW <hanhan0912 at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list