Skip to content

Commit

Permalink
fix build issue & cleanup names
Browse files Browse the repository at this point in the history
  • Loading branch information
carlguo866 committed Feb 16, 2023
1 parent d715629 commit 465d74a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/sql/SQLDialect.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef SQL_DIALECT
#define SQL_DIALECT
#ifndef SQL_DIALECT_H
#define SQL_DIALECT_H

#include "mlir/IR/Dialect.h"

Expand Down
3 changes: 1 addition & 2 deletions include/sql/SQLOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ def ResultOp : SQL_Op<"get_result", [Pure]> {
let hasCanonicalizer = 0;
}


#endif
#endif // SQL_OPS
2 changes: 2 additions & 0 deletions lib/sql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ MLIRSQLOpsIncGen
LINK_LIBS PUBLIC
MLIRIR
)

add_subdirectory(Passes)
2 changes: 1 addition & 1 deletion test/polygeist-opt/sql.mlir
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: polygeist-opt %s | FileCheck %s

// -lower-sql
module {
func.func private @run() -> i32 {
%c0 = arith.constant 0 : index
Expand Down
1 change: 1 addition & 0 deletions tools/polygeist-opt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(LIBS
MLIROptLib
MLIRPolygeist
MLIRPolygeistTransforms
MLIRSQLTransforms
MLIRSQL
)
add_llvm_executable(polygeist-opt polygeist-opt.cpp)
Expand Down

0 comments on commit 465d74a

Please sign in to comment.