Просмотр исходного кода

shader_recompiler: Reduce unused includes

ameerj 4 лет назад
Родитель
Сommit
574a2c4b77
69 измененных файлов с 7 добавлено и 106 удалено
  1. 0 2
      src/shader_recompiler/backend/glasm/emit_glasm_convert.cpp
  2. 0 2
      src/shader_recompiler/backend/glasm/emit_glasm_floating_point.cpp
  3. 0 2
      src/shader_recompiler/backend/glasm/emit_glasm_memory.cpp
  4. 0 3
      src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
  5. 0 2
      src/shader_recompiler/backend/glasm/glasm_emit_context.cpp
  6. 0 3
      src/shader_recompiler/backend/glasm/reg_alloc.cpp
  7. 0 1
      src/shader_recompiler/backend/glsl/emit_glsl_barriers.cpp
  8. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_control_flow.cpp
  9. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
  10. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_logical.cpp
  11. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_shared_memory.cpp
  12. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_special.cpp
  13. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_undefined.cpp
  14. 0 2
      src/shader_recompiler/backend/spirv/emit_spirv_barriers.cpp
  15. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp
  16. 0 2
      src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp
  17. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
  18. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp
  19. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp
  20. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp
  21. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_image_atomic.cpp
  22. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp
  23. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp
  24. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_select.cpp
  25. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_shared_memory.cpp
  26. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_undefined.cpp
  27. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp
  28. 0 1
      src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
  29. 0 1
      src/shader_recompiler/backend/spirv/spirv_emit_context.h
  30. 0 1
      src/shader_recompiler/exception.h
  31. 0 2
      src/shader_recompiler/frontend/ir/basic_block.cpp
  32. 0 1
      src/shader_recompiler/frontend/ir/condition.h
  33. 0 2
      src/shader_recompiler/frontend/ir/opcodes.cpp
  34. 0 2
      src/shader_recompiler/frontend/ir/opcodes.h
  35. 0 1
      src/shader_recompiler/frontend/ir/value.cpp
  36. 1 1
      src/shader_recompiler/frontend/maxwell/control_flow.h
  37. 0 1
      src/shader_recompiler/frontend/maxwell/decode.cpp
  38. 0 1
      src/shader_recompiler/frontend/maxwell/indirect_branch_table_track.h
  39. 0 1
      src/shader_recompiler/frontend/maxwell/instruction.h
  40. 0 3
      src/shader_recompiler/frontend/maxwell/location.h
  41. 0 2
      src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
  42. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/attribute_memory_to_physical.cpp
  43. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/barrier_operations.cpp
  44. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h
  45. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp
  46. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_multi_function.cpp
  47. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.h
  48. 1 0
      src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set.cpp
  49. 1 0
      src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set_predicate.cpp
  50. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/load_store_attribute.cpp
  51. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/load_store_memory.cpp
  52. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/move_register.cpp
  53. 0 3
      src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp
  54. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_fetch_swizzled.cpp
  55. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_gather.cpp
  56. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_gather_swizzled.cpp
  57. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_gradient.cpp
  58. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp
  59. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp
  60. 0 1
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp
  61. 0 2
      src/shader_recompiler/frontend/maxwell/translate/impl/warp_shuffle.cpp
  62. 4 1
      src/shader_recompiler/frontend/maxwell/translate_program.h
  63. 0 1
      src/shader_recompiler/ir_opt/constant_propagation_pass.cpp
  64. 0 3
      src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp
  65. 0 3
      src/shader_recompiler/ir_opt/lower_fp16_to_fp32.cpp
  66. 0 3
      src/shader_recompiler/ir_opt/passes.h
  67. 0 1
      src/shader_recompiler/ir_opt/rescaling_pass.cpp
  68. 0 1
      src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp
  69. 0 1
      src/shader_recompiler/runtime_info.h

+ 0 - 2
src/shader_recompiler/backend/glasm/emit_glasm_convert.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/backend/glasm/emit_glasm_floating_point.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/backend/glasm/emit_glasm_memory.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/frontend/ir/program.h"

+ 0 - 3
src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp

@@ -2,11 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
-#include "shader_recompiler/frontend/ir/program.h"
 #include "shader_recompiler/frontend/ir/value.h"
 
 #ifdef _MSC_VER

+ 0 - 2
src/shader_recompiler/backend/glasm/glasm_emit_context.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/bindings.h"
 #include "shader_recompiler/backend/glasm/emit_glasm.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"

+ 0 - 3
src/shader_recompiler/backend/glasm/reg_alloc.cpp

@@ -2,11 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string>
-
 #include <fmt/format.h>
 
-#include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/backend/glasm/reg_alloc.h"
 #include "shader_recompiler/exception.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 1
src/shader_recompiler/backend/glsl/emit_glsl_barriers.cpp

