Removing alloy/core.h.

This commit is contained in:
Ben Vanik 2014-08-21 20:49:47 -07:00
parent e1b0388faf
commit 82b9841b5a
79 changed files with 64 additions and 115 deletions

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_ALLOY_PRIVATE_H_ #ifndef ALLOY_ALLOY_PRIVATE_H_
#define ALLOY_ALLOY_PRIVATE_H_ #define ALLOY_ALLOY_PRIVATE_H_
#include <alloy/core.h>
#include <gflags/gflags.h> #include <gflags/gflags.h>
DECLARE_bool(debug); DECLARE_bool(debug);

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_ALLOY_H_ #ifndef ALLOY_ALLOY_H_
#define ALLOY_ALLOY_H_ #define ALLOY_ALLOY_H_
#include <alloy/core.h>
#include <alloy/runtime/function.h> #include <alloy/runtime/function.h>
#include <alloy/runtime/module.h> #include <alloy/runtime/module.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>

View File

@ -10,7 +10,7 @@
#ifndef ALLOY_ARENA_H_ #ifndef ALLOY_ARENA_H_
#define ALLOY_ARENA_H_ #define ALLOY_ARENA_H_
#include <alloy/core.h> #include <cstdint>
namespace alloy { namespace alloy {

View File

@ -12,8 +12,6 @@
#include <memory> #include <memory>
#include <alloy/core.h>
namespace alloy { namespace alloy {
namespace hir { namespace hir {
class HIRBuilder; class HIRBuilder;

View File

@ -12,7 +12,6 @@
#include <memory> #include <memory>
#include <alloy/core.h>
#include <alloy/backend/machine_info.h> #include <alloy/backend/machine_info.h>
namespace alloy { namespace alloy {

View File

@ -16,6 +16,7 @@
#include <alloy/hir/hir_builder.h> #include <alloy/hir/hir_builder.h>
#include <alloy/hir/label.h> #include <alloy/hir/label.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace backend { namespace backend {

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_IVM_IVM_ASSEMBLER_H_ #ifndef ALLOY_BACKEND_IVM_IVM_ASSEMBLER_H_
#define ALLOY_BACKEND_IVM_IVM_ASSEMBLER_H_ #define ALLOY_BACKEND_IVM_IVM_ASSEMBLER_H_
#include <alloy/core.h>
#include <alloy/arena.h> #include <alloy/arena.h>
#include <alloy/backend/assembler.h> #include <alloy/backend/assembler.h>

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_IVM_IVM_BACKEND_H_ #ifndef ALLOY_BACKEND_IVM_IVM_BACKEND_H_
#define ALLOY_BACKEND_IVM_IVM_BACKEND_H_ #define ALLOY_BACKEND_IVM_IVM_BACKEND_H_
#include <alloy/core.h>
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
namespace alloy { namespace alloy {

View File

@ -10,47 +10,42 @@
#ifndef ALLOY_BACKEND_IVM_IVM_FUNCTION_H_ #ifndef ALLOY_BACKEND_IVM_IVM_FUNCTION_H_
#define ALLOY_BACKEND_IVM_IVM_FUNCTION_H_ #define ALLOY_BACKEND_IVM_IVM_FUNCTION_H_
#include <alloy/core.h>
#include <alloy/backend/ivm/ivm_intcode.h> #include <alloy/backend/ivm/ivm_intcode.h>
#include <alloy/runtime/function.h> #include <alloy/runtime/function.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>
namespace alloy { namespace alloy {
namespace backend { namespace backend {
namespace ivm { namespace ivm {
class IVMFunction : public runtime::Function { class IVMFunction : public runtime::Function {
public: public:
IVMFunction(runtime::FunctionInfo* symbol_info); IVMFunction(runtime::FunctionInfo* symbol_info);
virtual ~IVMFunction(); virtual ~IVMFunction();
void Setup(TranslationContext& ctx); void Setup(TranslationContext& ctx);
protected: protected:
virtual int AddBreakpointImpl(runtime::Breakpoint* breakpoint); virtual int AddBreakpointImpl(runtime::Breakpoint* breakpoint);
virtual int RemoveBreakpointImpl(runtime::Breakpoint* breakpoint); virtual int RemoveBreakpointImpl(runtime::Breakpoint* breakpoint);
virtual int CallImpl(runtime::ThreadState* thread_state, virtual int CallImpl(runtime::ThreadState* thread_state,
uint64_t return_address); uint64_t return_address);
private: private:
IntCode* GetIntCodeAtSourceOffset(uint64_t offset); IntCode* GetIntCodeAtSourceOffset(uint64_t offset);
void OnBreakpointHit(runtime::ThreadState* thread_state, IntCode* i); void OnBreakpointHit(runtime::ThreadState* thread_state, IntCode* i);
private: private:
size_t register_count_; size_t register_count_;
size_t stack_size_; size_t stack_size_;
size_t intcode_count_; size_t intcode_count_;
IntCode* intcodes_; IntCode* intcodes_;
size_t source_map_count_; size_t source_map_count_;
SourceMapEntry* source_map_; SourceMapEntry* source_map_;
}; };
} // namespace ivm } // namespace ivm
} // namespace backend } // namespace backend
} // namespace alloy } // namespace alloy
#endif // ALLOY_BACKEND_IVM_IVM_FUNCTION_H_ #endif // ALLOY_BACKEND_IVM_IVM_FUNCTION_H_

View File

@ -10,16 +10,14 @@
#ifndef ALLOY_BACKEND_IVM_INTCODE_H_ #ifndef ALLOY_BACKEND_IVM_INTCODE_H_
#define ALLOY_BACKEND_IVM_INTCODE_H_ #define ALLOY_BACKEND_IVM_INTCODE_H_
#include <alloy/core.h>
#include <alloy/hir/instr.h> #include <alloy/hir/instr.h>
#include <alloy/hir/opcodes.h> #include <alloy/hir/opcodes.h>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {
class ThreadState; class ThreadState;
} } // namespace runtime
} } // namespace alloy
namespace alloy { namespace alloy {
namespace backend { namespace backend {

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_IVM_IVM_STACK_H_ #ifndef ALLOY_BACKEND_IVM_IVM_STACK_H_
#define ALLOY_BACKEND_IVM_IVM_STACK_H_ #define ALLOY_BACKEND_IVM_IVM_STACK_H_
#include <alloy/core.h>
#include <alloy/backend/ivm/ivm_intcode.h> #include <alloy/backend/ivm/ivm_intcode.h>
namespace alloy { namespace alloy {

View File

@ -10,7 +10,7 @@
#ifndef ALLOY_BACKEND_MACHINE_INFO_H_ #ifndef ALLOY_BACKEND_MACHINE_INFO_H_
#define ALLOY_BACKEND_MACHINE_INFO_H_ #define ALLOY_BACKEND_MACHINE_INFO_H_
#include <alloy/core.h> #include <cstdint>
namespace alloy { namespace alloy {
namespace backend { namespace backend {

View File

@ -16,6 +16,7 @@
#include <alloy/hir/hir_builder.h> #include <alloy/hir/hir_builder.h>
#include <alloy/hir/label.h> #include <alloy/hir/label.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace BE { namespace BE {
#include <beaengine/BeaEngine.h> #include <beaengine/BeaEngine.h>

View File

@ -12,10 +12,8 @@
#include <memory> #include <memory>
#include <alloy/core.h>
#include <alloy/string_buffer.h>
#include <alloy/backend/assembler.h> #include <alloy/backend/assembler.h>
#include <alloy/string_buffer.h>
namespace alloy { namespace alloy {
namespace backend { namespace backend {

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_BACKEND_H_ #ifndef ALLOY_BACKEND_X64_X64_BACKEND_H_
#define ALLOY_BACKEND_X64_X64_BACKEND_H_ #define ALLOY_BACKEND_X64_X64_BACKEND_H_
#include <alloy/core.h>
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
namespace alloy { namespace alloy {

View File

@ -12,8 +12,6 @@
#include <mutex> #include <mutex>
#include <alloy/core.h>
namespace alloy { namespace alloy {
namespace backend { namespace backend {
namespace x64 { namespace x64 {

View File

@ -10,6 +10,7 @@
#include <alloy/backend/x64/x64_code_cache.h> #include <alloy/backend/x64/x64_code_cache.h>
#include <poly/poly.h> #include <poly/poly.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace backend { namespace backend {

View File

@ -20,6 +20,7 @@
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>
#include <alloy/runtime/thread_state.h> #include <alloy/runtime/thread_state.h>
#include <xdb/protocol.h> #include <xdb/protocol.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace backend { namespace backend {

View File

@ -10,10 +10,7 @@
#ifndef ALLOY_BACKEND_X64_X64_EMITTER_H_ #ifndef ALLOY_BACKEND_X64_X64_EMITTER_H_
#define ALLOY_BACKEND_X64_X64_EMITTER_H_ #define ALLOY_BACKEND_X64_X64_EMITTER_H_
#include <alloy/core.h>
#include <alloy/hir/value.h> #include <alloy/hir/value.h>
#include <third_party/xbyak/xbyak/xbyak.h> #include <third_party/xbyak/xbyak/xbyak.h>
namespace alloy { namespace alloy {

View File

@ -10,7 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_FUNCTION_H_ #ifndef ALLOY_BACKEND_X64_X64_FUNCTION_H_
#define ALLOY_BACKEND_X64_X64_FUNCTION_H_ #define ALLOY_BACKEND_X64_X64_FUNCTION_H_
#include <alloy/core.h>
#include <alloy/runtime/function.h> #include <alloy/runtime/function.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_SEQUENCES_H_ #ifndef ALLOY_BACKEND_X64_X64_SEQUENCES_H_
#define ALLOY_BACKEND_X64_X64_SEQUENCES_H_ #define ALLOY_BACKEND_X64_X64_SEQUENCES_H_
#include <alloy/core.h>
namespace alloy { namespace alloy {
namespace hir { namespace hir {
class Instr; class Instr;

View File

@ -10,7 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_THUNK_EMITTER_H_ #ifndef ALLOY_BACKEND_X64_X64_THUNK_EMITTER_H_
#define ALLOY_BACKEND_X64_X64_THUNK_EMITTER_H_ #define ALLOY_BACKEND_X64_X64_THUNK_EMITTER_H_
#include <alloy/core.h>
#include <alloy/backend/x64/x64_backend.h> #include <alloy/backend/x64/x64_backend.h>
#include <alloy/backend/x64/x64_emitter.h> #include <alloy/backend/x64/x64_emitter.h>

View File

@ -10,9 +10,8 @@
#ifndef ALLOY_BACKEND_X64_X64_TRACERS_H_ #ifndef ALLOY_BACKEND_X64_X64_TRACERS_H_
#define ALLOY_BACKEND_X64_X64_TRACERS_H_ #define ALLOY_BACKEND_X64_X64_TRACERS_H_
#include <alloy/core.h>
#include <xmmintrin.h> #include <xmmintrin.h>
#include <cstdint>
namespace alloy { namespace alloy {
namespace backend { namespace backend {

View File

@ -10,6 +10,7 @@
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/compiler/compiler_pass.h> #include <alloy/compiler/compiler_pass.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {

View File

@ -13,7 +13,6 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <alloy/core.h>
#include <alloy/hir/hir_builder.h> #include <alloy/hir/hir_builder.h>
namespace alloy { namespace alloy {

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_COMPILER_COMPILER_PASS_H_ #ifndef ALLOY_COMPILER_COMPILER_PASS_H_
#define ALLOY_COMPILER_COMPILER_PASS_H_ #define ALLOY_COMPILER_COMPILER_PASS_H_
#include <alloy/core.h>
#include <alloy/hir/hir_builder.h> #include <alloy/hir/hir_builder.h>
namespace alloy { namespace alloy {

View File

@ -11,6 +11,7 @@
#include <alloy/runtime/function.h> #include <alloy/runtime/function.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {

View File

@ -13,6 +13,7 @@
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
DEFINE_bool(store_all_context_values, false, DEFINE_bool(store_all_context_values, false,
"Don't strip dead context stores to aid in debugging."); "Don't strip dead context stores to aid in debugging.");

View File

@ -12,6 +12,7 @@
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {

View File

@ -12,6 +12,7 @@
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {

View File

@ -12,6 +12,7 @@
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
#if XE_COMPILER_MSVC #if XE_COMPILER_MSVC
#pragma warning(push) #pragma warning(push)

View File

@ -9,6 +9,8 @@
#include <alloy/compiler/passes/dead_code_elimination_pass.h> #include <alloy/compiler/passes/dead_code_elimination_pass.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {
namespace passes { namespace passes {

View File

@ -12,6 +12,7 @@
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {

View File

@ -11,6 +11,8 @@
#include <algorithm> #include <algorithm>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {
namespace passes { namespace passes {

View File

@ -9,6 +9,8 @@
#include <alloy/compiler/passes/simplification_pass.h> #include <alloy/compiler/passes/simplification_pass.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {
namespace passes { namespace passes {

View File

@ -12,6 +12,7 @@
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace compiler { namespace compiler {

View File

@ -12,6 +12,7 @@
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
#if XE_COMPILER_MSVC #if XE_COMPILER_MSVC
#pragma warning(push) #pragma warning(push)

View File

@ -1,16 +0,0 @@
/**
******************************************************************************
* 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_CORE_H_
#define ALLOY_CORE_H_
// TODO(benvanik): move the common stuff into here?
#include <xenia/profiling.h>
#endif // ALLOY_CORE_H_

View File

@ -14,8 +14,6 @@
#include <mutex> #include <mutex>
#include <vector> #include <vector>
#include <alloy/core.h>
namespace alloy { namespace alloy {
// TODO(benvanik): go lockfree, and don't hold the lock while emitting. // TODO(benvanik): go lockfree, and don't hold the lock while emitting.

View File

@ -10,7 +10,7 @@
#ifndef ALLOY_FRONTEND_CONTEXT_INFO_H_ #ifndef ALLOY_FRONTEND_CONTEXT_INFO_H_
#define ALLOY_FRONTEND_CONTEXT_INFO_H_ #define ALLOY_FRONTEND_CONTEXT_INFO_H_
#include <alloy/core.h> #include <cstdint>
namespace alloy { namespace alloy {
namespace frontend { namespace frontend {

View File

@ -12,9 +12,8 @@
#include <memory> #include <memory>
#include <alloy/core.h>
#include <alloy/memory.h>
#include <alloy/frontend/context_info.h> #include <alloy/frontend/context_info.h>
#include <alloy/memory.h>
#include <alloy/runtime/function.h> #include <alloy/runtime/function.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>

View File

@ -10,7 +10,6 @@
#ifndef ALLOY_FRONTEND_PPC_PPC_CONTEXT_H_ #ifndef ALLOY_FRONTEND_PPC_PPC_CONTEXT_H_
#define ALLOY_FRONTEND_PPC_PPC_CONTEXT_H_ #define ALLOY_FRONTEND_PPC_PPC_CONTEXT_H_
#include <alloy/core.h>
#include <alloy/vec128.h> #include <alloy/vec128.h>
#include <poly/poly.h> #include <poly/poly.h>

View File

@ -10,10 +10,8 @@
#ifndef ALLOY_FRONTEND_PPC_PPC_FRONTEND_H_ #ifndef ALLOY_FRONTEND_PPC_PPC_FRONTEND_H_
#define ALLOY_FRONTEND_PPC_PPC_FRONTEND_H_ #define ALLOY_FRONTEND_PPC_PPC_FRONTEND_H_
#include <alloy/core.h>
#include <alloy/type_pool.h>
#include <alloy/frontend/frontend.h> #include <alloy/frontend/frontend.h>
#include <alloy/type_pool.h>
namespace alloy { namespace alloy {
namespace frontend { namespace frontend {

View File

@ -16,6 +16,7 @@
#include <alloy/frontend/ppc/ppc_instr.h> #include <alloy/frontend/ppc/ppc_instr.h>
#include <alloy/hir/label.h> #include <alloy/hir/label.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace frontend { namespace frontend {

View File

@ -10,11 +10,10 @@
#ifndef ALLOY_FRONTEND_PPC_PPC_HIR_BUILDER_H_ #ifndef ALLOY_FRONTEND_PPC_PPC_HIR_BUILDER_H_
#define ALLOY_FRONTEND_PPC_PPC_HIR_BUILDER_H_ #define ALLOY_FRONTEND_PPC_PPC_HIR_BUILDER_H_
#include <alloy/core.h>
#include <alloy/string_buffer.h>
#include <alloy/hir/hir_builder.h> #include <alloy/hir/hir_builder.h>
#include <alloy/runtime/function.h> #include <alloy/runtime/function.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>
#include <alloy/string_buffer.h>
namespace alloy { namespace alloy {
namespace frontend { namespace frontend {

View File

@ -10,11 +10,10 @@
#ifndef ALLOY_FRONTEND_PPC_PPC_INSTR_H_ #ifndef ALLOY_FRONTEND_PPC_PPC_INSTR_H_
#define ALLOY_FRONTEND_PPC_PPC_INSTR_H_ #define ALLOY_FRONTEND_PPC_PPC_INSTR_H_
#include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>
#include <alloy/core.h>
namespace alloy { namespace alloy {
class StringBuffer; class StringBuffer;
} // namespace alloy } // namespace alloy

View File

@ -17,6 +17,7 @@
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <poly/logging.h> #include <poly/logging.h>
#include <poly/memory.h> #include <poly/memory.h>
#include <xenia/profiling.h>
#if 0 #if 0
#define LOGPPC(fmt, ...) PLOGCORE('p', fmt, ##__VA_ARGS__) #define LOGPPC(fmt, ...) PLOGCORE('p', fmt, ##__VA_ARGS__)

View File

@ -12,7 +12,6 @@
#include <vector> #include <vector>
#include <alloy/core.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>
namespace alloy { namespace alloy {

View File

@ -18,6 +18,7 @@
#include <alloy/frontend/ppc/ppc_instr.h> #include <alloy/frontend/ppc/ppc_instr.h>
#include <alloy/frontend/ppc/ppc_scanner.h> #include <alloy/frontend/ppc/ppc_scanner.h>
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace frontend { namespace frontend {

View File

@ -12,11 +12,10 @@
#include <memory> #include <memory>
#include <alloy/core.h>
#include <alloy/string_buffer.h>
#include <alloy/backend/assembler.h> #include <alloy/backend/assembler.h>
#include <alloy/compiler/compiler.h> #include <alloy/compiler/compiler.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>
#include <alloy/string_buffer.h>
namespace alloy { namespace alloy {
namespace frontend { namespace frontend {

View File

@ -11,7 +11,6 @@
#define ALLOY_HIR_BLOCK_H_ #define ALLOY_HIR_BLOCK_H_
#include <alloy/arena.h> #include <alloy/arena.h>
#include <alloy/core.h>
namespace llvm { namespace llvm {
class BitVector; class BitVector;

View File

@ -9,11 +9,12 @@
#include <alloy/hir/hir_builder.h> #include <alloy/hir/hir_builder.h>
#include <alloy/string_buffer.h>
#include <alloy/hir/block.h> #include <alloy/hir/block.h>
#include <alloy/hir/instr.h> #include <alloy/hir/instr.h>
#include <alloy/hir/label.h> #include <alloy/hir/label.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>
#include <alloy/string_buffer.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace hir { namespace hir {

View File

@ -12,7 +12,6 @@
#include <vector> #include <vector>
#include <alloy/core.h>
#include <alloy/hir/block.h> #include <alloy/hir/block.h>
#include <alloy/hir/instr.h> #include <alloy/hir/instr.h>
#include <alloy/hir/label.h> #include <alloy/hir/label.h>

View File

@ -10,7 +10,6 @@
#ifndef ALLOY_HIR_INSTR_H_ #ifndef ALLOY_HIR_INSTR_H_
#define ALLOY_HIR_INSTR_H_ #define ALLOY_HIR_INSTR_H_
#include <alloy/core.h>
#include <alloy/hir/opcodes.h> #include <alloy/hir/opcodes.h>
#include <alloy/hir/value.h> #include <alloy/hir/value.h>

View File

@ -10,8 +10,6 @@
#ifndef ALLOY_HIR_LABEL_H_ #ifndef ALLOY_HIR_LABEL_H_
#define ALLOY_HIR_LABEL_H_ #define ALLOY_HIR_LABEL_H_
#include <alloy/core.h>
namespace alloy { namespace alloy {
namespace hir { namespace hir {

View File

@ -10,7 +10,7 @@
#ifndef ALLOY_HIR_OPCODES_H_ #ifndef ALLOY_HIR_OPCODES_H_
#define ALLOY_HIR_OPCODES_H_ #define ALLOY_HIR_OPCODES_H_
#include <alloy/core.h> #include <cstdint>
namespace alloy { namespace alloy {
namespace hir { namespace hir {

View File

@ -10,11 +10,10 @@
#ifndef ALLOY_HIR_VALUE_H_ #ifndef ALLOY_HIR_VALUE_H_
#define ALLOY_HIR_VALUE_H_ #define ALLOY_HIR_VALUE_H_
#include <alloy/core.h>
#include <alloy/arena.h> #include <alloy/arena.h>
#include <alloy/vec128.h>
#include <alloy/backend/machine_info.h> #include <alloy/backend/machine_info.h>
#include <alloy/hir/opcodes.h> #include <alloy/hir/opcodes.h>
#include <alloy/vec128.h>
#include <poly/poly.h> #include <poly/poly.h>
namespace alloy { namespace alloy {

View File

@ -10,7 +10,8 @@
#ifndef ALLOY_MEMORY_H_ #ifndef ALLOY_MEMORY_H_
#define ALLOY_MEMORY_H_ #define ALLOY_MEMORY_H_
#include <alloy/core.h> #include <cstdint>
#include <vector>
namespace alloy { namespace alloy {

View File

@ -12,8 +12,6 @@
#include <mutex> #include <mutex>
#include <alloy/core.h>
namespace alloy { namespace alloy {
template <typename T> template <typename T>

View File

@ -9,6 +9,8 @@
#include <alloy/runtime/debug_info.h> #include <alloy/runtime/debug_info.h>
#include <memory>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {

View File

@ -10,7 +10,7 @@
#ifndef ALLOY_RUNTIME_DEBUG_INFO_H_ #ifndef ALLOY_RUNTIME_DEBUG_INFO_H_
#define ALLOY_RUNTIME_DEBUG_INFO_H_ #define ALLOY_RUNTIME_DEBUG_INFO_H_
#include <alloy/core.h> #include <cstdint>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {

View File

@ -15,7 +15,6 @@
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <alloy/core.h>
#include <alloy/delegate.h> #include <alloy/delegate.h>
namespace alloy { namespace alloy {

View File

@ -10,6 +10,7 @@
#include <alloy/runtime/entry_table.h> #include <alloy/runtime/entry_table.h>
#include <poly/poly.h> #include <poly/poly.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {

View File

@ -14,8 +14,6 @@
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <alloy/core.h>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {

View File

@ -14,7 +14,6 @@
#include <mutex> #include <mutex>
#include <vector> #include <vector>
#include <alloy/core.h>
#include <alloy/runtime/debug_info.h> #include <alloy/runtime/debug_info.h>
namespace alloy { namespace alloy {

View File

@ -10,7 +10,7 @@
#ifndef ALLOY_RUNTIME_INSTRUMENT_H_ #ifndef ALLOY_RUNTIME_INSTRUMENT_H_
#define ALLOY_RUNTIME_INSTRUMENT_H_ #define ALLOY_RUNTIME_INSTRUMENT_H_
#include <alloy/core.h> #include <cstdint>
namespace alloy { namespace alloy {
class Memory; class Memory;

View File

@ -14,6 +14,7 @@
#include <alloy/runtime/runtime.h> #include <alloy/runtime/runtime.h>
#include <poly/poly.h> #include <poly/poly.h>
#include <xenia/profiling.h>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {

View File

@ -11,11 +11,11 @@
#define ALLOY_RUNTIME_MODULE_H_ #define ALLOY_RUNTIME_MODULE_H_
#include <functional> #include <functional>
#include <memory>
#include <mutex> #include <mutex>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <alloy/core.h>
#include <alloy/memory.h> #include <alloy/memory.h>
#include <alloy/runtime/symbol_info.h> #include <alloy/runtime/symbol_info.h>

View File

@ -9,6 +9,8 @@
#include <alloy/runtime/raw_module.h> #include <alloy/runtime/raw_module.h>
#include <poly/platform.h>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {

View File

@ -14,6 +14,7 @@
#include <alloy/runtime/module.h> #include <alloy/runtime/module.h>
#include <poly/poly.h> #include <poly/poly.h>
#include <xdb/protocol.h> #include <xdb/protocol.h>
#include <xenia/profiling.h>
// TODO(benvanik): based on compiler support // TODO(benvanik): based on compiler support
#include <alloy/backend/ivm/ivm_backend.h> #include <alloy/backend/ivm/ivm_backend.h>

View File

@ -14,10 +14,9 @@
#include <mutex> #include <mutex>
#include <vector> #include <vector>
#include <alloy/core.h>
#include <alloy/memory.h>
#include <alloy/backend/backend.h> #include <alloy/backend/backend.h>
#include <alloy/frontend/frontend.h> #include <alloy/frontend/frontend.h>
#include <alloy/memory.h>
#include <alloy/runtime/debugger.h> #include <alloy/runtime/debugger.h>
#include <alloy/runtime/entry_table.h> #include <alloy/runtime/entry_table.h>
#include <alloy/runtime/module.h> #include <alloy/runtime/module.h>

View File

@ -10,10 +10,9 @@
#ifndef ALLOY_RUNTIME_SYMBOL_INFO_H_ #ifndef ALLOY_RUNTIME_SYMBOL_INFO_H_
#define ALLOY_RUNTIME_SYMBOL_INFO_H_ #define ALLOY_RUNTIME_SYMBOL_INFO_H_
#include <cstdint>
#include <string> #include <string>
#include <alloy/core.h>
namespace alloy { namespace alloy {
namespace runtime { namespace runtime {

View File

@ -12,8 +12,6 @@
#include <string> #include <string>
#include <alloy/core.h>
#include <alloy/memory.h> #include <alloy/memory.h>
namespace alloy { namespace alloy {

View File

@ -6,7 +6,6 @@
'alloy.h', 'alloy.h',
'arena.cc', 'arena.cc',
'arena.h', 'arena.h',
'core.h',
'delegate.h', 'delegate.h',
'memory.cc', 'memory.cc',
'memory.h', 'memory.h',

View File

@ -10,6 +10,7 @@
#include <alloy/string_buffer.h> #include <alloy/string_buffer.h>
#include <algorithm> #include <algorithm>
#include <cstdarg>
namespace alloy { namespace alloy {

View File

@ -10,11 +10,10 @@
#ifndef ALLOY_STRING_BUFFER_H_ #ifndef ALLOY_STRING_BUFFER_H_
#define ALLOY_STRING_BUFFER_H_ #define ALLOY_STRING_BUFFER_H_
#include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>
#include <alloy/core.h>
namespace alloy { namespace alloy {
class StringBuffer { class StringBuffer {

View File

@ -13,8 +13,6 @@
#include <mutex> #include <mutex>
#include <vector> #include <vector>
#include <alloy/core.h>
namespace alloy { namespace alloy {
template <class T, typename A> template <class T, typename A>

View File

@ -10,7 +10,6 @@
#ifndef ALLOY_VEC128_H_ #ifndef ALLOY_VEC128_H_
#define ALLOY_VEC128_H_ #define ALLOY_VEC128_H_
#include <alloy/core.h>
#include <poly/poly.h> #include <poly/poly.h>
namespace alloy { namespace alloy {

View File

@ -45,6 +45,7 @@
'__STDC_LIMIT_MACROS=1', '__STDC_LIMIT_MACROS=1',
'__STDC_CONSTANT_MACROS=1', '__STDC_CONSTANT_MACROS=1',
'_ISOC99_SOURCE=1', '_ISOC99_SOURCE=1',
'_CRT_NONSTDC_NO_DEPRECATE=1',
], ],
'conditions': [ 'conditions': [