mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
[mlir] Add NumberOfExecutions analysis + update RegionBranchOpInterface interface to query number of region invocations
Implements RFC discussed in: https://llvm.discourse.group/t/rfc-operationinstancesinterface-or-any-better-name/2158/10 Reviewed By: silvas, ftynse, rriddle Differential Revision: https://reviews.llvm.org/D90922
This commit is contained in:
@@ -73,6 +73,9 @@ detail::verifyBranchSuccessorOperands(Operation *op, unsigned succNo,
|
||||
// RegionBranchOpInterface
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// A constant value to represent unknown number of region invocations.
|
||||
const int64_t mlir::kUnknownNumRegionInvocations = -1;
|
||||
|
||||
/// Verify that types match along all region control flow edges originating from
|
||||
/// `sourceNo` (region # if source is a region, llvm::None if source is parent
|
||||
/// op). `getInputsTypesForRegion` is a function that returns the types of the
|
||||
|
||||
Reference in New Issue
Block a user