diff options
| author | Alexander Belyaev <pifon@google.com> | 2020-04-27 21:46:35 +0200 |
|---|---|---|
| committer | Alexander Belyaev <pifon@google.com> | 2020-04-27 21:48:52 +0200 |
| commit | ed5363a6747b7e7914efa216b82438124587c862 (patch) | |
| tree | b44ed406e30ed3cd5b2e7c92bae585196bda6c25 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 68d2301e12351403edf57b6640294c35a09a80c5 (diff) | |
[MLIR] Add getBody() method to SingleImplicitBlockTerminator op trait.
Many ops with this trait have `getBody()` and `getBodyBuilder()` methods defined in `extraClassDeclaration` in tablegen. `getBody()` implementation is the same accross all these ops, but `getBodyBuilder()` can return builders with varying insertion points set. In this PR, `getBody()` is moved into `SingleImplicitBlockTerminator` struct and `getBodyBuilder()` is replaced with `OpBuilder::atBlock(End|Terminator)(op.getBody);`.
Differential Revision: https://reviews.llvm.org/D78864
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
