ack/mach/proto/mcg/mcgg_generated_header.h
David Given 0d246c0d73 Much better handling of fragments (no run-time code needed to distinguish them
from registers) and better handling of individual hops within a paragraph ---
no more ghastly hacks to try and distinguish the input from the output.
2016-09-29 22:06:04 +02:00

23 lines
385 B
C

#include "mcg.h"
#include "mcgg.h"
#define PANIC printf
static int OP_LABEL(struct ir* ir)
{
if (ir->is_root && ir->is_generated)
{
return ir_to_esn(IR_REG, ir->size);
}
return ir_to_esn(ir->opcode, ir->size);
}
#define LEFT_CHILD(p) ((p)->left)
#define RIGHT_CHILD(p) ((p)->right)
#define burm_assert(b, s) assert(b)
extern void burm_panic_cannot_match(struct ir* ir);