[all-commits] [llvm/llvm-project] f20147: [mlir] Cleanup DenseArrayAttrBase definition and e...
Jeff Niu via All-commits
all-commits at lists.llvm.org
Tue Aug 9 12:43:57 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f20147651822b7e41d6b07e17a4b160452bdd044
https://github.com/llvm/llvm-project/commit/f20147651822b7e41d6b07e17a4b160452bdd044
Author: Jeff Niu <jeff at modular.com>
Date: 2022-08-09 (Tue, 09 Aug 2022)
Changed paths:
M mlir/include/mlir/IR/BuiltinAttributes.td
M mlir/lib/IR/BuiltinAttributes.cpp
Log Message:
-----------
[mlir] Cleanup DenseArrayAttrBase definition and expose raw API
This patch cleans up the definition of `DenseArrayAttrBase` by relying
more on ODS-generated methods. It also exposes an API for using the raw
data of a dense array, similar to `DenseIntOrFPElementsAttr::getRaw`.
Reviewed By: lattner, mehdi_amini
Differential Revision: https://reviews.llvm.org/D131450
More information about the All-commits
mailing list