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_
#define ALLOY_ALLOY_PRIVATE_H_
#include <alloy/core.h>
#include <gflags/gflags.h>
DECLARE_bool(debug);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,17 +10,14 @@
#ifndef 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/runtime/function.h>
#include <alloy/runtime/symbol_info.h>
namespace alloy {
namespace backend {
namespace ivm {
class IVMFunction : public runtime::Function {
public:
IVMFunction(runtime::FunctionInfo* symbol_info);
@ -47,10 +44,8 @@ private:
SourceMapEntry* source_map_;
};
} // namespace ivm
} // namespace backend
} // namespace alloy
#endif // ALLOY_BACKEND_IVM_IVM_FUNCTION_H_

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,6 @@
#ifndef 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/symbol_info.h>

View File

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

View File

@ -10,7 +10,6 @@
#ifndef 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_emitter.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -12,6 +12,7 @@
#include <alloy/backend/backend.h>
#include <alloy/compiler/compiler.h>
#include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
#if XE_COMPILER_MSVC
#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 <vector>
#include <alloy/core.h>
namespace alloy {
// TODO(benvanik): go lockfree, and don't hold the lock while emitting.

View File

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

View File

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

View File

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

View File

@ -10,10 +10,8 @@
#ifndef 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/type_pool.h>
namespace alloy {
namespace frontend {

View File

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

View File

@ -10,11 +10,10 @@
#ifndef 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/runtime/function.h>
#include <alloy/runtime/symbol_info.h>
#include <alloy/string_buffer.h>
namespace alloy {
namespace frontend {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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