More style cleanup.
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_COMPILER_H_
|
||||
#define XENIA_COMPILER_COMPILER_H_
|
||||
#ifndef XENIA_CPU_COMPILER_COMPILER_H_
|
||||
#define XENIA_CPU_COMPILER_COMPILER_H_
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
@@ -30,7 +30,7 @@ class CompilerPass;
|
||||
|
||||
class Compiler {
|
||||
public:
|
||||
Compiler(Processor* processor);
|
||||
explicit Compiler(Processor* processor);
|
||||
~Compiler();
|
||||
|
||||
Processor* processor() const { return processor_; }
|
||||
@@ -53,4 +53,4 @@ class Compiler {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_COMPILER_H_
|
||||
#endif // XENIA_CPU_COMPILER_COMPILER_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_COMPILER_PASS_H_
|
||||
#define XENIA_COMPILER_COMPILER_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_COMPILER_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_COMPILER_PASS_H_
|
||||
|
||||
#include "xenia/base/arena.h"
|
||||
#include "xenia/cpu/hir/hir_builder.h"
|
||||
@@ -46,4 +46,4 @@ class CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_COMPILER_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_COMPILER_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_COMPILER_PASSES_H_
|
||||
#define XENIA_COMPILER_COMPILER_PASSES_H_
|
||||
#ifndef XENIA_CPU_COMPILER_COMPILER_PASSES_H_
|
||||
#define XENIA_CPU_COMPILER_COMPILER_PASSES_H_
|
||||
|
||||
#include "xenia/cpu/compiler/passes/constant_propagation_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/context_promotion_pass.h"
|
||||
@@ -16,7 +16,6 @@
|
||||
#include "xenia/cpu/compiler/passes/control_flow_simplification_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/data_flow_analysis_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/dead_code_elimination_pass.h"
|
||||
//#include "xenia/cpu/compiler/passes/dead_store_elimination_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/finalization_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/memory_sequence_combination_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/register_allocation_pass.h"
|
||||
@@ -24,4 +23,4 @@
|
||||
#include "xenia/cpu/compiler/passes/validation_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/value_reduction_pass.h"
|
||||
|
||||
#endif // XENIA_COMPILER_COMPILER_PASSES_H_
|
||||
#endif // XENIA_CPU_COMPILER_COMPILER_PASSES_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -32,4 +32,4 @@ class ConstantPropagationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_CONTEXT_PROMOTION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_CONTEXT_PROMOTION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_CONTEXT_PROMOTION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_CONTEXT_PROMOTION_PASS_H_
|
||||
|
||||
#include "xenia/base/platform.h"
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
@@ -52,4 +52,4 @@ class ContextPromotionPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_CONTEXT_PROMOTION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_CONTEXT_PROMOTION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_CONTROL_FLOW_ANALYSIS_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_CONTROL_FLOW_ANALYSIS_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_CONTROL_FLOW_ANALYSIS_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_CONTROL_FLOW_ANALYSIS_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -32,4 +32,4 @@ class ControlFlowAnalysisPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_CONTROL_FLOW_ANALYSIS_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_CONTROL_FLOW_ANALYSIS_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_CONTROL_FLOW_SIMPLIFICATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_CONTROL_FLOW_SIMPLIFICATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_CONTROL_FLOW_SIMPLIFICATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_CONTROL_FLOW_SIMPLIFICATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -32,4 +32,4 @@ class ControlFlowSimplificationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_CONTROL_FLOW_SIMPLIFICATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_CONTROL_FLOW_SIMPLIFICATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_DATA_FLOW_ANALYSIS_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_DATA_FLOW_ANALYSIS_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_DATA_FLOW_ANALYSIS_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_DATA_FLOW_ANALYSIS_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -34,4 +34,4 @@ class DataFlowAnalysisPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_DATA_FLOW_ANALYSIS_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_DATA_FLOW_ANALYSIS_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_DEAD_CODE_ELIMINATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_DEAD_CODE_ELIMINATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_DEAD_CODE_ELIMINATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_DEAD_CODE_ELIMINATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -35,4 +35,4 @@ class DeadCodeEliminationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_DEAD_CODE_ELIMINATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_DEAD_CODE_ELIMINATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_FINALIZATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_FINALIZATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_FINALIZATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_FINALIZATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -32,4 +32,4 @@ class FinalizationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_FINALIZATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_FINALIZATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_MEMORY_SEQUENCE_COMBINATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_MEMORY_SEQUENCE_COMBINATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_MEMORY_SEQUENCE_COMBINATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_MEMORY_SEQUENCE_COMBINATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -35,4 +35,4 @@ class MemorySequenceCombinationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_MEMORY_SEQUENCE_COMBINATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_MEMORY_SEQUENCE_COMBINATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_REGISTER_ALLOCATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_REGISTER_ALLOCATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_REGISTER_ALLOCATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_REGISTER_ALLOCATION_PASS_H_
|
||||
|
||||
#include <algorithm>
|
||||
#include <bitset>
|
||||
@@ -84,4 +84,4 @@ class RegisterAllocationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_REGISTER_ALLOCATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_REGISTER_ALLOCATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_SIMPLIFICATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_SIMPLIFICATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_SIMPLIFICATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_SIMPLIFICATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -38,4 +38,4 @@ class SimplificationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_SIMPLIFICATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_SIMPLIFICATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_VALIDATION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_VALIDATION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_VALIDATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_VALIDATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -34,4 +34,4 @@ class ValidationPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_VALIDATION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_VALIDATION_PASS_H_
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_COMPILER_PASSES_VALUE_REDUCTION_PASS_H_
|
||||
#define XENIA_COMPILER_PASSES_VALUE_REDUCTION_PASS_H_
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_VALUE_REDUCTION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_VALUE_REDUCTION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
|
||||
@@ -33,4 +33,4 @@ class ValueReductionPass : public CompilerPass {
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_COMPILER_PASSES_VALUE_REDUCTION_PASS_H_
|
||||
#endif // XENIA_CPU_COMPILER_PASSES_VALUE_REDUCTION_PASS_H_
|
||||
|
||||
Reference in New Issue
Block a user