HIR->LIR flow.

This commit is contained in:
Ben Vanik
2013-12-29 23:51:51 -08:00
parent cd9172ed62
commit 08cff81f6a
11 changed files with 394 additions and 52 deletions

View File

@@ -0,0 +1,47 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#ifndef ALLOY_BACKEND_X64_LIR_LIR_BLOCK_H_
#define ALLOY_BACKEND_X64_LIR_LIR_BLOCK_H_
#include <alloy/core.h>
namespace alloy {
namespace backend {
namespace x64 {
namespace lir {
class LIRBuilder;
class LIRInstr;
class LIRLabel;
class LIRBlock {
public:
Arena* arena;
LIRBlock* next;
LIRBlock* prev;
LIRLabel* label_head;
LIRLabel* label_tail;
LIRInstr* instr_head;
LIRInstr* instr_tail;
};
} // namespace lir
} // namespace x64
} // namespace backend
} // namespace alloy
#endif // ALLOY_BACKEND_X64_LIR_LIR_BLOCK_H_