Skip to content

Commit ea94792

Browse files
committed
Prepend all matcher files names for easy identification
1 parent dd2053f commit ea94792

13 files changed

+41
-41
lines changed

mlir/lib/Tools/mlir-query/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ add_mlir_library(MLIRQueryLib
77
MlirQueryMain.cpp
88
Query.cpp
99
QueryParser.cpp
10-
Parser.cpp
11-
Registry.cpp
12-
VariantValue.cpp
13-
Diagnostics.cpp
10+
MatcherParser.cpp
11+
MatcherRegistry.cpp
12+
MatcherVariantValue.cpp
13+
MatcherDiagnostics.cpp
1414

1515
ADDITIONAL_HEADER_DIRS
1616
${MLIR_MAIN_INCLUDE_DIR}/mlir/Tools/mlir-query

mlir/lib/Tools/mlir-query/Marshallers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_MARSHALLERS_H
2020

2121
#include "MatchersInternal.h"
22-
#include "VariantValue.h"
22+
#include "MatcherVariantValue.h"
2323
#include "mlir/IR/Matchers.h"
2424
#include "llvm/Support/type_traits.h"
2525

mlir/lib/Tools/mlir-query/Diagnostics.cpp renamed to mlir/lib/Tools/mlir-query/MatcherDiagnostics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===- Diagnostic.cpp -----------------------------------------------------===//
1+
//===- MatcherDiagnostic.cpp ----------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "Diagnostics.h"
9+
#include "MatcherDiagnostics.h"
1010

1111
#include "llvm/Support/Debug.h"
1212
using llvm::dbgs;

mlir/lib/Tools/mlir-query/Diagnostics.h renamed to mlir/lib/Tools/mlir-query/MatcherDiagnostics.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Diagnostics.h - Helper class for error diagnostics ---------------===//
1+
//===--- MatcherDiagnostics.h - Helper class for error diagnostics --------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,10 +10,10 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERS_DIAGNOSTICS_H
14-
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_DIAGNOSTICS_H
13+
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERDIAGNOSTICS_H
14+
#define MLIR_TOOLS_MLIRQUERY_MATCHERDIAGNOSTICS_H
1515

16-
#include "VariantValue.h"
16+
#include "MatcherVariantValue.h"
1717
#include "llvm/ADT/ArrayRef.h"
1818
#include "llvm/ADT/StringRef.h"
1919
#include "llvm/ADT/Twine.h"
@@ -177,4 +177,4 @@ class Diagnostics {
177177
} // namespace query
178178
} // namespace mlir
179179

180-
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERS_DIAGNOSTICS_H
180+
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERDIAGNOSTICS_H

mlir/lib/Tools/mlir-query/Parser.cpp renamed to mlir/lib/Tools/mlir-query/MatcherParser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- Parser.cpp - Matcher expression parser -----------------------------===//
1+
//===- MatcherParser.cpp - Matcher expression parser ----------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "Parser.h"
14-
#include "Registry.h"
13+
#include "MatcherParser.h"
14+
#include "MatcherRegistry.h"
1515
#include "llvm/ADT/Twine.h"
1616
#include <string>
1717
#include <vector>

mlir/lib/Tools/mlir-query/Parser.h renamed to mlir/lib/Tools/mlir-query/MatcherParser.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Parser.h - Matcher expression parser -----------------------------===//
1+
//===--- MatcherParser.h - Matcher expression parser ----------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -23,11 +23,11 @@
2323
//
2424
//===----------------------------------------------------------------------===//
2525

26-
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERS_PARSER_H
27-
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_PARSER_H
26+
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERPARSER_H
27+
#define MLIR_TOOLS_MLIRQUERY_MATCHERPARSER_H
2828

29-
#include "Diagnostics.h"
30-
#include "VariantValue.h"
29+
#include "MatcherDiagnostics.h"
30+
#include "MatcherVariantValue.h"
3131
#include "llvm/ADT/ArrayRef.h"
3232
#include "llvm/ADT/StringRef.h"
3333

@@ -126,4 +126,4 @@ class Parser {
126126
} // namespace query
127127
} // namespace mlir
128128

129-
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERS_PARSER_H
129+
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERPARSER_H

mlir/lib/Tools/mlir-query/Registry.cpp renamed to mlir/lib/Tools/mlir-query/MatcherRegistry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- Registry.cpp - Matcher registry ------------------------------------===//
1+
//===- MatcherRegistry.cpp - Matcher registry -----------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "Registry.h"
13+
#include "MatcherRegistry.h"
1414
#include "ExtraMatchers.h"
1515
#include "mlir/IR/Matchers.h"
1616
#include "llvm/ADT/StringMap.h"

