[Mlir-commits] [mlir] [MLIR][OpenMP] Add `omp.private` op (PR #80955)
Kareem Ergawy
llvmlistbot at llvm.org
Sun Feb 11 03:04:02 PST 2024
================
@@ -1594,6 +1594,73 @@ LogicalResult DataBoundsOp::verify() {
return success();
}
+LogicalResult PrivateClauseOp::verify() {
+ Type symType = getSymType();
+
+ auto verifyTerminator = [&](Operation *terminator) -> LogicalResult {
+ if (!terminator->hasSuccessors() && !llvm::isa<YieldOp>(terminator))
+ return mlir::emitError(terminator->getLoc())
----------------
ergawy wrote:
Yes, because I don't want this to get resolved to this->emitError(..) in order to provide more accurate location information when needed.
https://github.com/llvm/llvm-project/pull/80955
More information about the Mlir-commits
mailing list