Skip to content
Snippets Groups Projects
Commit 2d0902a0 authored by Denis Smirnov's avatar Denis Smirnov
Browse files

refactoring: move transformations to ir module

parent 72e1bac5
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -18,6 +18,7 @@ pub mod expression;
pub mod helpers;
pub mod operator;
pub mod relation;
pub mod transformation;
pub mod tree;
pub mod value;
......@@ -46,7 +47,7 @@ pub struct Nodes {
/// so all nodes are stored in the single arena ("nodes" array).
/// The positions in the array act like pointers, so it is possible
/// only to add nodes to the plan, but never remove them.
pub arena: Vec<Node>,
arena: Vec<Node>,
}
impl Nodes {
......@@ -85,7 +86,7 @@ impl Nodes {
/// be added last. The plan without a top should be treated as invalid.
#[derive(Serialize, Deserialize, PartialEq, Debug)]
pub struct Plan {
pub nodes: Nodes,
nodes: Nodes,
relations: Option<HashMap<String, Table>>,
slices: Option<Vec<Vec<usize>>>,
top: Option<usize>,
......
File moved
......@@ -114,6 +114,7 @@ fn selection() {
let path = Path::new("")
.join("tests")
.join("artifactory")
.join("ir")
.join("transformation")
.join("equality_propagation")
.join("selection.yaml");
......
......@@ -12,5 +12,4 @@ mod lua_bridge;
mod parser;
mod query;
mod simple_query;
pub mod transformation;
mod union_simple_query;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment