blob: a154c5649916a34c072cc0bc7f9691f35c715bca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <iostream>
#include <deque>
#include "LLVMVisitor/LLVMVisitor.h"
#include "Value/Function/BuiltInFunction.h"
int main() {
LLVMVisitor visitor("testout.ll");
std::deque<Value*> nodes = {
new BuiltInFunction("+", {
new Integer(1),
new Integer(2),
new BuiltInFunction("-", { new Integer(5), new Integer(10) }),
new Integer(123) }) };
for (Value* n : nodes) {
n->Visit(visitor);
}
}
|