@@ -4,7 +4,6 @@
 
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
-#include "shader_recompiler/frontend/ir/value.h"
 
 namespace Shader::Backend::GLSL {
 void EmitBarrier(EmitContext& ctx) {

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_control_flow.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/exception.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_logical.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_shared_memory.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_special.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/program.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_undefined.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 

+ 0 - 2
src/shader_recompiler/backend/spirv/emit_spirv_barriers.cpp

@@ -2,10 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
-#include "shader_recompiler/frontend/ir/modifiers.h"
 
 namespace Shader::Backend::SPIRV {
 namespace {

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 2
src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp

@@ -2,10 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
-#include "shader_recompiler/frontend/ir/modifiers.h"
 
 namespace Shader::Backend::SPIRV {
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp

@@ -5,7 +5,6 @@
 #include <tuple>
 #include <utility>
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_image_atomic.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_select.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_shared_memory.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_undefined.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp

@@ -5,7 +5,6 @@
 #include <algorithm>
 #include <array>
 #include <climits>
-#include <string_view>
 
 #include <boost/container/static_vector.hpp>
 

+ 0 - 1
src/shader_recompiler/backend/spirv/spirv_emit_context.h

@@ -5,7 +5,6 @@
 #pragma once
 
 #include <array>
-#include <string_view>
 
 #include <sirit/sirit.h>
 

+ 0 - 1
src/shader_recompiler/exception.h

@@ -6,7 +6,6 @@
 
 #include <exception>
 #include <string>
-#include <string_view>
 #include <utility>
 
 #include "common/logging/formatter.h"

+ 0 - 2
src/shader_recompiler/frontend/ir/basic_block.cpp

@@ -5,9 +5,7 @@
 #include <algorithm>
 #include <initializer_list>
 #include <map>
-#include <memory>
 
-#include "common/bit_cast.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/basic_block.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 1
src/shader_recompiler/frontend/ir/condition.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include <compare>
 #include <string>
 
 #include <fmt/format.h>

+ 0 - 2
src/shader_recompiler/frontend/ir/opcodes.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/frontend/ir/opcodes.h"
 
 namespace Shader::IR {

+ 0 - 2
src/shader_recompiler/frontend/ir/opcodes.h

@@ -4,9 +4,7 @@
 
 #pragma once
 
-#include <algorithm>
 #include <array>
-#include <string_view>
 
 #include <fmt/format.h>
 

+ 0 - 1
src/shader_recompiler/frontend/ir/value.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/frontend/ir/opcodes.h"
 #include "shader_recompiler/frontend/ir/value.h"
 
 namespace Shader::IR {

+ 1 - 1
src/shader_recompiler/frontend/maxwell/control_flow.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include <compare>
 #include <optional>
 #include <span>
 #include <string>
@@ -15,6 +14,7 @@
 
 #include "shader_recompiler/environment.h"
 #include "shader_recompiler/frontend/ir/condition.h"
+#include "shader_recompiler/frontend/ir/reg.h"
 #include "shader_recompiler/frontend/maxwell/instruction.h"
 #include "shader_recompiler/frontend/maxwell/location.h"
 #include "shader_recompiler/frontend/maxwell/opcodes.h"

+ 0 - 1
src/shader_recompiler/frontend/maxwell/decode.cpp

@@ -6,7 +6,6 @@
 #include <array>
 #include <bit>
 #include <memory>
-#include <string_view>
 
 #include "common/common_types.h"
 #include "shader_recompiler/exception.h"

+ 0 - 1
src/shader_recompiler/frontend/maxwell/indirect_branch_table_track.h

@@ -6,7 +6,6 @@
 
 #include <optional>
 
-#include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/environment.h"
 #include "shader_recompiler/frontend/ir/reg.h"

+ 0 - 1
src/shader_recompiler/frontend/maxwell/instruction.h

@@ -7,7 +7,6 @@
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/flow_test.h"
-#include "shader_recompiler/frontend/ir/reg.h"
 
 namespace Shader::Maxwell {
 

+ 0 - 3
src/shader_recompiler/frontend/maxwell/location.h

@@ -4,9 +4,6 @@
 
 #pragma once
 
-#include <compare>
-#include <iterator>
-
 #include <fmt/format.h>
 
 #include "common/common_types.h"

+ 0 - 2
src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp

@@ -8,7 +8,6 @@
 #include <unordered_map>
 #include <utility>
 #include <vector>
-#include <version>
 
 #include <fmt/format.h>
 
@@ -17,7 +16,6 @@
 #include "shader_recompiler/environment.h"
 #include "shader_recompiler/frontend/ir/basic_block.h"
 #include "shader_recompiler/frontend/ir/ir_emitter.h"
-#include "shader_recompiler/frontend/maxwell/decode.h"
 #include "shader_recompiler/frontend/maxwell/structured_control_flow.h"
 #include "shader_recompiler/frontend/maxwell/translate/translate.h"
 #include "shader_recompiler/host_translate_info.h"

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/attribute_memory_to_physical.cpp

@@ -4,7 +4,6 @@
 
 #include "common/bit_field.h"
 #include "common/common_types.h"
-#include "shader_recompiler/frontend/maxwell/opcodes.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/barrier_operations.cpp

@@ -4,8 +4,6 @@
 
 #include "common/bit_field.h"
 #include "common/common_types.h"
-#include "shader_recompiler/frontend/ir/modifiers.h"
-#include "shader_recompiler/frontend/maxwell/opcodes.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include "common/common_types.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp

@@ -3,7 +3,6 @@
 // Refer to the license.txt file included.
 
 #include "common/common_types.h"
-#include "shader_recompiler/exception.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_multi_function.cpp

@@ -5,7 +5,6 @@
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/exception.h"
-#include "shader_recompiler/frontend/maxwell/opcodes.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.h

@@ -6,8 +6,6 @@
 
 #include "common/common_types.h"
 #include "shader_recompiler/exception.h"
-#include "shader_recompiler/frontend/maxwell/translate/impl/common_encoding.h"
-#include "shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 1 - 0
src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set.cpp

@@ -2,6 +2,7 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
+#include "shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.h"
 
 namespace Shader::Maxwell {

+ 1 - 0
src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_set_predicate.cpp

@@ -2,6 +2,7 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
+#include "shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.h"
 
 namespace Shader::Maxwell {

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/load_store_attribute.cpp

@@ -6,7 +6,6 @@
 #include "common/common_types.h"
 #include "shader_recompiler/exception.h"
 #include "shader_recompiler/frontend/ir/ir_emitter.h"
-#include "shader_recompiler/frontend/maxwell/opcodes.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/load_store_memory.cpp

@@ -5,7 +5,6 @@
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/exception.h"
-#include "shader_recompiler/frontend/maxwell/opcodes.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/move_register.cpp

@@ -5,7 +5,6 @@
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/exception.h"
-#include "shader_recompiler/frontend/maxwell/opcodes.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 3
src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp

@@ -2,9 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <array>
-#include <bit>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/texture_fetch_swizzled.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <utility>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/texture_gather.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <optional>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/texture_gather_swizzled.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <utility>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/texture_gradient.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <optional>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/texture_load.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <optional>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <optional>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp

@@ -6,7 +6,6 @@
 
 #include "common/bit_field.h"
 #include "common/common_types.h"
-#include "shader_recompiler/frontend/ir/modifiers.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"
 
 namespace Shader::Maxwell {

+ 0 - 2
src/shader_recompiler/frontend/maxwell/translate/impl/warp_shuffle.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <optional>
-
 #include "common/bit_field.h"
 #include "common/common_types.h"
 #include "shader_recompiler/frontend/maxwell/translate/impl/impl.h"

+ 4 - 1
src/shader_recompiler/frontend/maxwell/translate_program.h

@@ -8,10 +8,13 @@
 #include "shader_recompiler/frontend/ir/basic_block.h"
 #include "shader_recompiler/frontend/ir/program.h"
 #include "shader_recompiler/frontend/maxwell/control_flow.h"
-#include "shader_recompiler/host_translate_info.h"
 #include "shader_recompiler/object_pool.h"
 #include "shader_recompiler/runtime_info.h"
 
+namespace Shader {
+struct HostTranslateInfo;
+}
+
 namespace Shader::Maxwell {
 
 [[nodiscard]] IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool,

+ 0 - 1
src/shader_recompiler/ir_opt/constant_propagation_pass.cpp

@@ -8,7 +8,6 @@
 #include <type_traits>
 
 #include "common/bit_cast.h"
-#include "common/bit_util.h"
 #include "shader_recompiler/exception.h"
 #include "shader_recompiler/frontend/ir/ir_emitter.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 3
src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp

@@ -2,10 +2,7 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <algorithm>
-#include <compare>
 #include <optional>
-#include <queue>
 
 #include <boost/container/flat_set.hpp>
 #include <boost/container/small_vector.hpp>

+ 0 - 3
src/shader_recompiler/ir_opt/lower_fp16_to_fp32.cpp

@@ -2,9 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <algorithm>
-
-#include "shader_recompiler/frontend/ir/ir_emitter.h"
 #include "shader_recompiler/frontend/ir/value.h"
 #include "shader_recompiler/ir_opt/passes.h"
 

+ 0 - 3
src/shader_recompiler/ir_opt/passes.h

@@ -4,10 +4,7 @@
 
 #pragma once
 
-#include <span>
-
 #include "shader_recompiler/environment.h"
-#include "shader_recompiler/frontend/ir/basic_block.h"
 #include "shader_recompiler/frontend/ir/program.h"
 
 namespace Shader::Optimization {

+ 0 - 1
src/shader_recompiler/ir_opt/rescaling_pass.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "common/alignment.h"
 #include "common/settings.h"
 #include "shader_recompiler/environment.h"
 #include "shader_recompiler/frontend/ir/ir_emitter.h"

+ 0 - 1
src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp

@@ -20,7 +20,6 @@
 #include <vector>
 
 #include <boost/container/flat_map.hpp>
-#include <boost/container/flat_set.hpp>
 
 #include "shader_recompiler/frontend/ir/basic_block.h"
 #include "shader_recompiler/frontend/ir/opcodes.h"

+ 0 - 1
src/shader_recompiler/runtime_info.h

@@ -5,7 +5,6 @@
 #pragma once
 
 #include <array>
-#include <bitset>
 #include <optional>
 #include <vector>