Displaying 1 result from an estimated 1 matches for "tseqno".
Did you mean:
seqno
2009 Aug 27
0
[LLVMdev] Simplifying a front-end project
...ot be applicable or easy to use.
Each node of my AST is typed. As I generate for it, I give it a
unique sequence number. Then I use a printf-like format to describe the
output. Here's what generating for an ADD AST looks like:
GenSub(node at .child[0]);
GenSub(node at .child[1]);
Tseqno += 1; node at .seqno = Tseqno;
Print("\t%N = add %T %0N, %1N\n", node);
This recursively generates the left and right side of the node, gives the node
a sequence number and then prints the LLVM assembly. In the format:
%N - prints node name
%T - prints node type
%0N - prints node n...