[all-commits] [llvm/llvm-project] f25cfd: [mlir] Reintroduce API for creating operations wit...
Jeff Niu via All-commits
all-commits at lists.llvm.org
Fri Feb 17 10:08:07 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f25cfd339a8024f9abf787713d07b687384dd59b
https://github.com/llvm/llvm-project/commit/f25cfd339a8024f9abf787713d07b687384dd59b
Author: Jeff Niu <jeff at modular.com>
Date: 2023-02-17 (Fri, 17 Feb 2023)
Changed paths:
M mlir/include/mlir/IR/Operation.h
M mlir/lib/IR/Operation.cpp
Log Message:
-----------
[mlir] Reintroduce API for creating operations with a DictionaryAttr
This patch reintroduces an API to create operations with a pre-existing
DictionaryAttr. This API does not populate the attributes with any
default attributes the operation may have, like the API that takes a
NamedAttrList does. NamedAttrList is effective at not re-hashing the
attributes if no default attributes were added, but this new API speeds
up clone-heavy workloads slightly (~5%).
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D144204
More information about the All-commits
mailing list