Skip to content

Commit 465d74a

Browse files
committed
fix build issue & cleanup names
1 parent d715629 commit 465d74a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

include/sql/SQLDialect.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef SQL_DIALECT
10-
#define SQL_DIALECT
9+
#ifndef SQL_DIALECT_H
10+
#define SQL_DIALECT_H
1111

1212
#include "mlir/IR/Dialect.h"
1313

include/sql/SQLOps.td

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,4 @@ def ResultOp : SQL_Op<"get_result", [Pure]> {
5353
let hasCanonicalizer = 0;
5454
}
5555

56-
57-
#endif
56+
#endif // SQL_OPS

lib/sql/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ MLIRSQLOpsIncGen
1111
LINK_LIBS PUBLIC
1212
MLIRIR
1313
)
14+
15+
add_subdirectory(Passes)

test/polygeist-opt/sql.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: polygeist-opt %s | FileCheck %s
2-
2+
// -lower-sql
33
module {
44
func.func private @run() -> i32 {
55
%c0 = arith.constant 0 : index

tools/polygeist-opt/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set(LIBS
66
MLIROptLib
77
MLIRPolygeist
88
MLIRPolygeistTransforms
9+
MLIRSQLTransforms
910
MLIRSQL
1011
)
1112
add_llvm_executable(polygeist-opt polygeist-opt.cpp)

0 commit comments

Comments
 (0)