lang/runtime.h

12 lines
262 B
C
Raw Normal View History

2021-12-21 01:18:22 +01:00
#ifndef __RUNTIME_H__
#define __RUNTIME_H__
#include "ir.h"
Value eval_arith(IRInstr instr, const Value *lhs, const Value *rhs);
2021-12-22 17:23:24 +01:00
Value eval_unary(IRInstr instr, const Value *v);
bool is_nonzero(const Value *v);
2021-12-21 01:18:22 +01:00
Value zero_val(Type ty);
#endif /* RUNTIME_H */