Merge pull request #502 from lioncash/header

General: Remove unnecessary includes
This commit is contained in:
Merry 2019-05-27 13:45:05 +01:00 committed by MerryMage
commit f252a62c1b
46 changed files with 20 additions and 73 deletions

View file

@ -5,7 +5,6 @@
*/ */
#include <unordered_map> #include <unordered_map>
#include <unordered_set>
#include <utility> #include <utility>
#include <fmt/format.h> #include <fmt/format.h>

View file

@ -7,7 +7,6 @@
#pragma once #pragma once
#include <array> #include <array>
#include <optional>
#include <dynarmic/A32/a32.h> #include <dynarmic/A32/a32.h>
#include <dynarmic/A32/config.h> #include <dynarmic/A32/config.h>

View file

@ -9,6 +9,9 @@
#include <boost/icl/interval_set.hpp> #include <boost/icl/interval_set.hpp>
#include <fmt/format.h> #include <fmt/format.h>
#include <dynarmic/A32/a32.h>
#include <dynarmic/A32/context.h>
#include "backend/x64/a32_emit_x64.h" #include "backend/x64/a32_emit_x64.h"
#include "backend/x64/a32_jitstate.h" #include "backend/x64/a32_jitstate.h"
#include "backend/x64/block_of_code.h" #include "backend/x64/block_of_code.h"
@ -19,8 +22,6 @@
#include "common/common_types.h" #include "common/common_types.h"
#include "common/llvm_disassemble.h" #include "common/llvm_disassemble.h"
#include "common/scope_exit.h" #include "common/scope_exit.h"
#include "dynarmic/A32/a32.h"
#include "dynarmic/A32/context.h"
#include "frontend/A32/translate/translate.h" #include "frontend/A32/translate/translate.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"
#include "frontend/ir/location_descriptor.h" #include "frontend/ir/location_descriptor.h"

View file

@ -21,7 +21,6 @@
#include "common/bit_util.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 "common/variant_util.h"
#include "frontend/A64/location_descriptor.h" #include "frontend/A64/location_descriptor.h"
#include "frontend/A64/types.h" #include "frontend/A64/types.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"

View file

@ -6,7 +6,6 @@
#include <array> #include <array>
#include <cstring> #include <cstring>
#include <limits>
#include <xbyak.h> #include <xbyak.h>

View file

@ -6,6 +6,7 @@
#pragma once #pragma once
#include <set>
#include <unordered_set> #include <unordered_set>
#include <boost/icl/interval_map.hpp> #include <boost/icl/interval_map.hpp>

View file

@ -7,6 +7,7 @@
#pragma once #pragma once
#include <map> #include <map>
#include <tuple>
#include <xbyak.h> #include <xbyak.h>

View file

@ -7,10 +7,9 @@
#pragma once #pragma once
#include <cstring> #include <cstring>
#include <memory> #include <utility>
#include "backend/x64/callback.h" #include "backend/x64/callback.h"
#include "common/assert.h"
#include "common/cast_util.h" #include "common/cast_util.h"
#include "common/common_types.h" #include "common/common_types.h"
#include "common/mp/function_info.h" #include "common/mp/function_info.h"

View file

@ -19,7 +19,6 @@
#include "backend/x64/reg_alloc.h" #include "backend/x64/reg_alloc.h"
#include "common/bit_util.h" #include "common/bit_util.h"
#include "common/fp/fpcr.h" #include "common/fp/fpcr.h"
#include "common/fp/rounding_mode.h"
#include "frontend/ir/location_descriptor.h" #include "frontend/ir/location_descriptor.h"
#include "frontend/ir/terminal.h" #include "frontend/ir/terminal.h"

View file

