Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Fix terminator conditions for unregistered operations (#1201)
This PR refines terminator conditions for unregistered operations. Namely, if we allow unregistered operations, then their terminator conditions are implicitly fulfilled. It also modifies `has_trait` to assume the existence of any trait for unregistered operations. This is modelled after the [`mayBeValidWithoutTerminator`][2] and [`mightHaveTrait`][1] in MLIR. Resolves #1167 [1]: https://github.com/llvm/llvm-project/blob/268032f6f10d595bb723f6b4a21632a9f3b35be8/mlir/include/mlir/IR/OperationSupport.h#L288 [2]: https://github.com/llvm/llvm-project/blob/268032f6f10d595bb723f6b4a21632a9f3b35be8/mlir/lib/IR/Verifier.cpp#L100
- Loading branch information