forked from OSchip/llvm-project
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:
parent
673bb7cbbe
commit
b910d89264
|
@ -48,7 +48,7 @@ class Loop_Op<string mnemonic, list<OpTrait> traits = []> :
|
||||||
}
|
}
|
||||||
|
|
||||||
def ForOp : Loop_Op<"for",
|
def ForOp : Loop_Op<"for",
|
||||||
[NativeOpTrait<"SingleBlockImplicitTerminator<TerminatorOp>::Impl">]> {
|
[SingleBlockImplicitTerminator<"TerminatorOp">]> {
|
||||||
let summary = "for operation";
|
let summary = "for operation";
|
||||||
let description = [{
|
let description = [{
|
||||||
The "loop.for" operation represents a loop nest taking 3 SSA value as
|
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",
|
def IfOp : Loop_Op<"if",
|
||||||
[NativeOpTrait<"SingleBlockImplicitTerminator<TerminatorOp>::Impl">]> {
|
[SingleBlockImplicitTerminator<"TerminatorOp">]> {
|
||||||
let summary = "if-then-else operation";
|
let summary = "if-then-else operation";
|
||||||
let description = [{
|
let description = [{
|
||||||
The "loop.if" operation represents an if-then-else construct for
|
The "loop.if" operation represents an if-then-else construct for
|
||||||
|
|
Loading…
Reference in New Issue