aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorJeff Niu <jeff@modular.com>2023-01-08 12:46:52 -0800
committerJeff Niu <jeff@modular.com>2023-01-12 13:26:12 -0800
commit1b60f0d73c34fec4648bb05f98db75008a50f4d8 (patch)
treee27c4485cf73ab343ebf0f5441832e126aaa5c3b /llvm/lib/Transforms/Utils/Local.cpp
parent27cf96c4ec4a2a2906fef7479341c5b9d8616887 (diff)
downloadllvm-1b60f0d73c34fec4648bb05f98db75008a50f4d8.zip
llvm-1b60f0d73c34fec4648bb05f98db75008a50f4d8.tar.gz
llvm-1b60f0d73c34fec4648bb05f98db75008a50f4d8.tar.bz2
[mlir][ods] Generate inferReturnTypes for ops with TypesMatchWith
Ops that use TypesMatchWith to constrain result types for verification and to infer result types during parser generation should also be able to have the `inferReturnTypes` method auto generated. This patch upgrades the logic for generating `inferReturnTypes` to handle the TypesMatchWith trait by building a type inference graph where each edge corresponds to "type of A can be inferred from type of B", supporting transformers other than `"$_self"`. Reviewed By: lattner, rriddle Differential Revision: https://reviews.llvm.org/D141231
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions