Commit 7c74a250 authored by Matthias Springer's avatar Matthias Springer
Browse files

[mlir][SCF][NFC] Add helper functions to get body of scf.while

Add two new helper functions `getBeforeBody` and `getAfterBody` to be consistent with "scf.for" (`getBody`) and to show in the API that both regions have exactly one block. Also simplify some code that assumed that there can be more than one block in a region.

Differential Revision: https://reviews.llvm.org/D157860
parent 86f3dc83
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment