LIR skeleton, renaming some types to prevent conflict.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <alloy/backend/tracing.h>
|
||||
#include <alloy/backend/ivm/ivm_intcode.h>
|
||||
#include <alloy/backend/ivm/ivm_function.h>
|
||||
#include <alloy/hir/function_builder.h>
|
||||
#include <alloy/hir/hir_builder.h>
|
||||
#include <alloy/hir/label.h>
|
||||
#include <alloy/runtime/runtime.h>
|
||||
|
||||
@@ -54,7 +54,7 @@ void IVMAssembler::Reset() {
|
||||
}
|
||||
|
||||
int IVMAssembler::Assemble(
|
||||
FunctionInfo* symbol_info, FunctionBuilder* builder,
|
||||
FunctionInfo* symbol_info, HIRBuilder* builder,
|
||||
DebugInfo* debug_info, Function** out_function) {
|
||||
IVMFunction* fn = new IVMFunction(symbol_info);
|
||||
fn->set_debug_info(debug_info);
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
virtual void Reset();
|
||||
|
||||
virtual int Assemble(
|
||||
runtime::FunctionInfo* symbol_info, hir::FunctionBuilder* builder,
|
||||
runtime::FunctionInfo* symbol_info, hir::HIRBuilder* builder,
|
||||
runtime::DebugInfo* debug_info, runtime::Function** out_function);
|
||||
|
||||
private:
|
||||
|
||||
@@ -31,14 +31,15 @@ namespace backend {
|
||||
namespace ivm {
|
||||
|
||||
|
||||
//#define DPRINT printf
|
||||
//#define DFLUSH() fflush(stdout)
|
||||
#define DPRINT
|
||||
#define DFLUSH()
|
||||
//#define IPRINT printf
|
||||
//#define IFLUSH() fflush(stdout)
|
||||
#define IPRINT
|
||||
#define IFLUSH()
|
||||
#define DPRINT
|
||||
#define DFLUSH()
|
||||
|
||||
//#define IPRINT if (ics.thread_state->thread_id() == 1) printf
|
||||
//#define IFLUSH() fflush(stdout)
|
||||
//#define DPRINT if (ics.thread_state->thread_id() == 1) printf
|
||||
//#define DFLUSH() fflush(stdout)
|
||||
|
||||
|
||||
uint32_t IntCode_INT_LOAD_CONSTANT(IntCodeState& ics, const IntCode* i) {
|
||||
|
||||
Reference in New Issue
Block a user