mlir/lib/Tools/mlir-query/Registry.h renamed to mlir/lib/Tools/mlir-query/MatcherRegistry.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Registry.h - Matcher registry ------------------------------------===//
1+
//===--- MatcherRegistry.h - Matcher registry -----------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,12 +12,12 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERS_REGISTRY_H
16-
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_REGISTRY_H
15+
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERREGISTRY_H
16+
#define MLIR_TOOLS_MLIRQUERY_MATCHERREGISTRY_H
1717

18-
#include "Diagnostics.h"
18+
#include "MatcherDiagnostics.h"
1919
#include "Marshallers.h"
20-
#include "VariantValue.h"
20+
#include "MatcherVariantValue.h"
2121
#include "llvm/ADT/ArrayRef.h"
2222
#include "llvm/ADT/StringRef.h"
2323

@@ -55,4 +55,4 @@ class Registry {
5555
} // namespace query
5656
} // namespace mlir
5757

58-
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERS_REGISTRY_H
58+
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERREGISTRY_H

mlir/lib/Tools/mlir-query/MLIRTypeTraits.h renamed to mlir/lib/Tools/mlir-query/MatcherTypeTraits.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- MLIRTypeTraits.h -------------------------------------------------===//
1+
//===--- MatcherTypeTraits.h ----------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,8 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERS_MLIRTYPETRAITS_H
16-
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_MLIRTYPETRAITS_H
15+
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERS_MatcherTYPETRAITS_H
16+
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_MatcherTYPETRAITS_H
1717

1818
#include "mlir/IR/BuiltinTypes.h"
1919
#include "mlir/IR/OpDefinition.h"
@@ -150,4 +150,4 @@ struct DynTypedNode::BaseConverter<Value, void> : public ValueConverter<Value> {
150150
} // namespace query
151151
} // namespace mlir
152152

153-
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERS_MLIRTYPETRAITS_H
153+
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERS_MatcherTYPETRAITS_H

mlir/lib/Tools/mlir-query/VariantValue.cpp renamed to mlir/lib/Tools/mlir-query/MatcherVariantValue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- VariantValue.cpp - Polymorphic value type ------------------------===//
1+
//===--- MatcherVariantValue.cpp - Polymorphic value type -----------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "VariantValue.h"
13+
#include "MatcherVariantValue.h"
1414

1515
namespace mlir {
1616
namespace query {

mlir/lib/Tools/mlir-query/VariantValue.h renamed to mlir/lib/Tools/mlir-query/MatcherVariantValue.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- VariantValue.h - Polymorphic value type --------------------------===//
1+
//===--- MatcherVariantValue.h - Polymorphic value type -------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -13,8 +13,8 @@
1313
//
1414
//===----------------------------------------------------------------------===//
1515

16-
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERS_VARIANTVALUE_H
17-
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_VARIANTVALUE_H
16+
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERVARIANTVALUE_H
17+
#define MLIR_TOOLS_MLIRQUERY_MATCHERVARIANTVALUE_H
1818

1919
#include "MatchersInternal.h"
2020
#include "mlir/IR/Matchers.h"
@@ -121,4 +121,4 @@ class VariantValue {
121121
} // end namespace query
122122
} // end namespace mlir
123123

124-
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERS_VARIANTVALUE_H
124+
#endif // MLIR_TOOLS_MLIRQUERY_MATCHERVARIANTVALUE_H

mlir/lib/Tools/mlir-query/MatchersInternal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#ifndef MLIR_TOOLS_MLIRQUERY_MATCHERS_MATCHERSINTERNAL_H
2626
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_MATCHERSINTERNAL_H
2727

28-
#include "MLIRTypeTraits.h"
28+
#include "MatcherTypeTraits.h"
2929
#include "mlir/IR/Matchers.h"
3030
#include "llvm/ADT/IntrusiveRefCntPtr.h"
3131

mlir/lib/Tools/mlir-query/Query.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef MLIR_TOOLS_MLIRQUERY_QUERY_H
1010
#define MLIR_TOOLS_MLIRQUERY_QUERY_H
1111

12-
#include "Parser.h"
12+
#include "MatcherParser.h"
1313
#include "mlir/IR/Matchers.h"
1414
#include "llvm/ADT/IntrusiveRefCntPtr.h"
1515
#include "llvm/ADT/Twine.h"

0 commit comments

Comments
 (0)