lang/runtime.h

12 lines
263 B
C
Raw Permalink Normal View History

2021-12-21 01:18:22 +01:00
#ifndef __RUNTIME_H__
#define __RUNTIME_H__
#include "ir.h"
2021-12-23 20:10:02 +01:00
Value eval_binary(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 */