[mlir] NFC: retire LLVM_Zero/OneResultOp from LLVM dialect ODS
authorAlex Zinenko <zinenko@google.com>
Tue, 15 Dec 2020 20:10:49 +0000 (21:10 +0100)
committerAlex Zinenko <zinenko@google.com>
Tue, 15 Dec 2020 22:50:03 +0000 (23:50 +0100)
commit02220f3204980496c8877abb51ba1fd87a108541
treecbe584e1ab209c8011dc9094eaf2389a25977917
parent20d0cbd3fadf5a6e78373ab5c9d35e9e5d49f172
[mlir] NFC: retire LLVM_Zero/OneResultOp from LLVM dialect ODS

These classes were initially introduced to factor out two common parts of LLVM
op definitions: the fact that they have no results or a single result of
LLVM_Type, and the default builders. Neither of the two parts is really
common anymore: many ops have more specific on the result type, and many ops
provide custom builders. The TableGen classes only add conceptual complexity
and make LLVM dialect definition dissimilar to other dialects. Remove them in
favor of explicitly specified builders (results are already specified).

Depends On D93329

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D93330
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td