[PATCH] D124750: [MLIR] Add a utility to sort the operands of commutative ops
Jeff Niu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 11 03:55:03 PDT 2022
Mogball added a comment.
I'm open to iterating in tree. Landing this utility first and then try adding it as a canonicalization SGTM.
The string could be replaced with an array of tuples (yuck) for now. An enum (constant, block arg, everything else) plus the OperationName.
Attributes need to be handled somehow possibly by adding the op's dictionary attribute and using a deep compare.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124750/new/
https://reviews.llvm.org/D124750
More information about the cfe-commits
mailing list