@ -10,7 +10,6 @@
#include "common/common_types.h" #include "common/common_types.h"
#include "common/crypto/aes.h" #include "common/crypto/aes.h"
#include "frontend/ir/microinstruction.h" #include "frontend/ir/microinstruction.h"
#include "frontend/ir/opcodes.h"
namespace Dynarmic::BackendX64 { namespace Dynarmic::BackendX64 {

View file

@ -9,10 +9,8 @@
#include "backend/x64/block_of_code.h" #include "backend/x64/block_of_code.h"
#include "backend/x64/emit_x64.h" #include "backend/x64/emit_x64.h"
#include "common/common_types.h"
#include "common/crypto/crc32.h" #include "common/crypto/crc32.h"
#include "frontend/ir/microinstruction.h" #include "frontend/ir/microinstruction.h"
#include "frontend/ir/opcodes.h"
namespace Dynarmic::BackendX64 { namespace Dynarmic::BackendX64 {

View file

@ -18,7 +18,6 @@
#include "common/fp/info.h" #include "common/fp/info.h"
#include "common/fp/op.h" #include "common/fp/op.h"
#include "common/fp/rounding_mode.h" #include "common/fp/rounding_mode.h"
#include "common/fp/util.h"
#include "common/mp/cartesian_product.h" #include "common/mp/cartesian_product.h"
#include "common/mp/integer.h" #include "common/mp/integer.h"
#include "common/mp/list.h" #include "common/mp/list.h"
@ -28,7 +27,6 @@
#include "common/mp/vllift.h" #include "common/mp/vllift.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"
#include "frontend/ir/microinstruction.h" #include "frontend/ir/microinstruction.h"
#include "frontend/ir/opcodes.h"
namespace Dynarmic::BackendX64 { namespace Dynarmic::BackendX64 {

View file

@ -6,9 +6,6 @@
#include "backend/x64/block_of_code.h" #include "backend/x64/block_of_code.h"
#include "backend/x64/emit_x64.h" #include "backend/x64/emit_x64.h"
#include "common/assert.h"
#include "common/common_types.h"
#include "frontend/ir/basic_block.h"
#include "frontend/ir/microinstruction.h" #include "frontend/ir/microinstruction.h"
#include "frontend/ir/opcodes.h" #include "frontend/ir/opcodes.h"

View file

@ -6,10 +6,8 @@
#include "backend/x64/block_of_code.h" #include "backend/x64/block_of_code.h"
#include "backend/x64/emit_x64.h" #include "backend/x64/emit_x64.h"
#include "common/common_types.h"
#include "common/crypto/sm4.h" #include "common/crypto/sm4.h"
#include "frontend/ir/microinstruction.h" #include "frontend/ir/microinstruction.h"
#include "frontend/ir/opcodes.h"
namespace Dynarmic::BackendX64 { namespace Dynarmic::BackendX64 {

View file

@ -7,7 +7,6 @@
#include <algorithm> #include <algorithm>
#include <bitset> #include <bitset>
#include <cstdlib> #include <cstdlib>
#include <functional>
#include <type_traits> #include <type_traits>
#include "backend/x64/abi.h" #include "backend/x64/abi.h"

View file

@ -14,7 +14,6 @@
#include "backend/x64/block_of_code.h" #include "backend/x64/block_of_code.h"
#include "backend/x64/emit_x64.h" #include "backend/x64/emit_x64.h"
#include "common/assert.h" #include "common/assert.h"
#include "common/bit_util.h"
#include "common/fp/fpcr.h" #include "common/fp/fpcr.h"
#include "common/fp/info.h" #include "common/fp/info.h"
#include "common/fp/op.h" #include "common/fp/op.h"

View file

@ -8,8 +8,6 @@
#include <cstddef> #include <cstddef>
#include "common/common_types.h"
namespace Dynarmic::BackendX64 { namespace Dynarmic::BackendX64 {
struct JitStateInfo { struct JitStateInfo {

View file

@ -6,8 +6,6 @@
#pragma once #pragma once
#include <cstddef>
#include <string>
#include <string_view> #include <string_view>
#include "common/cast_util.h" #include "common/cast_util.h"

View file

@ -6,8 +6,6 @@
#pragma once #pragma once
#include <optional>
#include "common/bit_util.h" #include "common/bit_util.h"
#include "common/common_types.h" #include "common/common_types.h"

View file

@ -4,15 +4,12 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <tuple>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/fp/fpcr.h" #include "common/fp/fpcr.h"
#include "common/fp/fpsr.h" #include "common/fp/fpsr.h"
#include "common/fp/info.h" #include "common/fp/info.h"
#include "common/fp/op/FPRecipEstimate.h" #include "common/fp/op/FPConvert.h"
#include "common/fp/process_exception.h" #include "common/fp/process_exception.h"
#include "common/fp/process_nan.h"
#include "common/fp/unpacked.h" #include "common/fp/unpacked.h"
namespace Dynarmic::FP { namespace Dynarmic::FP {

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <tuple>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/bit_util.h" #include "common/bit_util.h"
#include "common/fp/fpcr.h" #include "common/fp/fpcr.h"

View file

@ -8,7 +8,6 @@
#include <optional> #include <optional>
#include "common/common_types.h"
#include "common/fp/fpcr.h" #include "common/fp/fpcr.h"
#include "common/fp/info.h" #include "common/fp/info.h"

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <array>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/u128.h" #include "common/u128.h"

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <cstring>
#include <tuple> #include <tuple>
#include <type_traits> #include <type_traits>

View file

@ -6,6 +6,7 @@
#pragma once #pragma once
#include "common/assert.h"
#include "common/bit_util.h" #include "common/bit_util.h"
#include "frontend/imm.h" #include "frontend/imm.h"
#include "frontend/A32/ir_emitter.h" #include "frontend/A32/ir_emitter.h"

View file

@ -6,7 +6,7 @@
#pragma once #pragma once
#include "common/bit_util.h" #include "common/assert.h"
#include "frontend/imm.h" #include "frontend/imm.h"
#include "frontend/A32/ir_emitter.h" #include "frontend/A32/ir_emitter.h"
#include "frontend/A32/location_descriptor.h" #include "frontend/A32/location_descriptor.h"

View file

@ -17,7 +17,6 @@
#include "frontend/A32/location_descriptor.h" #include "frontend/A32/location_descriptor.h"
#include "frontend/A32/translate/impl/translate_thumb.h" #include "frontend/A32/translate/impl/translate_thumb.h"
#include "frontend/A32/translate/translate.h" #include "frontend/A32/translate/translate.h"
#include "frontend/A32/types.h"
namespace Dynarmic::A32 { namespace Dynarmic::A32 {
namespace { namespace {

View file

@ -10,6 +10,7 @@
#include <functional> #include <functional>
#include <optional> #include <optional>
#include <set> #include <set>
#include <string>
#include <vector> #include <vector>
#include "common/bit_util.h" #include "common/bit_util.h"

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <initializer_list>
#include <optional> #include <optional>
#include <dynarmic/A64/config.h> #include <dynarmic/A64/config.h>

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "common/fp/rounding_mode.h" #include "common/fp/rounding_mode.h"
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -4,8 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -4,7 +4,6 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <tuple>
#include <optional> #include <optional>
#include "frontend/A64/translate/impl/impl.h" #include "frontend/A64/translate/impl/impl.h"

View file

@ -9,7 +9,6 @@
#include <fmt/format.h> #include <fmt/format.h>
#include "common/bit_util.h"
#include "frontend/A64/types.h" #include "frontend/A64/types.h"
namespace Dynarmic::A64 { namespace Dynarmic::A64 {

View file

@ -8,7 +8,6 @@
#include <iosfwd> #include <iosfwd>
#include <string> #include <string>
#include <utility>
#include "common/assert.h" #include "common/assert.h"
#include "common/common_types.h" #include "common/common_types.h"

View file

@ -8,9 +8,6 @@
#include <ostream> #include <ostream>
#include <string> #include <string>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include "frontend/ir/type.h" #include "frontend/ir/type.h"
namespace Dynarmic::IR { namespace Dynarmic::IR {

View file

@ -4,9 +4,8 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <array>
#include <dynarmic/A64/config.h> #include <dynarmic/A64/config.h>
#include "frontend/A64/ir_emitter.h" #include "frontend/A64/ir_emitter.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"
#include "frontend/ir/microinstruction.h" #include "frontend/ir/microinstruction.h"

View file

@ -6,11 +6,9 @@
#include <array> #include <array>
#include "common/assert.h"
#include "common/common_types.h" #include "common/common_types.h"
#include "frontend/A64/types.h" #include "frontend/A64/types.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"
#include "frontend/ir/ir_emitter.h"
#include "frontend/ir/opcodes.h" #include "frontend/ir/opcodes.h"
#include "frontend/ir/value.h" #include "frontend/ir/value.h"
#include "ir_opt/passes.h" #include "ir_opt/passes.h"

View file

@ -4,12 +4,9 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <array>
#include <boost/variant/get.hpp> #include <boost/variant/get.hpp>
#include <dynarmic/A64/config.h> #include <dynarmic/A64/config.h>
#include "common/assert.h"
#include "common/common_types.h" #include "common/common_types.h"
#include "frontend/A64/location_descriptor.h" #include "frontend/A64/location_descriptor.h"
#include "frontend/A64/translate/translate.h" #include "frontend/A64/translate/translate.h"

View file

@ -4,9 +4,8 @@
* General Public License version 2 or any later version. * General Public License version 2 or any later version.
*/ */
#include <dynarmic/A32/config.h>
#include "common/bit_util.h" #include "common/bit_util.h"
#include "common/common_types.h"
#include "frontend/ir/basic_block.h" #include "frontend/ir/basic_block.h"
#include "frontend/ir/opcodes.h" #include "frontend/ir/opcodes.h"
#include "ir_opt/passes.h" #include "ir_opt/passes.h"

View file

@ -6,8 +6,14 @@
#pragma once #pragma once
#include <dynarmic/A32/config.h> namespace Dynarmic::A32 {
#include <dynarmic/A64/config.h> struct UserCallbacks;
}
namespace Dynarmic::A64 {
struct UserCallbacks;
struct UserConfig;
}
namespace Dynarmic::IR { namespace Dynarmic::IR {
class Block; class Block;