[Mlir-commits] [mlir] [mlir] Add searchable remark history and query-based links (PR #237762)

Henrich Lauko llvmlistbot at llvm.org
Tue Nov 3 01:35:19 PST 2026


================
@@ -139,13 +141,60 @@ struct RemarkOpts {
   inline RemarkOpts relatedTo(const detail::InFlightRemark &r) const;
 };
 
+/// Exact-match criteria for searching previously reported remarks. Unspecified
+/// fields match any value; a specified empty string matches an empty field.
+/// Strings are owned by the query. Locations belong to their MLIRContext and
+/// must not outlive it. A location match does not imply operation identity.
+class RemarkQuery {
+public:
+  RemarkQuery name(StringRef value) const {
----------------
xlauko wrote:

These are const and return a copy, so query.name("X"); compiles and does nothing. Please mark the builders [[nodiscard]].

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


More information about the Mlir-commits mailing list