[Mlir-commits] [mlir] [MLIR] Add remark flags to mlir-opt (PR #156825)
Guray Ozen
llvmlistbot at llvm.org
Fri Sep 5 08:18:27 PDT 2025
================
@@ -0,0 +1,80 @@
+//===------ TestRemarkPipeline.cpp --- dynamic pipeline test pass --------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file implements a pass to test the dynamic pipeline feature.
+//
+//===----------------------------------------------------------------------===//
+
+#include "mlir/IR/BuiltinOps.h"
+#include "mlir/IR/Location.h"
+#include "mlir/IR/Remarks.h"
+#include "mlir/Pass/Pass.h"
+#include "mlir/Pass/PassManager.h"
+
+using namespace mlir;
+
+namespace {
+
+class TestRemarkPipelinePass
+ : public PassWrapper<TestRemarkPipelinePass, OperationPass<>> {
+public:
+ MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestRemarkPipelinePass)
+
+ StringRef getArgument() const final { return "test-remark-pipeline"; }
+ StringRef getDescription() const final {
+ return "Tests the remark pipeline feature";
+ }
+ void getDependentDialects(DialectRegistry ®istry) const override {
+ OpPassManager pm(ModuleOp::getOperationName(),
+ OpPassManager::Nesting::Implicit);
+
+ pm.getDependentDialects(registry);
+ }
----------------
grypp wrote:
my bad, removed this part.
https://github.com/llvm/llvm-project/pull/156825
More information about the Mlir-commits
mailing list