[mlir][Shape][NFC] Migrate shape dialect to the new fold API
authorMarkus Böck <markus.boeck02@gmail.com>
Tue, 10 Jan 2023 19:03:08 +0000 (20:03 +0100)
committerMarkus Böck <markus.boeck02@gmail.com>
Thu, 12 Jan 2023 08:52:14 +0000 (09:52 +0100)
commit22bf69351108789d267cacb8e0761f1d0dd63682
tree3eb2435a8463641cc6f1a0d9f8daa570628e67ce
parent706881825b2470c7176e07355b6ab54d8b4c5f95
[mlir][Shape][NFC] Migrate shape dialect to the new fold API

See https://discourse.llvm.org/t/psa-new-improved-fold-method-signature-has-landed-please-update-your-downstream-projects/67618 for context

Changes are mostly mechanical in nature. The code nevertheless became more expressive in a lot of places thanks to the use of the new getters!

Differential Revision: https://reviews.llvm.org/D141501
mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td
mlir/lib/Dialect/Shape/IR/Shape.cpp