[Mlir-commits] [mlir] [mlir] Deprecate OpPrintingFlags(std::nullopt_t) (NFC) (PR #149546)

Jakub Kuderski llvmlistbot at llvm.org
Fri Jul 18 10:03:19 PDT 2025


================
@@ -1175,6 +1175,7 @@ class alignas(8) OperandStorage {
 class OpPrintingFlags {
 public:
   OpPrintingFlags();
+  LLVM_DEPRECATED("Use OpPrintingFlags() instead", "OpPrintingFlags()")
   OpPrintingFlags(std::nullopt_t) : OpPrintingFlags() {}
----------------
kuhar wrote:

Alternatively, we could make it `nullptr_t` following other IR types in MLIR...

https://github.com/llvm/llvm-project/pull/149546


More information about the Mlir-commits mailing list