Skip to content

Commit 5d0bf4f

Browse files
committed
added info in header files & fixed newline
1 parent 214a323 commit 5d0bf4f

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

mlir/include/mlir/Query/Matcher/MatchFinder.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1+
//===- MatchFinder.h - ------------------------------------------*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
17
//===----------------------------------------------------------------------===//
8+
//
9+
// This file contains the MatchFinder class, which is used to find operations
10+
// that match a given matcher and print them.
11+
//
212
// MatchFinder.h
313
//===----------------------------------------------------------------------===//
414

mlir/include/mlir/Query/Matcher/MatchersInternal.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1-
//===- MatchersInternal.h - Structural query framework ----------*- C++ -*-===//
21
//
32
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
43
// See https://llvm.org/LICENSE.txt for license information.
4+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
//
6+
//===----------------------------------------------------------------------===//
7+
//
8+
// Implements the base layer of the matcher framework.
9+
//
10+
// Matchers are methods that return a Matcher which provides a method
11+
// match(Operation *op)
12+
// match(Operation *op, SetVector<Operation *> &matchedOps, QueryOptions
13+
// &options)
14+
//
15+
// The matcher functions are defined in include/mlir/IR/Matchers.h.
16+
// This file contains the wrapper classes needed to construct matchers for
17+
// mlir-query.
518
// SPDX-License-Identifier: Apache-2.0 WItH LLVM-exception
619
//
720
//===----------------------------------------------------------------------===//
8-
921
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHER_MATCHERSINTERNAL_H
1022
#define MLIR_TOOLS_MLIRQUERY_MATCHER_MATCHERSINTERNAL_H
1123

mlir/lib/Query/Query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ LogicalResult MatchQuery::run(llvm::raw_ostream &os, QuerySession &qs) const {
156156
return mlir::success();
157157
}
158158

159-
} // namespace mlir::query
159+
} // namespace mlir::query

0 commit comments

Comments
 (0)