mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 04:29:42 +00:00
[MLIR][NFC] Adopt hasNItems() for SizedRegion predicate
Differential Revision: https://reviews.llvm.org/D82334
This commit is contained in:
parent
79aad89d8d
commit
c20875a48c
@ -1586,7 +1586,7 @@ def AnyRegion : Region<CPred<"true">, "any region">;
|
||||
|
||||
// A region with the given number of blocks.
|
||||
class SizedRegion<int numBlocks> : Region<
|
||||
CPred<"$_self.getBlocks().size() == " # numBlocks>,
|
||||
CPred<"llvm::hasNItems($_self, " # numBlocks # ")">,
|
||||
"region with " # numBlocks # " blocks">;
|
||||
|
||||
// A variadic region constraint. It expands to zero or more of the base region.
|
||||
|
Loading…
x
Reference in New Issue
Block a user