diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d0a901..3961131 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,119 +64,119 @@ add_executable(mwcc command_line/C++_Parser/Src/Library/WarningHelpers.c compiler_and_linker/unsorted/CCompiler.c - compiler_and_linker/unsorted/CParser.c + compiler_and_linker/FrontEnd/C/CParser.c compiler_and_linker/FrontEnd/Common/CompilerTools.c compiler_and_linker/unsorted/CodeGenOptPPC.c - compiler_and_linker/unsorted/IrOptimizer.c - compiler_and_linker/unsorted/CodeGen.c + compiler_and_linker/FrontEnd/Optimizer/IrOptimizer.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/CodeGen.c compiler_and_linker/FrontEnd/C/CPrep.c compiler_and_linker/FrontEnd/C/CScope.c - compiler_and_linker/unsorted/CMachine.c - compiler_and_linker/unsorted/CExpr.c - compiler_and_linker/unsorted/CFunc.c - compiler_and_linker/unsorted/CTemplateNew.c - compiler_and_linker/unsorted/CError.c + compiler_and_linker/BackEnd/PowerPC/CMachine.c + compiler_and_linker/FrontEnd/C/CExpr.c + compiler_and_linker/FrontEnd/C/CFunc.c + compiler_and_linker/FrontEnd/C/CTemplateNew.c + compiler_and_linker/FrontEnd/C/CError.c compiler_and_linker/unsorted/ObjGenMachO.c - compiler_and_linker/unsorted/CDecl.c - compiler_and_linker/unsorted/CMangler.c - compiler_and_linker/unsorted/CSOM.c - compiler_and_linker/unsorted/CABI.c - compiler_and_linker/unsorted/CInit.c - compiler_and_linker/unsorted/CClass.c - compiler_and_linker/unsorted/CIRTransform.c + compiler_and_linker/FrontEnd/C/CDecl.c + compiler_and_linker/FrontEnd/C/CMangler.c + compiler_and_linker/FrontEnd/C/CSOM.c + compiler_and_linker/FrontEnd/C/CABI.c + compiler_and_linker/FrontEnd/C/CInit.c + compiler_and_linker/FrontEnd/C/CClass.c + compiler_and_linker/FrontEnd/Common/CIRTransform.c compiler_and_linker/unsorted/CObjC.c - compiler_and_linker/unsorted/CInline.c + compiler_and_linker/FrontEnd/C/CInline.c compiler_and_linker/FrontEnd/C/CPrepTokenizer.c - compiler_and_linker/unsorted/CTemplateTools.c - compiler_and_linker/unsorted/IroPointerAnalysis.c - compiler_and_linker/unsorted/InstrSelection.c - compiler_and_linker/unsorted/IroFlowgraph.c - compiler_and_linker/unsorted/IroLinearForm.c - compiler_and_linker/unsorted/IroUtil.c - compiler_and_linker/unsorted/IroCSE.c - compiler_and_linker/unsorted/IroPropagate.c - compiler_and_linker/unsorted/IROUseDef.c - compiler_and_linker/unsorted/InlineAsmPPC.c - compiler_and_linker/unsorted/IroDump.c - compiler_and_linker/unsorted/IroTransform.c - compiler_and_linker/unsorted/IroVars.c - compiler_and_linker/unsorted/IroEval.c - compiler_and_linker/unsorted/IroJump.c - compiler_and_linker/unsorted/IroRangePropagation.c - compiler_and_linker/unsorted/IroEmptyLoop.c - compiler_and_linker/unsorted/IroUnrollLoop.c - compiler_and_linker/unsorted/IroLoop.c - compiler_and_linker/unsorted/IroExprRegeneration.c - compiler_and_linker/unsorted/IroSubable.c - compiler_and_linker/unsorted/RegisterInfo.c - compiler_and_linker/unsorted/TOC.c - compiler_and_linker/unsorted/StackFrame.c + compiler_and_linker/FrontEnd/C/CTemplateTools.c + compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/InstrSelection.c + compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.c + compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.c + compiler_and_linker/FrontEnd/Optimizer/IroUtil.c + compiler_and_linker/FrontEnd/Optimizer/IroCSE.c + compiler_and_linker/FrontEnd/Optimizer/IroPropagate.c + compiler_and_linker/FrontEnd/Optimizer/IROUseDef.c + compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsmPPC.c + compiler_and_linker/FrontEnd/Optimizer/IroDump.c + compiler_and_linker/FrontEnd/Optimizer/IroTransform.c + compiler_and_linker/FrontEnd/Optimizer/IroVars.c + compiler_and_linker/FrontEnd/Optimizer/IroEval.c + compiler_and_linker/FrontEnd/Optimizer/IroJump.c + compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.c + compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.c + compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.c + compiler_and_linker/FrontEnd/Optimizer/IroLoop.c + compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.c + compiler_and_linker/FrontEnd/Optimizer/IroSubable.c + compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/RegisterInfo.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/TOC.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StackFrame.c compiler_and_linker/unsorted/Registers.c compiler_and_linker/unsorted/PCode.c - compiler_and_linker/unsorted/Switch.c - compiler_and_linker/unsorted/ValueNumbering.c - compiler_and_linker/unsorted/PCodeUtilities.c - compiler_and_linker/unsorted/Operands.c - compiler_and_linker/unsorted/Exceptions.c - compiler_and_linker/unsorted/uDump.c - compiler_and_linker/unsorted/COptimizer.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Switch.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ValueNumbering.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeUtilities.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Operands.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Exceptions.c + compiler_and_linker/unsorted/DumpIR.c + compiler_and_linker/FrontEnd/Common/COptimizer.c compiler_and_linker/unsorted/GlobalOptimizer.c - compiler_and_linker/unsorted/PCodeListing.c - compiler_and_linker/unsorted/Peephole.c - compiler_and_linker/unsorted/Scheduler.c - compiler_and_linker/unsorted/Coloring.c - compiler_and_linker/unsorted/PCodeAssembly.c - compiler_and_linker/unsorted/Intrinsics.c - compiler_and_linker/unsorted/PPCError.c - compiler_and_linker/unsorted/CExpr2.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeListing.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Peephole.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/Scheduler.c + compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/Coloring.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeAssembly.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Intrinsics.c + compiler_and_linker/BackEnd/PowerPC/PPCError.c + compiler_and_linker/FrontEnd/C/CExpr2.c compiler_and_linker/unsorted/CInt64.c - compiler_and_linker/unsorted/CPrec.c - compiler_and_linker/unsorted/CBrowse.c - compiler_and_linker/unsorted/CPreprocess.c - compiler_and_linker/unsorted/FuncLevelAsmPPC.c - compiler_and_linker/unsorted/CException.c - compiler_and_linker/unsorted/CTemplateClass.c + compiler_and_linker/FrontEnd/C/CPrec.c + compiler_and_linker/FrontEnd/C/CBrowse.c + compiler_and_linker/FrontEnd/C/CPreprocess.c + compiler_and_linker/BackEnd/PowerPC/InlineAssembler/FuncLevelAsmPPC.c + compiler_and_linker/FrontEnd/C/CException.c + compiler_and_linker/FrontEnd/C/CTemplateClass.c compiler_and_linker/unsorted/ScanFloat.c - compiler_and_linker/unsorted/CExprConvMatch.c - compiler_and_linker/unsorted/CRTTI.c + compiler_and_linker/FrontEnd/C/CExprConvMatch.c + compiler_and_linker/FrontEnd/C/CRTTI.c compiler_and_linker/unsorted/CObjCModern.c - compiler_and_linker/unsorted/InlineAsm.c + compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsm.c compiler_and_linker/unsorted/Unmangle.c compiler_and_linker/unsorted/MachO.c compiler_and_linker/unsorted/GenStabs.c - compiler_and_linker/unsorted/CTemplateFunc.c - compiler_and_linker/unsorted/IroMalloc.c - compiler_and_linker/unsorted/PCodeInfo.c - compiler_and_linker/unsorted/StructMoves.c - compiler_and_linker/unsorted/FunctionCalls.c - compiler_and_linker/unsorted/IroBitVect.c + compiler_and_linker/FrontEnd/C/CTemplateFunc.c + compiler_and_linker/FrontEnd/Optimizer/IroMalloc.c + compiler_and_linker/BackEnd/PowerPC/PCode/PCodeInfo.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StructMoves.c + compiler_and_linker/BackEnd/PowerPC/CodeGenerator/FunctionCalls.c + compiler_and_linker/FrontEnd/Optimizer/IroBitVect.c compiler_and_linker/unsorted/OpcodeInfo.c compiler_and_linker/unsorted/InlineAsmRegistersPPC.c compiler_and_linker/unsorted/InlineAsmMnemonicsPPC.c compiler_and_linker/unsorted/InlineAsmRegisters.c - compiler_and_linker/unsorted/Alias.c - compiler_and_linker/unsorted/LoopDetection.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/Alias.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopDetection.c compiler_and_linker/unsorted/CopyPropagation.c - compiler_and_linker/unsorted/CodeMotion.c - compiler_and_linker/unsorted/StrengthReduction.c - compiler_and_linker/unsorted/LoopOptimization.c - compiler_and_linker/unsorted/ConstantPropagation.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/CodeMotion.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/StrengthReduction.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopOptimization.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ConstantPropagation.c compiler_and_linker/unsorted/AddPropagation.c compiler_and_linker/unsorted/UseDefChains.c compiler_and_linker/unsorted/LoadDeletion.c - compiler_and_linker/unsorted/VectorArraysToRegs.c + compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/VectorArraysToRegs.c compiler_and_linker/unsorted/LiveVariables.c - compiler_and_linker/unsorted/MachineSimulation604.c - compiler_and_linker/unsorted/MachineSimulation603.c - compiler_and_linker/unsorted/MachineSimulationAltiVec.c - compiler_and_linker/unsorted/MachineSimulation7400.c - compiler_and_linker/unsorted/MachineSimulation603e.c - compiler_and_linker/unsorted/MachineSimulation750.c - compiler_and_linker/unsorted/MachineSimulation601.c - compiler_and_linker/unsorted/MachineSimulation821.c - compiler_and_linker/unsorted/InterferenceGraph.c - compiler_and_linker/unsorted/SpillCode.c - compiler_and_linker/unsorted/GCCInlineAsm.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation604.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulationAltiVec.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation7400.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603e.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation750.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation601.c + compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation821.c + compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/InterferenceGraph.c + compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/SpillCode.c + compiler_and_linker/BackEnd/PowerPC/InlineAssembler/GCCInlineAsm.c compiler_and_linker/unsorted/BitVectors.c command_line/C++_Parser/Src/Library/StaticParserGlue.c diff --git a/command_line/CmdLine/Src/CLMain.c b/command_line/CmdLine/Src/CLMain.c index 57df9fb..a9802c5 100644 --- a/command_line/CmdLine/Src/CLMain.c +++ b/command_line/CmdLine/Src/CLMain.c @@ -121,7 +121,7 @@ static int RegisterStaticCmdLinePlugin(void) { return RegisterStaticPlugin(&clcb); } -#include "command_line/CmdLine/Project/Resources/CLErrors.r" +#include "../Project/Resources/CLErrors.r" static int RegisterCmdLineResources(void) { return RegisterResource("Command-line strings", 12000, STR12000); diff --git a/compiler_and_linker/unsorted/CMachine.c b/compiler_and_linker/BackEnd/PowerPC/CMachine.c similarity index 100% rename from compiler_and_linker/unsorted/CMachine.c rename to compiler_and_linker/BackEnd/PowerPC/CMachine.c diff --git a/compiler_and_linker/unsorted/CodeGen.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/CodeGen.c similarity index 99% rename from compiler_and_linker/unsorted/CodeGen.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/CodeGen.c index 986bddc..d3bac77 100644 --- a/compiler_and_linker/unsorted/CodeGen.c +++ b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/CodeGen.c @@ -13,7 +13,7 @@ #include "compiler/CPrepTokenizer.h" #include "compiler/Coloring.h" #include "compiler/CompilerTools.h" -#include "compiler/uDump.h" +#include "compiler/DumpIR.h" #include "compiler/Exceptions.h" #include "compiler/InlineAsmPPC.h" #include "compiler/Intrinsics.h" diff --git a/compiler_and_linker/unsorted/Exceptions.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Exceptions.c similarity index 100% rename from compiler_and_linker/unsorted/Exceptions.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Exceptions.c diff --git a/compiler_and_linker/unsorted/FunctionCalls.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/FunctionCalls.c similarity index 100% rename from compiler_and_linker/unsorted/FunctionCalls.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/FunctionCalls.c diff --git a/compiler_and_linker/unsorted/InstrSelection.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/InstrSelection.c similarity index 100% rename from compiler_and_linker/unsorted/InstrSelection.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/InstrSelection.c diff --git a/compiler_and_linker/unsorted/Intrinsics.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Intrinsics.c similarity index 100% rename from compiler_and_linker/unsorted/Intrinsics.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Intrinsics.c diff --git a/compiler_and_linker/unsorted/Operands.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Operands.c similarity index 100% rename from compiler_and_linker/unsorted/Operands.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Operands.c diff --git a/compiler_and_linker/unsorted/PCodeAssembly.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeAssembly.c similarity index 100% rename from compiler_and_linker/unsorted/PCodeAssembly.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeAssembly.c diff --git a/compiler_and_linker/unsorted/PCodeListing.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeListing.c similarity index 100% rename from compiler_and_linker/unsorted/PCodeListing.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeListing.c diff --git a/compiler_and_linker/unsorted/PCodeUtilities.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeUtilities.c similarity index 100% rename from compiler_and_linker/unsorted/PCodeUtilities.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeUtilities.c diff --git a/compiler_and_linker/unsorted/Peephole.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Peephole.c similarity index 100% rename from compiler_and_linker/unsorted/Peephole.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Peephole.c diff --git a/compiler_and_linker/unsorted/StackFrame.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StackFrame.c similarity index 100% rename from compiler_and_linker/unsorted/StackFrame.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StackFrame.c diff --git a/compiler_and_linker/unsorted/StructMoves.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StructMoves.c similarity index 100% rename from compiler_and_linker/unsorted/StructMoves.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StructMoves.c diff --git a/compiler_and_linker/unsorted/Switch.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Switch.c similarity index 100% rename from compiler_and_linker/unsorted/Switch.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Switch.c diff --git a/compiler_and_linker/unsorted/TOC.c b/compiler_and_linker/BackEnd/PowerPC/CodeGenerator/TOC.c similarity index 100% rename from compiler_and_linker/unsorted/TOC.c rename to compiler_and_linker/BackEnd/PowerPC/CodeGenerator/TOC.c diff --git a/compiler_and_linker/unsorted/Alias.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/Alias.c similarity index 100% rename from compiler_and_linker/unsorted/Alias.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/Alias.c diff --git a/compiler_and_linker/unsorted/CodeMotion.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/CodeMotion.c similarity index 100% rename from compiler_and_linker/unsorted/CodeMotion.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/CodeMotion.c diff --git a/compiler_and_linker/unsorted/ConstantPropagation.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ConstantPropagation.c similarity index 100% rename from compiler_and_linker/unsorted/ConstantPropagation.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ConstantPropagation.c diff --git a/compiler_and_linker/unsorted/LoopDetection.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopDetection.c similarity index 100% rename from compiler_and_linker/unsorted/LoopDetection.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopDetection.c diff --git a/compiler_and_linker/unsorted/LoopOptimization.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopOptimization.c similarity index 100% rename from compiler_and_linker/unsorted/LoopOptimization.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopOptimization.c diff --git a/compiler_and_linker/unsorted/StrengthReduction.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/StrengthReduction.c similarity index 100% rename from compiler_and_linker/unsorted/StrengthReduction.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/StrengthReduction.c diff --git a/compiler_and_linker/unsorted/ValueNumbering.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ValueNumbering.c similarity index 100% rename from compiler_and_linker/unsorted/ValueNumbering.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ValueNumbering.c diff --git a/compiler_and_linker/unsorted/VectorArraysToRegs.c b/compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/VectorArraysToRegs.c similarity index 100% rename from compiler_and_linker/unsorted/VectorArraysToRegs.c rename to compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/VectorArraysToRegs.c diff --git a/compiler_and_linker/unsorted/FuncLevelAsmPPC.c b/compiler_and_linker/BackEnd/PowerPC/InlineAssembler/FuncLevelAsmPPC.c similarity index 99% rename from compiler_and_linker/unsorted/FuncLevelAsmPPC.c rename to compiler_and_linker/BackEnd/PowerPC/InlineAssembler/FuncLevelAsmPPC.c index 27528b8..340a54b 100644 --- a/compiler_and_linker/unsorted/FuncLevelAsmPPC.c +++ b/compiler_and_linker/BackEnd/PowerPC/InlineAssembler/FuncLevelAsmPPC.c @@ -8,7 +8,7 @@ #include "compiler/CodeGen.h" #include "compiler/Coloring.h" #include "compiler/CompilerTools.h" -#include "compiler/uDump.h" +#include "compiler/DumpIR.h" #include "compiler/InlineAsmPPC.h" #include "compiler/InlineAsmRegisters.h" #include "compiler/ObjGenMachO.h" diff --git a/compiler_and_linker/unsorted/GCCInlineAsm.c b/compiler_and_linker/BackEnd/PowerPC/InlineAssembler/GCCInlineAsm.c similarity index 100% rename from compiler_and_linker/unsorted/GCCInlineAsm.c rename to compiler_and_linker/BackEnd/PowerPC/InlineAssembler/GCCInlineAsm.c diff --git a/compiler_and_linker/unsorted/InlineAsm.c b/compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsm.c similarity index 100% rename from compiler_and_linker/unsorted/InlineAsm.c rename to compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsm.c diff --git a/compiler_and_linker/unsorted/InlineAsmPPC.c b/compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsmPPC.c similarity index 100% rename from compiler_and_linker/unsorted/InlineAsmPPC.c rename to compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsmPPC.c diff --git a/compiler_and_linker/unsorted/PCodeInfo.c b/compiler_and_linker/BackEnd/PowerPC/PCode/PCodeInfo.c similarity index 100% rename from compiler_and_linker/unsorted/PCodeInfo.c rename to compiler_and_linker/BackEnd/PowerPC/PCode/PCodeInfo.c diff --git a/compiler_and_linker/unsorted/PPCError.c b/compiler_and_linker/BackEnd/PowerPC/PPCError.c similarity index 100% rename from compiler_and_linker/unsorted/PPCError.c rename to compiler_and_linker/BackEnd/PowerPC/PPCError.c diff --git a/compiler_and_linker/unsorted/Coloring.c b/compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/Coloring.c similarity index 100% rename from compiler_and_linker/unsorted/Coloring.c rename to compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/Coloring.c diff --git a/compiler_and_linker/unsorted/InterferenceGraph.c b/compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/InterferenceGraph.c similarity index 100% rename from compiler_and_linker/unsorted/InterferenceGraph.c rename to compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/InterferenceGraph.c diff --git a/compiler_and_linker/unsorted/RegisterInfo.c b/compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/RegisterInfo.c similarity index 100% rename from compiler_and_linker/unsorted/RegisterInfo.c rename to compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/RegisterInfo.c diff --git a/compiler_and_linker/unsorted/SpillCode.c b/compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/SpillCode.c similarity index 100% rename from compiler_and_linker/unsorted/SpillCode.c rename to compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/SpillCode.c diff --git a/compiler_and_linker/unsorted/MachineSimulation601.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation601.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulation601.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation601.c diff --git a/compiler_and_linker/unsorted/MachineSimulation603.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulation603.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603.c diff --git a/compiler_and_linker/unsorted/MachineSimulation603e.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603e.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulation603e.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603e.c diff --git a/compiler_and_linker/unsorted/MachineSimulation604.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation604.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulation604.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation604.c diff --git a/compiler_and_linker/unsorted/MachineSimulation7400.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation7400.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulation7400.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation7400.c diff --git a/compiler_and_linker/unsorted/MachineSimulation750.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation750.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulation750.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation750.c diff --git a/compiler_and_linker/unsorted/MachineSimulation821.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation821.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulation821.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation821.c diff --git a/compiler_and_linker/unsorted/MachineSimulationAltiVec.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulationAltiVec.c similarity index 100% rename from compiler_and_linker/unsorted/MachineSimulationAltiVec.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulationAltiVec.c diff --git a/compiler_and_linker/unsorted/Scheduler.c b/compiler_and_linker/BackEnd/PowerPC/Scheduler/Scheduler.c similarity index 100% rename from compiler_and_linker/unsorted/Scheduler.c rename to compiler_and_linker/BackEnd/PowerPC/Scheduler/Scheduler.c diff --git a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c index ba38b17..1a2cdb1 100644 --- a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c +++ b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c @@ -1,22 +1,22 @@ #include "cmdline.h" #include "parser.h" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-common.h" +#include "ParserGlue-mach-ppc-common.h" static Boolean useDefaultIncludes = 1; static Boolean useDefaultLibraries = 1; -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsCmdLine.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsCmdLineCompiler.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsCmdLineLinker.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsFrontEndC.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsDebugging.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsOptimizer.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsWarningC.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsBackEnd.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsProject.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsLinker.opt" -#include "compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Lib/mac-ppc-cc/OptsDumper.opt" +#include "../../../Lib/mac-ppc-cc/OptsCmdLine.opt" +#include "../../../Lib/mac-ppc-cc/OptsCmdLineCompiler.opt" +#include "../../../Lib/mac-ppc-cc/OptsCmdLineLinker.opt" +#include "../../../Lib/mac-ppc-cc/OptsFrontEndC.opt" +#include "../../../Lib/mac-ppc-cc/OptsDebugging.opt" +#include "../../../Lib/mac-ppc-cc/OptsOptimizer.opt" +#include "../../../Lib/mac-ppc-cc/OptsWarningC.opt" +#include "../../../Lib/mac-ppc-cc/OptsBackEnd.opt" +#include "../../../Lib/mac-ppc-cc/OptsProject.opt" +#include "../../../Lib/mac-ppc-cc/OptsLinker.opt" +#include "../../../Lib/mac-ppc-cc/OptsDumper.opt" char *prefs[] = { "PPC CodeGen Mach-O", diff --git a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c index 4eb55d5..fab0f00 100644 --- a/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c +++ b/compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c @@ -139,7 +139,7 @@ int RegisterStaticLibImporterPlugin(void) { return RegisterStaticCompilerLinkerPlugin(&machlibimport_cb, &machlibimport_cl_cb); } -#include "compiler_and_linker/Plugin_Tools/MacOS_PPC/Lib_Importer_Mach/Resources/Errors.r" +#include "../../../../../Plugin_Tools/MacOS_PPC/Lib_Importer_Mach/Resources/Errors.r" int RegisterLibImporterResources(void) { return RegisterResource("Mach-O Lib Importer Errors", 911, STR911); diff --git a/compiler_and_linker/unsorted/CABI.c b/compiler_and_linker/FrontEnd/C/CABI.c similarity index 100% rename from compiler_and_linker/unsorted/CABI.c rename to compiler_and_linker/FrontEnd/C/CABI.c diff --git a/compiler_and_linker/unsorted/CBrowse.c b/compiler_and_linker/FrontEnd/C/CBrowse.c similarity index 100% rename from compiler_and_linker/unsorted/CBrowse.c rename to compiler_and_linker/FrontEnd/C/CBrowse.c diff --git a/compiler_and_linker/unsorted/CClass.c b/compiler_and_linker/FrontEnd/C/CClass.c similarity index 100% rename from compiler_and_linker/unsorted/CClass.c rename to compiler_and_linker/FrontEnd/C/CClass.c diff --git a/compiler_and_linker/unsorted/CDecl.c b/compiler_and_linker/FrontEnd/C/CDecl.c similarity index 100% rename from compiler_and_linker/unsorted/CDecl.c rename to compiler_and_linker/FrontEnd/C/CDecl.c diff --git a/compiler_and_linker/unsorted/CError.c b/compiler_and_linker/FrontEnd/C/CError.c similarity index 100% rename from compiler_and_linker/unsorted/CError.c rename to compiler_and_linker/FrontEnd/C/CError.c diff --git a/compiler_and_linker/unsorted/CException.c b/compiler_and_linker/FrontEnd/C/CException.c similarity index 100% rename from compiler_and_linker/unsorted/CException.c rename to compiler_and_linker/FrontEnd/C/CException.c diff --git a/compiler_and_linker/unsorted/CExpr.c b/compiler_and_linker/FrontEnd/C/CExpr.c similarity index 100% rename from compiler_and_linker/unsorted/CExpr.c rename to compiler_and_linker/FrontEnd/C/CExpr.c diff --git a/compiler_and_linker/unsorted/CExpr2.c b/compiler_and_linker/FrontEnd/C/CExpr2.c similarity index 99% rename from compiler_and_linker/unsorted/CExpr2.c rename to compiler_and_linker/FrontEnd/C/CExpr2.c index e5c662a..fc26c7e 100644 --- a/compiler_and_linker/unsorted/CExpr2.c +++ b/compiler_and_linker/FrontEnd/C/CExpr2.c @@ -46,9 +46,9 @@ static CExprReplaceCB cexpr_rsearch_callback; static Type *cexpr_left_conversion_type; static Type *cexpr_right_conversion_type; -static FuncArg mon_arg = {NULL, NULL, NULL, NULL, 0, 0, 0, 0}; -static FuncArg diadic_arg2 = {NULL, NULL, NULL, NULL, 0, 0, 0, 0}; -static FuncArg diadic_arg1 = {&diadic_arg1, NULL, NULL, NULL, 0, 0, 0, 0}; +static FuncArg mon_arg = {NULL, NULL, NULL, NULL, 0, 0, 0}; +static FuncArg diadic_arg2 = {NULL, NULL, NULL, NULL, 0, 0, 0}; +static FuncArg diadic_arg1 = {&diadic_arg1, NULL, NULL, NULL, 0, 0, 0}; static void CExpr_RecSearchExprTree(ENode *expr) { ENodeList *list; diff --git a/compiler_and_linker/unsorted/CExprConvMatch.c b/compiler_and_linker/FrontEnd/C/CExprConvMatch.c similarity index 100% rename from compiler_and_linker/unsorted/CExprConvMatch.c rename to compiler_and_linker/FrontEnd/C/CExprConvMatch.c diff --git a/compiler_and_linker/unsorted/CFunc.c b/compiler_and_linker/FrontEnd/C/CFunc.c similarity index 100% rename from compiler_and_linker/unsorted/CFunc.c rename to compiler_and_linker/FrontEnd/C/CFunc.c diff --git a/compiler_and_linker/unsorted/CInit.c b/compiler_and_linker/FrontEnd/C/CInit.c similarity index 100% rename from compiler_and_linker/unsorted/CInit.c rename to compiler_and_linker/FrontEnd/C/CInit.c diff --git a/compiler_and_linker/unsorted/CInline.c b/compiler_and_linker/FrontEnd/C/CInline.c similarity index 100% rename from compiler_and_linker/unsorted/CInline.c rename to compiler_and_linker/FrontEnd/C/CInline.c diff --git a/compiler_and_linker/unsorted/CMangler.c b/compiler_and_linker/FrontEnd/C/CMangler.c similarity index 100% rename from compiler_and_linker/unsorted/CMangler.c rename to compiler_and_linker/FrontEnd/C/CMangler.c diff --git a/compiler_and_linker/unsorted/CParser.c b/compiler_and_linker/FrontEnd/C/CParser.c similarity index 99% rename from compiler_and_linker/unsorted/CParser.c rename to compiler_and_linker/FrontEnd/C/CParser.c index e53b0bf..b089e47 100644 --- a/compiler_and_linker/unsorted/CParser.c +++ b/compiler_and_linker/FrontEnd/C/CParser.c @@ -20,8 +20,8 @@ #include "compiler/CTemplateTools.h" #include "compiler/CodeGen.h" #include "compiler/CompilerTools.h" -#include "compiler/IrOptimizer.h" -#include "compiler/IroPointerAnalysis.h" +#include "../Optimizer/IrOptimizer.h" +#include "../Optimizer/IroPointerAnalysis.h" #include "compiler/ObjGenMachO.h" #include "compiler/objects.h" #include "compiler/scopes.h" diff --git a/compiler_and_linker/unsorted/CPrec.c b/compiler_and_linker/FrontEnd/C/CPrec.c similarity index 100% rename from compiler_and_linker/unsorted/CPrec.c rename to compiler_and_linker/FrontEnd/C/CPrec.c diff --git a/compiler_and_linker/FrontEnd/C/CPrep.c b/compiler_and_linker/FrontEnd/C/CPrep.c index a2ac9e2..904e72a 100644 --- a/compiler_and_linker/FrontEnd/C/CPrep.c +++ b/compiler_and_linker/FrontEnd/C/CPrep.c @@ -14,7 +14,7 @@ #include "compiler/CodeGen.h" #include "compiler/CompilerTools.h" #include "compiler/FuncLevelAsmPPC.h" -#include "compiler/IroPointerAnalysis.h" +#include "../Optimizer/IroPointerAnalysis.h" #include "compiler/ObjGenMachO.h" #include "compiler/objects.h" #include "compiler/scopes.h" diff --git a/compiler_and_linker/unsorted/CPreprocess.c b/compiler_and_linker/FrontEnd/C/CPreprocess.c similarity index 100% rename from compiler_and_linker/unsorted/CPreprocess.c rename to compiler_and_linker/FrontEnd/C/CPreprocess.c diff --git a/compiler_and_linker/unsorted/CRTTI.c b/compiler_and_linker/FrontEnd/C/CRTTI.c similarity index 100% rename from compiler_and_linker/unsorted/CRTTI.c rename to compiler_and_linker/FrontEnd/C/CRTTI.c diff --git a/compiler_and_linker/unsorted/CSOM.c b/compiler_and_linker/FrontEnd/C/CSOM.c similarity index 99% rename from compiler_and_linker/unsorted/CSOM.c rename to compiler_and_linker/FrontEnd/C/CSOM.c index afd68a3..7e80e32 100644 --- a/compiler_and_linker/unsorted/CSOM.c +++ b/compiler_and_linker/FrontEnd/C/CSOM.c @@ -138,7 +138,6 @@ static FuncArg SOMIDT_arg1 = { TYPE(&void_ptr), 0, 0, - 0, 0 }; diff --git a/compiler_and_linker/unsorted/CTemplateClass.c b/compiler_and_linker/FrontEnd/C/CTemplateClass.c similarity index 100% rename from compiler_and_linker/unsorted/CTemplateClass.c rename to compiler_and_linker/FrontEnd/C/CTemplateClass.c diff --git a/compiler_and_linker/unsorted/CTemplateFunc.c b/compiler_and_linker/FrontEnd/C/CTemplateFunc.c similarity index 100% rename from compiler_and_linker/unsorted/CTemplateFunc.c rename to compiler_and_linker/FrontEnd/C/CTemplateFunc.c diff --git a/compiler_and_linker/unsorted/CTemplateNew.c b/compiler_and_linker/FrontEnd/C/CTemplateNew.c similarity index 100% rename from compiler_and_linker/unsorted/CTemplateNew.c rename to compiler_and_linker/FrontEnd/C/CTemplateNew.c diff --git a/compiler_and_linker/unsorted/CTemplateTools.c b/compiler_and_linker/FrontEnd/C/CTemplateTools.c similarity index 100% rename from compiler_and_linker/unsorted/CTemplateTools.c rename to compiler_and_linker/FrontEnd/C/CTemplateTools.c diff --git a/compiler_and_linker/unsorted/CIRTransform.c b/compiler_and_linker/FrontEnd/Common/CIRTransform.c similarity index 100% rename from compiler_and_linker/unsorted/CIRTransform.c rename to compiler_and_linker/FrontEnd/Common/CIRTransform.c diff --git a/compiler_and_linker/unsorted/COptimizer.c b/compiler_and_linker/FrontEnd/Common/COptimizer.c similarity index 99% rename from compiler_and_linker/unsorted/COptimizer.c rename to compiler_and_linker/FrontEnd/Common/COptimizer.c index 9833a2b..3c83ae6 100644 --- a/compiler_and_linker/unsorted/COptimizer.c +++ b/compiler_and_linker/FrontEnd/Common/COptimizer.c @@ -14,7 +14,7 @@ #include "compiler/CodeGen.h" #include "compiler/Switch.h" #include "compiler/Exceptions.h" -#include "compiler/IrOptimizer.h" +#include "../Optimizer/IrOptimizer.h" #include "cos.h" COptBlock *basicblocks; diff --git a/includes/compiler/BitVector.h b/compiler_and_linker/FrontEnd/Optimizer/BitVector.h similarity index 100% rename from includes/compiler/BitVector.h rename to compiler_and_linker/FrontEnd/Optimizer/BitVector.h diff --git a/compiler_and_linker/unsorted/IROUseDef.c b/compiler_and_linker/FrontEnd/Optimizer/IROUseDef.c similarity index 99% rename from compiler_and_linker/unsorted/IROUseDef.c rename to compiler_and_linker/FrontEnd/Optimizer/IROUseDef.c index 19d39ff..ba3f817 100644 --- a/compiler_and_linker/unsorted/IROUseDef.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IROUseDef.c @@ -1,12 +1,12 @@ -#include "compiler/IROUseDef.h" -#include "compiler/IRODump.h" -#include "compiler/IROVars.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroMalloc.h" -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroTransform.h" -#include "compiler/IroUtil.h" +#include "IROUseDef.h" +#include "IroDump.h" +#include "IroVars.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroMalloc.h" +#include "IroPointerAnalysis.h" +#include "IroTransform.h" +#include "IroUtil.h" #include "compiler/CompilerTools.h" #include "compiler/CError.h" #include "compiler/CFunc.h" diff --git a/includes/compiler/IROUseDef.h b/compiler_and_linker/FrontEnd/Optimizer/IROUseDef.h similarity index 93% rename from includes/compiler/IROUseDef.h rename to compiler_and_linker/FrontEnd/Optimizer/IROUseDef.h index 829a396..03d3f9b 100644 --- a/includes/compiler/IROUseDef.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IROUseDef.h @@ -1,8 +1,8 @@ #ifndef COMPILER_IROUSEDEF_H #define COMPILER_IROUSEDEF_H -#include "compiler/IrOptimizer.h" -#include "compiler/BitVector.h" +#include "IrOptimizer.h" +#include "BitVector.h" #include "compiler/enode.h" #ifdef __MWERKS__ diff --git a/compiler_and_linker/unsorted/IrOptimizer.c b/compiler_and_linker/FrontEnd/Optimizer/IrOptimizer.c similarity index 94% rename from compiler_and_linker/unsorted/IrOptimizer.c rename to compiler_and_linker/FrontEnd/Optimizer/IrOptimizer.c index c9544a2..59bb368 100644 --- a/compiler_and_linker/unsorted/IrOptimizer.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IrOptimizer.c @@ -1,26 +1,26 @@ -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" #include "compiler/CError.h" #include "compiler/CParser.h" #include "compiler/InlineAsmPPC.h" -#include "compiler/IroCSE.h" -#include "compiler/IroDump.h" -#include "compiler/IroEval.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroSubable.h" -#include "compiler/IroTransform.h" -#include "compiler/IROUseDef.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroCSE.h" +#include "IroDump.h" +#include "IroEval.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroSubable.h" +#include "IroTransform.h" +#include "IROUseDef.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/objects.h" -#include "compiler/IroPropagate.h" -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroJump.h" -#include "compiler/IroRangePropagation.h" -#include "compiler/IroEmptyLoop.h" -#include "compiler/IroUnrollLoop.h" -#include "compiler/IroLoop.h" -#include "compiler/IroExprRegeneration.h" +#include "IroPropagate.h" +#include "IroPointerAnalysis.h" +#include "IroJump.h" +#include "IroRangePropagation.h" +#include "IroEmptyLoop.h" +#include "IroUnrollLoop.h" +#include "IroLoop.h" +#include "IroExprRegeneration.h" Boolean DoScalarize; Boolean DoLinearize; diff --git a/includes/compiler/IrOptimizer.h b/compiler_and_linker/FrontEnd/Optimizer/IrOptimizer.h similarity index 100% rename from includes/compiler/IrOptimizer.h rename to compiler_and_linker/FrontEnd/Optimizer/IrOptimizer.h diff --git a/compiler_and_linker/unsorted/IroBitVect.c b/compiler_and_linker/FrontEnd/Optimizer/IroBitVect.c similarity index 98% rename from compiler_and_linker/unsorted/IroBitVect.c rename to compiler_and_linker/FrontEnd/Optimizer/IroBitVect.c index 29bc28a..873b1ca 100644 --- a/compiler_and_linker/unsorted/IroBitVect.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroBitVect.c @@ -1,4 +1,4 @@ -#include "compiler/BitVector.h" +#include "BitVector.h" #include "compiler/CompilerTools.h" void Bv_AllocVector(BitVector **bv, UInt32 size) { diff --git a/compiler_and_linker/unsorted/IroCSE.c b/compiler_and_linker/FrontEnd/Optimizer/IroCSE.c similarity index 99% rename from compiler_and_linker/unsorted/IroCSE.c rename to compiler_and_linker/FrontEnd/Optimizer/IroCSE.c index 5fa9849..7bc4866 100644 --- a/compiler_and_linker/unsorted/IroCSE.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroCSE.c @@ -1,13 +1,13 @@ -#include "compiler/IroCSE.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroMalloc.h" -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroSubable.h" -#include "compiler/IROUseDef.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroCSE.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroMalloc.h" +#include "IroPointerAnalysis.h" +#include "IroSubable.h" +#include "IROUseDef.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CError.h" #include "compiler/CExpr.h" #include "compiler/CInt64.h" diff --git a/includes/compiler/IroCSE.h b/compiler_and_linker/FrontEnd/Optimizer/IroCSE.h similarity index 93% rename from includes/compiler/IroCSE.h rename to compiler_and_linker/FrontEnd/Optimizer/IroCSE.h index 4bf127c..c1e166c 100644 --- a/includes/compiler/IroCSE.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroCSE.h @@ -1,8 +1,8 @@ #ifndef COMPILER_IROCSE_H #define COMPILER_IROCSE_H -#include "compiler/IrOptimizer.h" -#include "compiler/BitVector.h" +#include "IrOptimizer.h" +#include "BitVector.h" #ifdef __MWERKS__ #pragma options align=mac68k diff --git a/compiler_and_linker/unsorted/IroDump.c b/compiler_and_linker/FrontEnd/Optimizer/IroDump.c similarity index 98% rename from compiler_and_linker/unsorted/IroDump.c rename to compiler_and_linker/FrontEnd/Optimizer/IroDump.c index e7ca940..d21496f 100644 --- a/compiler_and_linker/unsorted/IroDump.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroDump.c @@ -1,14 +1,14 @@ -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroPropagate.h" -#include "compiler/IroUtil.h" +#include "IroDump.h" +#include "IroCSE.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroPropagate.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CFunc.h" #include "compiler/CInt64.h" #include "compiler/CParser.h" #include "compiler/objects.h" -#include "compiler/IroVars.h" -#include "compiler/IroCSE.h" static FILE *DumpFile; static char *nodenames[MAXEXPR]; diff --git a/includes/compiler/IroDump.h b/compiler_and_linker/FrontEnd/Optimizer/IroDump.h similarity index 92% rename from includes/compiler/IroDump.h rename to compiler_and_linker/FrontEnd/Optimizer/IroDump.h index 5445280..ad8c039 100644 --- a/includes/compiler/IroDump.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroDump.h @@ -1,8 +1,8 @@ #ifndef COMPILER_IRODUMP_H #define COMPILER_IRODUMP_H -#include "compiler/IrOptimizer.h" -#include "compiler/BitVector.h" +#include "IrOptimizer.h" +#include "BitVector.h" #include "compiler/enode.h" extern char *IRO_NodeName(ENodeType nodetype); diff --git a/compiler_and_linker/unsorted/IroEmptyLoop.c b/compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.c similarity index 98% rename from compiler_and_linker/unsorted/IroEmptyLoop.c rename to compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.c index 1e319ab..23d5d4a 100644 --- a/compiler_and_linker/unsorted/IroEmptyLoop.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.c @@ -1,10 +1,10 @@ -#include "compiler/IroEmptyLoop.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroLoop.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroEmptyLoop.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroLoop.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CInt64.h" // forward decls diff --git a/includes/compiler/IroEmptyLoop.h b/compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.h similarity index 76% rename from includes/compiler/IroEmptyLoop.h rename to compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.h index 5268f18..c5597e6 100644 --- a/includes/compiler/IroEmptyLoop.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROEMPTYLOOP_H #define COMPILER_IROEMPTYLOOP_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern void IRO_FindEmptyLoops(void); diff --git a/compiler_and_linker/unsorted/IroEval.c b/compiler_and_linker/FrontEnd/Optimizer/IroEval.c similarity index 99% rename from compiler_and_linker/unsorted/IroEval.c rename to compiler_and_linker/FrontEnd/Optimizer/IroEval.c index adf74b8..aba64e1 100644 --- a/compiler_and_linker/unsorted/IroEval.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroEval.c @@ -1,13 +1,13 @@ -#include "compiler/IroEval.h" +#include "IroEval.h" #include "compiler/CInt64.h" #include "compiler/CMachine.h" #include "compiler/CParser.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroMalloc.h" -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroMalloc.h" +#include "IroPointerAnalysis.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/enode.h" #include "compiler/objects.h" #include "compiler/types.h" diff --git a/includes/compiler/IroEval.h b/compiler_and_linker/FrontEnd/Optimizer/IroEval.h similarity index 93% rename from includes/compiler/IroEval.h rename to compiler_and_linker/FrontEnd/Optimizer/IroEval.h index a011a47..3b91f21 100644 --- a/includes/compiler/IroEval.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroEval.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROEVAL_H #define COMPILER_IROEVAL_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern void IRO_InitializeIsAssociativeENodeTypeArray(void); extern void IRO_TruncateValueToType(CInt64 *val, Type *type); diff --git a/compiler_and_linker/unsorted/IroExprRegeneration.c b/compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.c similarity index 99% rename from compiler_and_linker/unsorted/IroExprRegeneration.c rename to compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.c index f63622a..c56beae 100644 --- a/compiler_and_linker/unsorted/IroExprRegeneration.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.c @@ -1,13 +1,13 @@ -#include "compiler/IroExprRegeneration.h" -#include "compiler/IroCSE.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroSubable.h" -#include "compiler/IroTransform.h" -#include "compiler/IROUseDef.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroExprRegeneration.h" +#include "IroCSE.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroSubable.h" +#include "IroTransform.h" +#include "IROUseDef.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CDecl.h" #include "compiler/CExpr.h" #include "compiler/CFunc.h" diff --git a/includes/compiler/IroExprRegeneration.h b/compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.h similarity index 79% rename from includes/compiler/IroExprRegeneration.h rename to compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.h index aa43501..c74f95f 100644 --- a/includes/compiler/IroExprRegeneration.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROEXPRREGENERATION_H #define COMPILER_IROEXPRREGENERATION_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern void IRO_RegenerateExpressions(void); diff --git a/compiler_and_linker/unsorted/IroFlowgraph.c b/compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.c similarity index 98% rename from compiler_and_linker/unsorted/IroFlowgraph.c rename to compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.c index 5c9c840..2fa9875 100644 --- a/compiler_and_linker/unsorted/IroFlowgraph.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.c @@ -1,9 +1,9 @@ -#include "compiler/IroFlowgraph.h" -#include "compiler/IroCSE.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroPropagate.h" -#include "compiler/IROUseDef.h" -#include "compiler/IroUtil.h" +#include "IroFlowgraph.h" +#include "IroCSE.h" +#include "IroLinearForm.h" +#include "IroPropagate.h" +#include "IROUseDef.h" +#include "IroUtil.h" #include "compiler/CError.h" #include "compiler/CFunc.h" #include "compiler/CompilerTools.h" diff --git a/includes/compiler/IroFlowgraph.h b/compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.h similarity index 97% rename from includes/compiler/IroFlowgraph.h rename to compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.h index 90e696c..13ddce9 100644 --- a/includes/compiler/IroFlowgraph.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.h @@ -1,8 +1,8 @@ #ifndef COMPILER_IROFLOWGRAPH_H #define COMPILER_IROFLOWGRAPH_H -#include "compiler/IrOptimizer.h" -#include "compiler/BitVector.h" +#include "IrOptimizer.h" +#include "BitVector.h" #include "compiler/CError.h" #include "compiler/CompilerTools.h" diff --git a/compiler_and_linker/unsorted/IroJump.c b/compiler_and_linker/FrontEnd/Optimizer/IroJump.c similarity index 98% rename from compiler_and_linker/unsorted/IroJump.c rename to compiler_and_linker/FrontEnd/Optimizer/IroJump.c index e39e3f0..9af248e 100644 --- a/compiler_and_linker/unsorted/IroJump.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroJump.c @@ -1,8 +1,8 @@ -#include "compiler/IroJump.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroUtil.h" +#include "IroJump.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroUtil.h" #include "compiler/CFunc.h" #include "compiler/Exceptions.h" diff --git a/includes/compiler/IroJump.h b/compiler_and_linker/FrontEnd/Optimizer/IroJump.h similarity index 89% rename from includes/compiler/IroJump.h rename to compiler_and_linker/FrontEnd/Optimizer/IroJump.h index bbb5594..62b7be6 100644 --- a/includes/compiler/IroJump.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroJump.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROJUMP_H #define COMPILER_IROJUMP_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern Boolean IRO_DoJumpChaining(void); extern void IRO_MakeReachable(IRONode *node); diff --git a/compiler_and_linker/unsorted/IroLinearForm.c b/compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.c similarity index 99% rename from compiler_and_linker/unsorted/IroLinearForm.c rename to compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.c index 4941587..8c5b0d8 100644 --- a/compiler_and_linker/unsorted/IroLinearForm.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.c @@ -1,8 +1,8 @@ -#include "compiler/IroLinearForm.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroLinearForm.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CError.h" #include "compiler/CExpr.h" #include "compiler/CFunc.h" diff --git a/includes/compiler/IroLinearForm.h b/compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.h similarity index 99% rename from includes/compiler/IroLinearForm.h rename to compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.h index 1e7df4f..c0b2d17 100644 --- a/includes/compiler/IroLinearForm.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROLINEARFORM_H #define COMPILER_IROLINEARFORM_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" #include "compiler/Switch.h" #include "compiler/enode.h" diff --git a/compiler_and_linker/unsorted/IroLoop.c b/compiler_and_linker/FrontEnd/Optimizer/IroLoop.c similarity index 99% rename from compiler_and_linker/unsorted/IroLoop.c rename to compiler_and_linker/FrontEnd/Optimizer/IroLoop.c index d6ec5f0..850146d 100644 --- a/compiler_and_linker/unsorted/IroLoop.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroLoop.c @@ -1,12 +1,12 @@ -#include "compiler/IroLoop.h" -#include "compiler/IroCSE.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroPropagate.h" -#include "compiler/IroSubable.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroLoop.h" +#include "IroCSE.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroPropagate.h" +#include "IroSubable.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CFunc.h" #include "compiler/CInt64.h" #include "compiler/CMachine.h" diff --git a/includes/compiler/IroLoop.h b/compiler_and_linker/FrontEnd/Optimizer/IroLoop.h similarity index 97% rename from includes/compiler/IroLoop.h rename to compiler_and_linker/FrontEnd/Optimizer/IroLoop.h index 0c60589..2d968ad 100644 --- a/includes/compiler/IroLoop.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroLoop.h @@ -1,8 +1,8 @@ #ifndef COMPILER_IROLOOP_H #define COMPILER_IROLOOP_H -#include "compiler/IrOptimizer.h" -#include "compiler/BitVector.h" +#include "IrOptimizer.h" +#include "BitVector.h" typedef enum IROLoopIndFlags { LoopInd_HasMod = 1, diff --git a/compiler_and_linker/unsorted/IroMalloc.c b/compiler_and_linker/FrontEnd/Optimizer/IroMalloc.c similarity index 99% rename from compiler_and_linker/unsorted/IroMalloc.c rename to compiler_and_linker/FrontEnd/Optimizer/IroMalloc.c index 8928ba9..1f15cad 100644 --- a/compiler_and_linker/unsorted/IroMalloc.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroMalloc.c @@ -1,4 +1,4 @@ -#include "compiler/IroMalloc.h" +#include "IroMalloc.h" #include "compiler/CompilerTools.h" #define FLAGMASK 0xF diff --git a/includes/compiler/IroMalloc.h b/compiler_and_linker/FrontEnd/Optimizer/IroMalloc.h similarity index 92% rename from includes/compiler/IroMalloc.h rename to compiler_and_linker/FrontEnd/Optimizer/IroMalloc.h index f203a3d..7700280 100644 --- a/includes/compiler/IroMalloc.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroMalloc.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROMALLOC_H #define COMPILER_IROMALLOC_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern size_t IRO_msize(void *buf); extern void *IRO_malloc(size_t size); diff --git a/compiler_and_linker/unsorted/IroPointerAnalysis.c b/compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.c similarity index 99% rename from compiler_and_linker/unsorted/IroPointerAnalysis.c rename to compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.c index 4fcb8d3..3f8989f 100644 --- a/compiler_and_linker/unsorted/IroPointerAnalysis.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.c @@ -1,10 +1,10 @@ -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroEval.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroMalloc.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroPointerAnalysis.h" +#include "IroEval.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroMalloc.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CDecl.h" #include "compiler/CExpr.h" #include "compiler/CFunc.h" @@ -17,7 +17,7 @@ #include "compiler/CompilerTools.h" #include "compiler/objects.h" #include "compiler/scopes.h" -#include "compiler_and_linker/unsorted/IroPointerAnalysisADTs.c" +#include "IroPointerAnalysisADTs.c" // forward decls static Object *GetLocalObject(PALocalVar *local, Object *proc, Boolean flag); diff --git a/includes/compiler/IroPointerAnalysis.h b/compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.h similarity index 98% rename from includes/compiler/IroPointerAnalysis.h rename to compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.h index a6ed2c2..ec50eba 100644 --- a/includes/compiler/IroPointerAnalysis.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROPOINTERANALYSIS_H #define COMPILER_IROPOINTERANALYSIS_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern void PointerAnalysis_Setup(void); extern void PointerAnalysis_Cleanup(void); diff --git a/compiler_and_linker/unsorted/IroPointerAnalysisADTs.c b/compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysisADTs.c similarity index 99% rename from compiler_and_linker/unsorted/IroPointerAnalysisADTs.c rename to compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysisADTs.c index 6e24e6f..dad9501 100644 --- a/compiler_and_linker/unsorted/IroPointerAnalysisADTs.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysisADTs.c @@ -1,5 +1,5 @@ -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroMalloc.h" +#include "IroPointerAnalysis.h" +#include "IroMalloc.h" #include "compiler/CError.h" #include "compiler/CInt64.h" #include "compiler/CParser.h" diff --git a/compiler_and_linker/unsorted/IroPropagate.c b/compiler_and_linker/FrontEnd/Optimizer/IroPropagate.c similarity index 98% rename from compiler_and_linker/unsorted/IroPropagate.c rename to compiler_and_linker/FrontEnd/Optimizer/IroPropagate.c index 401250c..c5ad708 100644 --- a/compiler_and_linker/unsorted/IroPropagate.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroPropagate.c @@ -1,12 +1,12 @@ -#include "compiler/IroPropagate.h" -#include "compiler/IroCSE.h" -#include "compiler/IroDump.h" -#include "compiler/IroEval.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IROUseDef.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroPropagate.h" +#include "IroCSE.h" +#include "IroDump.h" +#include "IroEval.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IROUseDef.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/objects.h" #include "compiler/CExpr.h" #include "compiler/CompilerTools.h" diff --git a/includes/compiler/IroPropagate.h b/compiler_and_linker/FrontEnd/Optimizer/IroPropagate.h similarity index 90% rename from includes/compiler/IroPropagate.h rename to compiler_and_linker/FrontEnd/Optimizer/IroPropagate.h index a61e526..ff9fadb 100644 --- a/includes/compiler/IroPropagate.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroPropagate.h @@ -1,8 +1,8 @@ #ifndef COMPILER_IROPROPAGATE_H #define COMPILER_IROPROPAGATE_H -#include "compiler/IrOptimizer.h" -#include "compiler/BitVector.h" +#include "IrOptimizer.h" +#include "BitVector.h" #ifdef __MWERKS__ #pragma options align=mac68k diff --git a/compiler_and_linker/unsorted/IroRangePropagation.c b/compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.c similarity index 99% rename from compiler_and_linker/unsorted/IroRangePropagation.c rename to compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.c index d15ef86..737035f 100644 --- a/compiler_and_linker/unsorted/IroRangePropagation.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.c @@ -1,11 +1,11 @@ -#include "compiler/IroRangePropagation.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroMalloc.h" -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroRangePropagation.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroMalloc.h" +#include "IroPointerAnalysis.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/CInt64.h" #include "compiler/objects.h" #include "compiler/types.h" diff --git a/includes/compiler/IroRangePropagation.h b/compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.h similarity index 80% rename from includes/compiler/IroRangePropagation.h rename to compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.h index fea6542..96888ac 100644 --- a/includes/compiler/IroRangePropagation.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IRORANGEPROPAGATION_H #define COMPILER_IRORANGEPROPAGATION_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern Boolean IRO_RangePropagateInFNode(void); diff --git a/compiler_and_linker/unsorted/IroSubable.c b/compiler_and_linker/FrontEnd/Optimizer/IroSubable.c similarity index 97% rename from compiler_and_linker/unsorted/IroSubable.c rename to compiler_and_linker/FrontEnd/Optimizer/IroSubable.c index 6b8daf0..513ac6c 100644 --- a/compiler_and_linker/unsorted/IroSubable.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroSubable.c @@ -1,7 +1,7 @@ -#include "compiler/IroSubable.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroPropagate.h" -#include "compiler/IroUtil.h" +#include "IroSubable.h" +#include "IroLinearForm.h" +#include "IroPropagate.h" +#include "IroUtil.h" #include "compiler/enode.h" #include "compiler/objects.h" #include "compiler/types.h" diff --git a/includes/compiler/IroSubable.h b/compiler_and_linker/FrontEnd/Optimizer/IroSubable.h similarity index 87% rename from includes/compiler/IroSubable.h rename to compiler_and_linker/FrontEnd/Optimizer/IroSubable.h index 7a3c344..db5f860 100644 --- a/includes/compiler/IroSubable.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroSubable.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROSUBABLE_H #define COMPILER_IROSUBABLE_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern void IRO_InitializeIsSubableOpArray(void); extern Boolean IRO_IsSubableExpression(IROLinear *nd); diff --git a/compiler_and_linker/unsorted/IroTransform.c b/compiler_and_linker/FrontEnd/Optimizer/IroTransform.c similarity index 99% rename from compiler_and_linker/unsorted/IroTransform.c rename to compiler_and_linker/FrontEnd/Optimizer/IroTransform.c index 54f3302..8a4af16 100644 --- a/compiler_and_linker/unsorted/IroTransform.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroTransform.c @@ -1,4 +1,4 @@ -#include "compiler/IroTransform.h" +#include "IroTransform.h" #include "compiler/CError.h" #include "compiler/CFunc.h" #include "compiler/CInt64.h" @@ -6,13 +6,13 @@ #include "compiler/CMachine.h" #include "compiler/CPrep.h" #include "compiler/CompilerTools.h" -#include "compiler/IroDump.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroMalloc.h" -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IROUseDef.h" -#include "compiler/IroUtil.h" -#include "compiler/IroVars.h" +#include "IroDump.h" +#include "IroLinearForm.h" +#include "IroMalloc.h" +#include "IroPointerAnalysis.h" +#include "IROUseDef.h" +#include "IroUtil.h" +#include "IroVars.h" #include "compiler/enode.h" #include "compiler/types.h" diff --git a/includes/compiler/IroTransform.h b/compiler_and_linker/FrontEnd/Optimizer/IroTransform.h similarity index 92% rename from includes/compiler/IroTransform.h rename to compiler_and_linker/FrontEnd/Optimizer/IroTransform.h index 90bcf30..104657f 100644 --- a/includes/compiler/IroTransform.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroTransform.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROTRANSFORM_H #define COMPILER_IROTRANSFORM_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" extern void IRO_InitializeAssignmentOpArray(void); extern void IRO_InitializeComplementaryOpArray(void); diff --git a/compiler_and_linker/unsorted/IroUnrollLoop.c b/compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.c similarity index 99% rename from compiler_and_linker/unsorted/IroUnrollLoop.c rename to compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.c index 45b774e..cf3f1bf 100644 --- a/compiler_and_linker/unsorted/IroUnrollLoop.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.c @@ -1,12 +1,12 @@ -#include "compiler/IroUnrollLoop.h" +#include "IroUnrollLoop.h" #include "compiler/CError.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroUtil.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroUtil.h" #include "compiler/LoopDetection.h" -#include "compiler/IroLoop.h" -#include "compiler/IroDump.h" -#include "compiler/IroVars.h" +#include "IroLoop.h" +#include "IroDump.h" +#include "IroVars.h" #include "compiler/CFunc.h" #include "compiler/CMachine.h" diff --git a/includes/compiler/IroUnrollLoop.h b/compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.h similarity index 95% rename from includes/compiler/IroUnrollLoop.h rename to compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.h index 8a51a9b..fd4972b 100644 --- a/includes/compiler/IroUnrollLoop.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.h @@ -1,8 +1,8 @@ #ifndef COMPILER_IROUNROLLLOOP_H #define COMPILER_IROUNROLLLOOP_H -#include "compiler/IrOptimizer.h" -#include "compiler/IroLinearForm.h" +#include "IrOptimizer.h" +#include "IroLinearForm.h" extern void IRO_LoopUnroller(void); extern void IRO_IterateForLoopBody(IRONode *start, IRONode *end, IROLoop *loop, IROLinear *destnode, SInt32 addConst, CInt64 *val, Boolean funkyFlag); diff --git a/compiler_and_linker/unsorted/IroUtil.c b/compiler_and_linker/FrontEnd/Optimizer/IroUtil.c similarity index 99% rename from compiler_and_linker/unsorted/IroUtil.c rename to compiler_and_linker/FrontEnd/Optimizer/IroUtil.c index 4ade9b1..7e6321d 100644 --- a/compiler_and_linker/unsorted/IroUtil.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroUtil.c @@ -1,10 +1,10 @@ -#include "compiler/IroUtil.h" -#include "compiler/IroCSE.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroLoop.h" -#include "compiler/IroVars.h" +#include "IroUtil.h" +#include "IroCSE.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroLinearForm.h" +#include "IroLoop.h" +#include "IroVars.h" #include "compiler/InlineAsmPPC.h" #include "compiler/CompilerTools.h" #include "compiler/CCompiler.h" diff --git a/includes/compiler/IroUtil.h b/compiler_and_linker/FrontEnd/Optimizer/IroUtil.h similarity index 99% rename from includes/compiler/IroUtil.h rename to compiler_and_linker/FrontEnd/Optimizer/IroUtil.h index a757025..2661985 100644 --- a/includes/compiler/IroUtil.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroUtil.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROUTIL_H #define COMPILER_IROUTIL_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" #include "compiler/CInt64.h" #include "compiler/CParser.h" diff --git a/compiler_and_linker/unsorted/IroVars.c b/compiler_and_linker/FrontEnd/Optimizer/IroVars.c similarity index 99% rename from compiler_and_linker/unsorted/IroVars.c rename to compiler_and_linker/FrontEnd/Optimizer/IroVars.c index 6bb3d02..b72ba89 100644 --- a/compiler_and_linker/unsorted/IroVars.c +++ b/compiler_and_linker/FrontEnd/Optimizer/IroVars.c @@ -1,12 +1,12 @@ -#include "compiler/IroVars.h" -#include "compiler/IroDump.h" -#include "compiler/IroFlowgraph.h" -#include "compiler/IroJump.h" -#include "compiler/IroLinearForm.h" -#include "compiler/IroMalloc.h" -#include "compiler/IroPointerAnalysis.h" -#include "compiler/IroUtil.h" -#include "compiler/IROUseDef.h" +#include "IroVars.h" +#include "IroDump.h" +#include "IroFlowgraph.h" +#include "IroJump.h" +#include "IroLinearForm.h" +#include "IroMalloc.h" +#include "IroPointerAnalysis.h" +#include "IroUtil.h" +#include "IROUseDef.h" #include "compiler/CClass.h" #include "compiler/CError.h" #include "compiler/CExpr.h" @@ -17,7 +17,7 @@ #include "compiler/objects.h" #include "compiler/InlineAsm.h" #include "compiler/InlineAsmPPC.h" -#include "compiler/BitVector.h" +#include "BitVector.h" #ifdef __MWERKS__ #pragma options align=mac68k diff --git a/includes/compiler/IroVars.h b/compiler_and_linker/FrontEnd/Optimizer/IroVars.h similarity index 97% rename from includes/compiler/IroVars.h rename to compiler_and_linker/FrontEnd/Optimizer/IroVars.h index 9df9ae5..2af5b4d 100644 --- a/includes/compiler/IroVars.h +++ b/compiler_and_linker/FrontEnd/Optimizer/IroVars.h @@ -1,7 +1,7 @@ #ifndef COMPILER_IROVARS_H #define COMPILER_IROVARS_H -#include "compiler/IrOptimizer.h" +#include "IrOptimizer.h" #include "compiler/enode.h" #ifdef __MWERKS__ diff --git a/compiler_and_linker/unsorted/CCompiler.c b/compiler_and_linker/unsorted/CCompiler.c index 1eb6cd0..ed57c25 100644 --- a/compiler_and_linker/unsorted/CCompiler.c +++ b/compiler_and_linker/unsorted/CCompiler.c @@ -4,7 +4,7 @@ #include "compiler/CompilerTools.h" #include "compiler/CodeGen.h" #include "compiler/CodeGenOptPPC.h" -#include "compiler/IrOptimizer.h" +#include "../FrontEnd/Optimizer/IrOptimizer.h" #include "compiler/types.h" #include "pref_structs.h" diff --git a/compiler_and_linker/unsorted/uDump.c b/compiler_and_linker/unsorted/DumpIR.c similarity index 99% rename from compiler_and_linker/unsorted/uDump.c rename to compiler_and_linker/unsorted/DumpIR.c index 89574a5..5f6eea4 100644 --- a/compiler_and_linker/unsorted/uDump.c +++ b/compiler_and_linker/unsorted/DumpIR.c @@ -1,4 +1,4 @@ -#include "compiler/uDump.h" +#include "compiler/DumpIR.h" #include "compiler/CFunc.h" #include "compiler/CInt64.h" #include "compiler/CMachine.h" diff --git a/compiler_and_linker/unsorted/ObjGenMachO.c b/compiler_and_linker/unsorted/ObjGenMachO.c index 072824a..f6f6216 100644 --- a/compiler_and_linker/unsorted/ObjGenMachO.c +++ b/compiler_and_linker/unsorted/ObjGenMachO.c @@ -7,9 +7,9 @@ #include "compiler/CParser.h" #include "compiler/CodeGen.h" #include "compiler/CompilerTools.h" -#include "compiler/uDump.h" +#include "compiler/DumpIR.h" #include "compiler/GenStabs.h" -#include "compiler/IrOptimizer.h" +#include "../FrontEnd/Optimizer/IrOptimizer.h" #include "compiler/MachO.h" #include "compiler/PCodeListing.h" #include "compiler/TOC.h" diff --git a/includes/compiler/uDump.h b/includes/compiler/DumpIR.h similarity index 100% rename from includes/compiler/uDump.h rename to includes/compiler/DumpIR.h diff --git a/includes/compiler/LoopDetection.h b/includes/compiler/LoopDetection.h index 5d9a729..42447be 100644 --- a/includes/compiler/LoopDetection.h +++ b/includes/compiler/LoopDetection.h @@ -2,7 +2,7 @@ #define COMPILER_LOOPDETECTION_H #include "compiler/common.h" -#include "compiler/BitVector.h" +#include "../../compiler_and_linker/FrontEnd/Optimizer/BitVector.h" #ifdef __MWERKS__ #pragma options align=mac68k diff --git a/osx_build.sh b/osx_build.sh index 56d31c2..d31c88f 100755 --- a/osx_build.sh +++ b/osx_build.sh @@ -3,7 +3,7 @@ export MWCIncludes=/usr/include #rm objs/* -MWC_FLAGS="-c -g -opt l=4,noschedule,speed -enum min -Iincludes -Isdk_hdrs -w all,nounused,nonotinlined -wchar_t on -bool off -Cpp_exceptions off -maxwarnings 10" +MWC_FLAGS="-c -g -DCW_CLT -DCW_TARGET_MACH -opt l=4,noschedule,speed -enum min -cwd include -Iincludes -Isdk_hdrs -w all,nounused,nonotinlined -wchar_t on -bool off -Cpp_exceptions off -maxwarnings 10" # CmdLine ~/bin/mwccppc $MWC_FLAGS -o objs/CLCompilerLinkerDropin_V10.o command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp @@ -63,123 +63,131 @@ MWC_FLAGS="-c -g -opt l=4,noschedule,speed -enum min -Iincludes -Isdk_hdrs -w al ~/bin/mwccppc $MWC_FLAGS -o objs/cc-mach-ppc-mw.o compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Static/cc-mach-ppc-mw.c +~/bin/mwccppc $MWC_FLAGS -o objs/CodeGen.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/CodeGen.c +~/bin/mwccppc $MWC_FLAGS -o objs/Exceptions.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Exceptions.c +~/bin/mwccppc $MWC_FLAGS -o objs/FunctionCalls.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/FunctionCalls.c +~/bin/mwccppc $MWC_FLAGS -o objs/InstrSelection.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/InstrSelection.c +~/bin/mwccppc $MWC_FLAGS -o objs/Intrinsics.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Intrinsics.c +~/bin/mwccppc $MWC_FLAGS -o objs/Operands.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Operands.c +~/bin/mwccppc $MWC_FLAGS -o objs/PCodeAssembly.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeAssembly.c +~/bin/mwccppc $MWC_FLAGS -o objs/PCodeListing.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeListing.c +~/bin/mwccppc $MWC_FLAGS -o objs/PCodeUtilities.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/PCodeUtilities.c +~/bin/mwccppc $MWC_FLAGS -o objs/Peephole.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Peephole.c +~/bin/mwccppc $MWC_FLAGS -o objs/StackFrame.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StackFrame.c +~/bin/mwccppc $MWC_FLAGS -o objs/StructMoves.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/StructMoves.c +~/bin/mwccppc $MWC_FLAGS -o objs/Switch.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/Switch.c +~/bin/mwccppc $MWC_FLAGS -o objs/TOC.o compiler_and_linker/BackEnd/PowerPC/CodeGenerator/TOC.c + +~/bin/mwccppc $MWC_FLAGS -o objs/Alias.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/Alias.c +~/bin/mwccppc $MWC_FLAGS -o objs/CodeMotion.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/CodeMotion.c +~/bin/mwccppc $MWC_FLAGS -o objs/ConstantPropagation.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ConstantPropagation.c +~/bin/mwccppc $MWC_FLAGS -o objs/LoopDetection.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopDetection.c +~/bin/mwccppc $MWC_FLAGS -o objs/LoopOptimization.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/LoopOptimization.c +~/bin/mwccppc $MWC_FLAGS -o objs/StrengthReduction.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/StrengthReduction.c +~/bin/mwccppc $MWC_FLAGS -o objs/ValueNumbering.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/ValueNumbering.c +~/bin/mwccppc $MWC_FLAGS -o objs/VectorArraysToRegs.o compiler_and_linker/BackEnd/PowerPC/GlobalOptimizer/VectorArraysToRegs.c + +~/bin/mwccppc $MWC_FLAGS -o objs/FuncLevelAsmPPC.o compiler_and_linker/BackEnd/PowerPC/InlineAssembler/FuncLevelAsmPPC.c +~/bin/mwccppc $MWC_FLAGS -o objs/GCCInlineAsm.o compiler_and_linker/BackEnd/PowerPC/InlineAssembler/GCCInlineAsm.c +~/bin/mwccppc $MWC_FLAGS -o objs/InlineAsm.o compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsm.c +~/bin/mwccppc $MWC_FLAGS -o objs/InlineAsmPPC.o compiler_and_linker/BackEnd/PowerPC/InlineAssembler/InlineAsmPPC.c + +~/bin/mwccppc $MWC_FLAGS -o objs/PCodeInfo.o compiler_and_linker/BackEnd/PowerPC/PCode/PCodeInfo.c + +~/bin/mwccppc $MWC_FLAGS -o objs/Coloring.o compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/Coloring.c +~/bin/mwccppc $MWC_FLAGS -o objs/InterferenceGraph.o compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/InterferenceGraph.c +~/bin/mwccppc $MWC_FLAGS -o objs/RegisterInfo.o compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/RegisterInfo.c +~/bin/mwccppc $MWC_FLAGS -o objs/SpillCode.o compiler_and_linker/BackEnd/PowerPC/RegisterAllocator/SpillCode.c + +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation601.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation601.c +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation603.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603.c +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation603e.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation603e.c +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation604.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation604.c +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation7400.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation7400.c +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation750.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation750.c +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation821.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulation821.c +~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulationAltiVec.o compiler_and_linker/BackEnd/PowerPC/Scheduler/MachineSimulationAltiVec.c +~/bin/mwccppc $MWC_FLAGS -o objs/Scheduler.o compiler_and_linker/BackEnd/PowerPC/Scheduler/Scheduler.c + +~/bin/mwccppc $MWC_FLAGS -o objs/CMachine.o compiler_and_linker/BackEnd/PowerPC/CMachine.c +~/bin/mwccppc $MWC_FLAGS -o objs/PPCError.o compiler_and_linker/BackEnd/PowerPC/PPCError.c + +~/bin/mwccppc $MWC_FLAGS -o objs/CABI.o compiler_and_linker/FrontEnd/C/CABI.c +~/bin/mwccppc $MWC_FLAGS -o objs/CBrowse.o compiler_and_linker/FrontEnd/C/CBrowse.c +~/bin/mwccppc $MWC_FLAGS -o objs/CClass.o compiler_and_linker/FrontEnd/C/CClass.c +~/bin/mwccppc $MWC_FLAGS -o objs/CDecl.o compiler_and_linker/FrontEnd/C/CDecl.c +~/bin/mwccppc $MWC_FLAGS -o objs/CError.o compiler_and_linker/FrontEnd/C/CError.c +~/bin/mwccppc $MWC_FLAGS -o objs/CException.o compiler_and_linker/FrontEnd/C/CException.c +~/bin/mwccppc $MWC_FLAGS -o objs/CExpr.o compiler_and_linker/FrontEnd/C/CExpr.c +~/bin/mwccppc $MWC_FLAGS -o objs/CExpr2.o compiler_and_linker/FrontEnd/C/CExpr2.c +~/bin/mwccppc $MWC_FLAGS -o objs/CExprConvMatch.o compiler_and_linker/FrontEnd/C/CExprConvMatch.c +~/bin/mwccppc $MWC_FLAGS -o objs/CFunc.o compiler_and_linker/FrontEnd/C/CFunc.c +~/bin/mwccppc $MWC_FLAGS -o objs/CInit.o compiler_and_linker/FrontEnd/C/CInit.c +~/bin/mwccppc $MWC_FLAGS -o objs/CInline.o compiler_and_linker/FrontEnd/C/CInline.c +~/bin/mwccppc $MWC_FLAGS -o objs/CMangler.o compiler_and_linker/FrontEnd/C/CMangler.c +~/bin/mwccppc $MWC_FLAGS -o objs/CParser.o compiler_and_linker/FrontEnd/C/CParser.c +~/bin/mwccppc $MWC_FLAGS -o objs/CPrec.o compiler_and_linker/FrontEnd/C/CPrec.c ~/bin/mwccppc $MWC_FLAGS -o objs/CPrep.o compiler_and_linker/FrontEnd/C/CPrep.c +~/bin/mwccppc $MWC_FLAGS -o objs/CPreprocess.o compiler_and_linker/FrontEnd/C/CPreprocess.c ~/bin/mwccppc $MWC_FLAGS -o objs/CPrepTokenizer.o compiler_and_linker/FrontEnd/C/CPrepTokenizer.c +~/bin/mwccppc $MWC_FLAGS -o objs/CRTTI.o compiler_and_linker/FrontEnd/C/CRTTI.c ~/bin/mwccppc $MWC_FLAGS -o objs/CScope.o compiler_and_linker/FrontEnd/C/CScope.c +~/bin/mwccppc $MWC_FLAGS -o objs/CSOM.o compiler_and_linker/FrontEnd/C/CSOM.c +~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateClass.o compiler_and_linker/FrontEnd/C/CTemplateClass.c +~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateFunc.o compiler_and_linker/FrontEnd/C/CTemplateFunc.c +~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateNew.o compiler_and_linker/FrontEnd/C/CTemplateNew.c +~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateTools.o compiler_and_linker/FrontEnd/C/CTemplateTools.c ~/bin/mwccppc $MWC_FLAGS -o objs/CompilerTools.o compiler_and_linker/FrontEnd/Common/CompilerTools.c +~/bin/mwccppc $MWC_FLAGS -o objs/CIRTransform.o compiler_and_linker/FrontEnd/Common/CIRTransform.c +~/bin/mwccppc $MWC_FLAGS -o objs/COptimizer.o compiler_and_linker/FrontEnd/Common/COptimizer.c + +~/bin/mwccppc $MWC_FLAGS -o objs/IroBitVect.o compiler_and_linker/FrontEnd/Optimizer/IroBitVect.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroCSE.o compiler_and_linker/FrontEnd/Optimizer/IroCSE.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroDump.o compiler_and_linker/FrontEnd/Optimizer/IroDump.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroEmptyLoop.o compiler_and_linker/FrontEnd/Optimizer/IroEmptyLoop.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroEval.o compiler_and_linker/FrontEnd/Optimizer/IroEval.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroExprRegeneration.o compiler_and_linker/FrontEnd/Optimizer/IroExprRegeneration.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroFlowgraph.o compiler_and_linker/FrontEnd/Optimizer/IroFlowgraph.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroJump.o compiler_and_linker/FrontEnd/Optimizer/IroJump.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroLinearForm.o compiler_and_linker/FrontEnd/Optimizer/IroLinearForm.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroLoop.o compiler_and_linker/FrontEnd/Optimizer/IroLoop.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroMalloc.o compiler_and_linker/FrontEnd/Optimizer/IroMalloc.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroPointerAnalysis.o compiler_and_linker/FrontEnd/Optimizer/IroPointerAnalysis.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroPropagate.o compiler_and_linker/FrontEnd/Optimizer/IroPropagate.c +~/bin/mwccppc $MWC_FLAGS -o objs/IrOptimizer.o compiler_and_linker/FrontEnd/Optimizer/IrOptimizer.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroRangePropagation.o compiler_and_linker/FrontEnd/Optimizer/IroRangePropagation.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroSubable.o compiler_and_linker/FrontEnd/Optimizer/IroSubable.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroTransform.o compiler_and_linker/FrontEnd/Optimizer/IroTransform.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroUnrollLoop.o compiler_and_linker/FrontEnd/Optimizer/IroUnrollLoop.c +~/bin/mwccppc $MWC_FLAGS -o objs/IROUseDef.o compiler_and_linker/FrontEnd/Optimizer/IROUseDef.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroUtil.o compiler_and_linker/FrontEnd/Optimizer/IroUtil.c +~/bin/mwccppc $MWC_FLAGS -o objs/IroVars.o compiler_and_linker/FrontEnd/Optimizer/IroVars.c ~/bin/mwccppc $MWC_FLAGS -o objs/AddPropagation.o compiler_and_linker/unsorted/AddPropagation.c -~/bin/mwccppc $MWC_FLAGS -o objs/Alias.o compiler_and_linker/unsorted/Alias.c ~/bin/mwccppc $MWC_FLAGS -o objs/BitVectors.o compiler_and_linker/unsorted/BitVectors.c -~/bin/mwccppc $MWC_FLAGS -o objs/CABI.o compiler_and_linker/unsorted/CABI.c -~/bin/mwccppc $MWC_FLAGS -o objs/CBrowse.o compiler_and_linker/unsorted/CBrowse.c -~/bin/mwccppc $MWC_FLAGS -o objs/CClass.o compiler_and_linker/unsorted/CClass.c ~/bin/mwccppc $MWC_FLAGS -o objs/CCompiler.o compiler_and_linker/unsorted/CCompiler.c -~/bin/mwccppc $MWC_FLAGS -o objs/CDecl.o compiler_and_linker/unsorted/CDecl.c -~/bin/mwccppc $MWC_FLAGS -o objs/CError.o compiler_and_linker/unsorted/CError.c -~/bin/mwccppc $MWC_FLAGS -o objs/CException.o compiler_and_linker/unsorted/CException.c -~/bin/mwccppc $MWC_FLAGS -o objs/CExpr.o compiler_and_linker/unsorted/CExpr.c -~/bin/mwccppc $MWC_FLAGS -o objs/CExpr2.o compiler_and_linker/unsorted/CExpr2.c -~/bin/mwccppc $MWC_FLAGS -o objs/CExprConvMatch.o compiler_and_linker/unsorted/CExprConvMatch.c -~/bin/mwccppc $MWC_FLAGS -o objs/CFunc.o compiler_and_linker/unsorted/CFunc.c -~/bin/mwccppc $MWC_FLAGS -o objs/CInit.o compiler_and_linker/unsorted/CInit.c -~/bin/mwccppc $MWC_FLAGS -o objs/CInline.o compiler_and_linker/unsorted/CInline.c ~/bin/mwccppc $MWC_FLAGS -o objs/CInt64.o compiler_and_linker/unsorted/CInt64.c -~/bin/mwccppc $MWC_FLAGS -o objs/CIRTransform.o compiler_and_linker/unsorted/CIRTransform.c -~/bin/mwccppc $MWC_FLAGS -o objs/CMachine.o compiler_and_linker/unsorted/CMachine.c -~/bin/mwccppc $MWC_FLAGS -o objs/CMangler.o compiler_and_linker/unsorted/CMangler.c ~/bin/mwccppc $MWC_FLAGS -o objs/CObjC.o compiler_and_linker/unsorted/CObjC.c ~/bin/mwccppc $MWC_FLAGS -o objs/CObjCModern.o compiler_and_linker/unsorted/CObjCModern.c -~/bin/mwccppc $MWC_FLAGS -o objs/CodeGen.o compiler_and_linker/unsorted/CodeGen.c ~/bin/mwccppc $MWC_FLAGS -o objs/CodeGenOptPPC.o compiler_and_linker/unsorted/CodeGenOptPPC.c -~/bin/mwccppc $MWC_FLAGS -o objs/CodeMotion.o compiler_and_linker/unsorted/CodeMotion.c -~/bin/mwccppc $MWC_FLAGS -o objs/Coloring.o compiler_and_linker/unsorted/Coloring.c -~/bin/mwccppc $MWC_FLAGS -o objs/ConstantPropagation.o compiler_and_linker/unsorted/ConstantPropagation.c -~/bin/mwccppc $MWC_FLAGS -o objs/COptimizer.o compiler_and_linker/unsorted/COptimizer.c ~/bin/mwccppc $MWC_FLAGS -o objs/CopyPropagation.o compiler_and_linker/unsorted/CopyPropagation.c -~/bin/mwccppc $MWC_FLAGS -o objs/CParser.o compiler_and_linker/unsorted/CParser.c -~/bin/mwccppc $MWC_FLAGS -o objs/CPrec.o compiler_and_linker/unsorted/CPrec.c -~/bin/mwccppc $MWC_FLAGS -o objs/CPreprocess.o compiler_and_linker/unsorted/CPreprocess.c -~/bin/mwccppc $MWC_FLAGS -o objs/CRTTI.o compiler_and_linker/unsorted/CRTTI.c -~/bin/mwccppc $MWC_FLAGS -o objs/CSOM.o compiler_and_linker/unsorted/CSOM.c -~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateClass.o compiler_and_linker/unsorted/CTemplateClass.c -~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateFunc.o compiler_and_linker/unsorted/CTemplateFunc.c -~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateNew.o compiler_and_linker/unsorted/CTemplateNew.c -~/bin/mwccppc $MWC_FLAGS -o objs/CTemplateTools.o compiler_and_linker/unsorted/CTemplateTools.c -~/bin/mwccppc $MWC_FLAGS -o objs/Exceptions.o compiler_and_linker/unsorted/Exceptions.c -~/bin/mwccppc $MWC_FLAGS -o objs/FuncLevelAsmPPC.o compiler_and_linker/unsorted/FuncLevelAsmPPC.c -~/bin/mwccppc $MWC_FLAGS -o objs/FunctionCalls.o compiler_and_linker/unsorted/FunctionCalls.c -~/bin/mwccppc $MWC_FLAGS -o objs/GCCInlineAsm.o compiler_and_linker/unsorted/GCCInlineAsm.c +~/bin/mwccppc $MWC_FLAGS -o objs/DumpIR.o compiler_and_linker/unsorted/DumpIR.c ~/bin/mwccppc $MWC_FLAGS -o objs/GenStabs.o compiler_and_linker/unsorted/GenStabs.c ~/bin/mwccppc $MWC_FLAGS -o objs/GlobalOptimizer.o compiler_and_linker/unsorted/GlobalOptimizer.c -~/bin/mwccppc $MWC_FLAGS -o objs/InlineAsm.o compiler_and_linker/unsorted/InlineAsm.c ~/bin/mwccppc $MWC_FLAGS -o objs/InlineAsmMnemonicsPPC.o compiler_and_linker/unsorted/InlineAsmMnemonicsPPC.c -~/bin/mwccppc $MWC_FLAGS -o objs/InlineAsmPPC.o compiler_and_linker/unsorted/InlineAsmPPC.c ~/bin/mwccppc $MWC_FLAGS -o objs/InlineAsmRegisters.o compiler_and_linker/unsorted/InlineAsmRegisters.c ~/bin/mwccppc $MWC_FLAGS -o objs/InlineAsmRegistersPPC.o compiler_and_linker/unsorted/InlineAsmRegistersPPC.c -~/bin/mwccppc $MWC_FLAGS -o objs/InstrSelection.o compiler_and_linker/unsorted/InstrSelection.c -~/bin/mwccppc $MWC_FLAGS -o objs/InterferenceGraph.o compiler_and_linker/unsorted/InterferenceGraph.c -~/bin/mwccppc $MWC_FLAGS -o objs/Intrinsics.o compiler_and_linker/unsorted/Intrinsics.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroBitVect.o compiler_and_linker/unsorted/IroBitVect.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroCSE.o compiler_and_linker/unsorted/IroCSE.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroDump.o compiler_and_linker/unsorted/IroDump.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroEmptyLoop.o compiler_and_linker/unsorted/IroEmptyLoop.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroEval.o compiler_and_linker/unsorted/IroEval.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroExprRegeneration.o compiler_and_linker/unsorted/IroExprRegeneration.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroFlowgraph.o compiler_and_linker/unsorted/IroFlowgraph.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroJump.o compiler_and_linker/unsorted/IroJump.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroLinearForm.o compiler_and_linker/unsorted/IroLinearForm.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroLoop.o compiler_and_linker/unsorted/IroLoop.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroMalloc.o compiler_and_linker/unsorted/IroMalloc.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroPointerAnalysis.o compiler_and_linker/unsorted/IroPointerAnalysis.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroPropagate.o compiler_and_linker/unsorted/IroPropagate.c -~/bin/mwccppc $MWC_FLAGS -o objs/IrOptimizer.o compiler_and_linker/unsorted/IrOptimizer.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroRangePropagation.o compiler_and_linker/unsorted/IroRangePropagation.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroSubable.o compiler_and_linker/unsorted/IroSubable.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroTransform.o compiler_and_linker/unsorted/IroTransform.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroUnrollLoop.o compiler_and_linker/unsorted/IroUnrollLoop.c -~/bin/mwccppc $MWC_FLAGS -o objs/IROUseDef.o compiler_and_linker/unsorted/IROUseDef.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroUtil.o compiler_and_linker/unsorted/IroUtil.c -~/bin/mwccppc $MWC_FLAGS -o objs/IroVars.o compiler_and_linker/unsorted/IroVars.c ~/bin/mwccppc $MWC_FLAGS -o objs/LiveVariables.o compiler_and_linker/unsorted/LiveVariables.c ~/bin/mwccppc $MWC_FLAGS -o objs/LoadDeletion.o compiler_and_linker/unsorted/LoadDeletion.c -~/bin/mwccppc $MWC_FLAGS -o objs/LoopDetection.o compiler_and_linker/unsorted/LoopDetection.c -~/bin/mwccppc $MWC_FLAGS -o objs/LoopOptimization.o compiler_and_linker/unsorted/LoopOptimization.c ~/bin/mwccppc $MWC_FLAGS -o objs/MachO.o compiler_and_linker/unsorted/MachO.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation601.o compiler_and_linker/unsorted/MachineSimulation601.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation603.o compiler_and_linker/unsorted/MachineSimulation603.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation603e.o compiler_and_linker/unsorted/MachineSimulation603e.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation604.o compiler_and_linker/unsorted/MachineSimulation604.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation7400.o compiler_and_linker/unsorted/MachineSimulation7400.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation750.o compiler_and_linker/unsorted/MachineSimulation750.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulation821.o compiler_and_linker/unsorted/MachineSimulation821.c -~/bin/mwccppc $MWC_FLAGS -o objs/MachineSimulationAltiVec.o compiler_and_linker/unsorted/MachineSimulationAltiVec.c ~/bin/mwccppc $MWC_FLAGS -o objs/ObjGenMachO.o compiler_and_linker/unsorted/ObjGenMachO.c ~/bin/mwccppc $MWC_FLAGS -o objs/OpcodeInfo.o compiler_and_linker/unsorted/OpcodeInfo.c -~/bin/mwccppc $MWC_FLAGS -o objs/Operands.o compiler_and_linker/unsorted/Operands.c ~/bin/mwccppc $MWC_FLAGS -o objs/PCode.o compiler_and_linker/unsorted/PCode.c -~/bin/mwccppc $MWC_FLAGS -o objs/PCodeAssembly.o compiler_and_linker/unsorted/PCodeAssembly.c -~/bin/mwccppc $MWC_FLAGS -o objs/PCodeInfo.o compiler_and_linker/unsorted/PCodeInfo.c -~/bin/mwccppc $MWC_FLAGS -o objs/PCodeListing.o compiler_and_linker/unsorted/PCodeListing.c -~/bin/mwccppc $MWC_FLAGS -o objs/PCodeUtilities.o compiler_and_linker/unsorted/PCodeUtilities.c -~/bin/mwccppc $MWC_FLAGS -o objs/Peephole.o compiler_and_linker/unsorted/Peephole.c -~/bin/mwccppc $MWC_FLAGS -o objs/PPCError.o compiler_and_linker/unsorted/PPCError.c -~/bin/mwccppc $MWC_FLAGS -o objs/RegisterInfo.o compiler_and_linker/unsorted/RegisterInfo.c ~/bin/mwccppc $MWC_FLAGS -o objs/Registers.o compiler_and_linker/unsorted/Registers.c ~/bin/mwccppc $MWC_FLAGS -o objs/ScanFloat.o compiler_and_linker/unsorted/ScanFloat.c -~/bin/mwccppc $MWC_FLAGS -o objs/Scheduler.o compiler_and_linker/unsorted/Scheduler.c -~/bin/mwccppc $MWC_FLAGS -o objs/SpillCode.o compiler_and_linker/unsorted/SpillCode.c -~/bin/mwccppc $MWC_FLAGS -o objs/StackFrame.o compiler_and_linker/unsorted/StackFrame.c -~/bin/mwccppc $MWC_FLAGS -o objs/StrengthReduction.o compiler_and_linker/unsorted/StrengthReduction.c -~/bin/mwccppc $MWC_FLAGS -o objs/StructMoves.o compiler_and_linker/unsorted/StructMoves.c -~/bin/mwccppc $MWC_FLAGS -o objs/Switch.o compiler_and_linker/unsorted/Switch.c -~/bin/mwccppc $MWC_FLAGS -o objs/TOC.o compiler_and_linker/unsorted/TOC.c -~/bin/mwccppc $MWC_FLAGS -o objs/uDump.o compiler_and_linker/unsorted/uDump.c ~/bin/mwccppc $MWC_FLAGS -o objs/Unmangle.o compiler_and_linker/unsorted/Unmangle.c ~/bin/mwccppc $MWC_FLAGS -o objs/UseDefChains.o compiler_and_linker/unsorted/UseDefChains.c -~/bin/mwccppc $MWC_FLAGS -o objs/ValueNumbering.o compiler_and_linker/unsorted/ValueNumbering.c -~/bin/mwccppc $MWC_FLAGS -o objs/VectorArraysToRegs.o compiler_and_linker/unsorted/VectorArraysToRegs.c ~/bin/mwccppc $MWC_FLAGS -o objs/CmdLineBuildDate.o unsorted/CmdLineBuildDate.c ~/bin/mwccppc $MWC_FLAGS -o objs/uLibImporter.o unsorted/uLibImporter.c @@ -205,6 +213,7 @@ MWC_FLAGS="-c -g -opt l=4,noschedule,speed -enum min -Iincludes -Isdk_hdrs -w al ~/bin/mwccppc $MWC_FLAGS -o objs/StdTargetWarningHelpers-cc.o command_line/C++_Parser/Src/Library/StdTargetWarningHelpers-cc.c ~/bin/mwccppc $MWC_FLAGS -o objs/WarningHelpers.o command_line/C++_Parser/Src/Library/WarningHelpers.c +# PluginLib ~/bin/mwccppc $MWC_FLAGS -o objs/COSToolsCLT.o command_line/PluginLib/Src/Internal/COSToolsCLT.c ~/bin/mwccppc $MWC_FLAGS -o objs/CWSecretPluginCallbacks.o command_line/PluginLib/Src/Internal/CWSecretPluginCallbacks.cpp @@ -318,7 +327,7 @@ ld /usr/lib/crt1.o \ objs/PCodeUtilities.o \ objs/Operands.o \ objs/Exceptions.o \ - objs/uDump.o \ + objs/DumpIR.o \ objs/COptimizer.o \ objs/GlobalOptimizer.o \ objs/PCodeListing.o \