Simplify ODS for loop.if and loop.for traits (NFC)

There is a wrapper for SingleBlockImplicitTerminator in ODS, this is nicer to
read than using `NativeOpTrait`.

PiperOrigin-RevId: 260539473
This commit is contained in:
Mehdi Amini 2019-07-29 11:14:25 -07:00 committed by jpienaar
parent 673bb7cbbe
commit b910d89264
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class Loop_Op<string mnemonic, list<OpTrait> traits = []> :
}
def ForOp : Loop_Op<"for",
[NativeOpTrait<"SingleBlockImplicitTerminator<TerminatorOp>::Impl">]> {
[SingleBlockImplicitTerminator<"TerminatorOp">]> {
let summary = "for operation";
let description = [{
The "loop.for" operation represents a loop nest taking 3 SSA value as
@ -92,7 +92,7 @@ def ForOp : Loop_Op<"for",
}
def IfOp : Loop_Op<"if",
[NativeOpTrait<"SingleBlockImplicitTerminator<TerminatorOp>::Impl">]> {
[SingleBlockImplicitTerminator<"TerminatorOp">]> {
let summary = "if-then-else operation";
let description = [{
The "loop.if" operation represents an if-then-else construct for