Conversation
lib/sql/Dialect.cpp
Outdated
| @@ -0,0 +1,27 @@ | |||
| //===- PolygeistDialect.cpp - Polygeist dialect ---------------*- C++ -*-===// | |||
| @@ -0,0 +1,40 @@ | |||
| //===- PolygeistOps.cpp - BFV dialect ops ---------------*- C++ -*-===// | |||
| // | |||
test/polygeist-opt/sql.mlir
Outdated
| %q = "sql.select"() {column = ["data"], table = "mytable"} : () -> index | ||
| %h = "sql.execute"(%q) : (index) -> index | ||
| %res = "sql.get_result"(%h, %c0) {column = "data"} : (index, index) -> i32 |
There was a problem hiding this comment.
For this to work, you need to call allowUnknonwnOperations in the dialect initializer.
There was a problem hiding this comment.
Is that needed? These operations are registered in the dialect?
|
Including
|
| @@ -1,110 +0,0 @@ | |||
| cmake_minimum_required(VERSION 3.10) | |||
| #include <fstream> | ||
|
|
||
| #include "polygeist/Dialect.h" | ||
| #include "sql/SQLDialect.h" |
There was a problem hiding this comment.
have these inside of #ifdef ENABLE_SQL
There was a problem hiding this comment.
you're going to need to in cmake, if enable_sql then add an enable sql in c
There was a problem hiding this comment.
(see POLYGEIST_ENABLE_CUDA for an example)
No description provided.