[Mlir-commits] [mlir] 96ad6fc - [mlir][acc] Add inline implementation for emitNYI (#209337)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jul 13 16:46:02 PDT 2026


Author: Razvan Lupusoru
Date: 2026-07-13T16:45:57-07:00
New Revision: 96ad6fc9e86d7cb2dbd0ad1646b40219fd6a8fda

URL: https://github.com/llvm/llvm-project/commit/96ad6fc9e86d7cb2dbd0ad1646b40219fd6a8fda
DIFF: https://github.com/llvm/llvm-project/commit/96ad6fc9e86d7cb2dbd0ad1646b40219fd6a8fda.diff

LOG: [mlir][acc] Add inline implementation for emitNYI (#209337)

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
    mlir/lib/Dialect/OpenACC/Analysis/OpenACCSupport.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h b/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
index 03bb6fb81d1ed..b004a5f83e380 100644
--- a/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
+++ b/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
@@ -274,7 +274,11 @@ class OpenACCSupport {
   /// \param message The message to report.
   /// \return An in-flight diagnostic object that can be used to report the
   ///         unsupported case.
-  InFlightDiagnostic emitNYI(Location loc, const Twine &message);
+  InFlightDiagnostic emitNYI(Location loc, const Twine &message) {
+    if (impl)
+      return impl->emitNYI(loc, message);
+    return mlir::emitError(loc, "not yet implemented: " + message);
+  }
 
   /// Emit an OpenACC remark with lazy message generation.
   ///

diff  --git a/mlir/lib/Dialect/OpenACC/Analysis/OpenACCSupport.cpp b/mlir/lib/Dialect/OpenACC/Analysis/OpenACCSupport.cpp
index 0f2f9d02ef2b3..be97b2bb2fbec 100644
--- a/mlir/lib/Dialect/OpenACC/Analysis/OpenACCSupport.cpp
+++ b/mlir/lib/Dialect/OpenACC/Analysis/OpenACCSupport.cpp
@@ -37,12 +37,6 @@ std::string OpenACCSupport::getRecipeName(RecipeKind kind, Type type,
   return recipeName;
 }
 
-InFlightDiagnostic OpenACCSupport::emitNYI(Location loc, const Twine &message) {
-  if (impl)
-    return impl->emitNYI(loc, message);
-  return mlir::emitError(loc, "not yet implemented: " + message);
-}
-
 remark::detail::InFlightRemark
 OpenACCSupport::emitRemark(Operation *op,
                            std::function<std::string()> messageFn,


        


More information about the Mlir-commits mailing list