summaryrefslogtreecommitdiffhomepage
path: root/flowgraph/node.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-22 22:14:23 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-22 22:14:23 +0100
commitff69e8cab318101843cd8b49a0cb04df9763e10f (patch)
tree58778d0ba28264880df8bdf6bfe45766939c3af9 /flowgraph/node.h
parentad3fd947005400c90f41baa4416a27d94b1bc157 (diff)
Generalize Add / Mul, Integer promotion, tests
Diffstat (limited to 'flowgraph/node.h')
-rw-r--r--flowgraph/node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/flowgraph/node.h b/flowgraph/node.h
index 34e937b..f653096 100644
--- a/flowgraph/node.h
+++ b/flowgraph/node.h
@@ -47,6 +47,8 @@ namespace FlowGraph {
{}
};
+ Data MakeTemporary(std::shared_ptr<LocalScope> scope, DataType type);
+
Data MakeConstantInt(int i);
Data MakeLocalInt(std::shared_ptr<FlowGraph::LocalScope> scope, const std::string& name);
Data MakeLocalPointer(std::shared_ptr<FlowGraph::LocalScope> scope, const std::string& name);
@@ -120,6 +122,7 @@ namespace FlowGraph {
LogicalNot,
BitwiseNot,
Minus,
+ Resize, // Promote / narrow a value
};
class UnaryOperation: public Node