[MLIR][NFC] Adopt hasNItems() for SizedRegion predicate

Differential Revision: https://reviews.llvm.org/D82334
This commit is contained in:
Rahul Joshi 2020-06-22 15:11:40 -07:00
parent 79aad89d8d
commit c20875a48c

View File

@ -1586,7 +1586,7 @@ def AnyRegion : Region<CPred<"true">, "any region">;
// A region with the given number of blocks. // A region with the given number of blocks.
class SizedRegion<int numBlocks> : Region< class SizedRegion<int numBlocks> : Region<
CPred<"$_self.getBlocks().size() == " # numBlocks>, CPred<"llvm::hasNItems($_self, " # numBlocks # ")">,
"region with " # numBlocks # " blocks">; "region with " # numBlocks # " blocks">;
// A variadic region constraint. It expands to zero or more of the base region. // A variadic region constraint. It expands to zero or more of the base region.