Remove unnecessary explicit includes (#16)

This commit is contained in:
Mat M 2016-09-03 16:48:03 -04:00 committed by Merry
parent 26db11cd71
commit 7f9a0c3c38
12 changed files with 21 additions and 18 deletions

View file

@ -4,14 +4,17 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <map>
#include <unordered_map> #include <unordered_map>
#include <common/bit_util.h> #include <common/bit_util.h>
#include <xbyak.h>
#include "backend_x64/abi.h" #include "backend_x64/abi.h"
#include "backend_x64/emit_x64.h" #include "backend_x64/emit_x64.h"
#include "backend_x64/jitstate.h" #include "backend_x64/jitstate.h"
#include "frontend/arm_types.h" #include "frontend/arm_types.h"
#include "frontend/ir/basic_block.h"
#include "frontend/ir/microinstruction.h"
// TODO: Have ARM flags in host flags and not have them use up GPR registers unless necessary. // TODO: Have ARM flags in host flags and not have them use up GPR registers unless necessary.
// TODO: Actually implement that proper instruction selector you've always wanted to sweetheart. // TODO: Actually implement that proper instruction selector you've always wanted to sweetheart.

View file

@ -6,22 +6,26 @@
#pragma once #pragma once
#include <set>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <boost/optional.hpp> #include <boost/optional.hpp>
#include <xbyak.h>
#include "backend_x64/block_of_code.h" #include "backend_x64/block_of_code.h"
#include "backend_x64/reg_alloc.h" #include "backend_x64/reg_alloc.h"
#include "dynarmic/callbacks.h" #include "dynarmic/callbacks.h"
#include "frontend/arm_types.h" #include "frontend/arm_types.h"
#include "frontend/ir/basic_block.h"
#include "frontend/ir/microinstruction.h"
#include "frontend/ir/terminal.h" #include "frontend/ir/terminal.h"
namespace Dynarmic { namespace Dynarmic {
class Jit;
namespace IR {
class Block;
class Inst;
} // namespace IR
namespace BackendX64 { namespace BackendX64 {
class EmitX64 final { class EmitX64 final {

View file

@ -17,11 +17,11 @@
#include "backend_x64/emit_x64.h" #include "backend_x64/emit_x64.h"
#include "backend_x64/jitstate.h" #include "backend_x64/jitstate.h"
#include "common/assert.h" #include "common/assert.h"
#include "common/bit_util.h"
#include "common/common_types.h" #include "common/common_types.h"
#include "common/scope_exit.h" #include "common/scope_exit.h"
#include "dynarmic/dynarmic.h" #include "dynarmic/dynarmic.h"
#include "frontend/arm_types.h" #include "frontend/arm_types.h"
#include "frontend/ir/basic_block.h"
#include "frontend/translate/translate.h" #include "frontend/translate/translate.h"
#include "ir_opt/passes.h" #include "ir_opt/passes.h"

View file

@ -5,7 +5,6 @@
*/ */
#include <algorithm> #include <algorithm>
#include <map>
#include <xbyak.h> #include <xbyak.h>

View file

@ -7,7 +7,6 @@
#pragma once #pragma once
#include <array> #include <array>
#include <map>
#include <vector> #include <vector>
#include <boost/optional.hpp> #include <boost/optional.hpp>
@ -15,7 +14,6 @@
#include "backend_x64/block_of_code.h" #include "backend_x64/block_of_code.h"
#include "backend_x64/hostloc.h" #include "backend_x64/hostloc.h"
#include "backend_x64/jitstate.h"
#include "common/common_types.h" #include "common/common_types.h"
#include "frontend/ir/microinstruction.h" #include "frontend/ir/microinstruction.h"
#include "frontend/ir/value.h" #include "frontend/ir/value.h"

View file

@ -8,9 +8,9 @@
#include <bitset> #include <bitset>
#include <climits> #include <climits>
#include <cstddef>
#include "common/assert.h" #include "common/assert.h"
#include "common/common_types.h"
#ifdef _MSC_VER #ifdef _MSC_VER
#include <intrin.h> #include <intrin.h>

View file

@ -6,12 +6,12 @@
#pragma once #pragma once
#include <cstddef>
#include <iterator> #include <iterator>
#include <memory> #include <memory>
#include <type_traits> #include <type_traits>
#include "common/assert.h" #include "common/assert.h"
#include "common/common_types.h"
namespace Dynarmic { namespace Dynarmic {
namespace Common { namespace Common {

View file

@ -6,10 +6,9 @@
#pragma once #pragma once
#include <cstddef>
#include <vector> #include <vector>
#include "common/common_types.h"
namespace Dynarmic { namespace Dynarmic {
namespace Common { namespace Common {

View file

@ -6,8 +6,8 @@
#pragma once #pragma once
#include <cstddef>
#include <tuple> #include <tuple>
#include "common/common_types.h"
namespace Dynarmic { namespace Dynarmic {
namespace mp { namespace mp {

View file

@ -5,7 +5,8 @@
*/ */
#include "common/assert.h" #include "common/assert.h"
#include "ir_emitter.h" #include "frontend/ir/ir_emitter.h"
#include "frontend/ir/opcodes.h"
namespace Dynarmic { namespace Dynarmic {
namespace IR { namespace IR {

View file

@ -11,7 +11,6 @@
#include "common/common_types.h" #include "common/common_types.h"
#include "frontend/arm_types.h" #include "frontend/arm_types.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"
#include "frontend/ir/opcodes.h"
#include "frontend/ir/terminal.h" #include "frontend/ir/terminal.h"
#include "frontend/ir/value.h" #include "frontend/ir/value.h"
@ -25,6 +24,8 @@
namespace Dynarmic { namespace Dynarmic {
namespace IR { namespace IR {
enum class Opcode;
/** /**
* Convenience class to construct a basic block of the intermediate representation. * Convenience class to construct a basic block of the intermediate representation.
* `block` is the resulting block. * `block` is the resulting block.

View file

@ -4,9 +4,7 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include "common/assert.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"
#include "frontend/ir/opcodes.h"
#include "ir_opt/passes.h" #include "ir_opt/passes.h"
namespace Dynarmic { namespace Dynarmic {