You need to sign in or sign up before continuing.
Refactoring: explicitly mark whether we have an info table in RawCmm
I introduced this to support explicitly recording the info table label in RawCmm for another patch I am working on, but it turned out to lead to significant simplification in those parts of the compiler that consume RawCmm. Now, instead of lots of tests for null [CmmStatic] we have a simple test of a Maybe, and have reduced the number of guys that need to know how to convert entry->info labels by a TON. There are only 3 callers of that function now!
Showing
- compiler/cmm/CmmDecl.hs 1 addition, 1 deletioncompiler/cmm/CmmDecl.hs
- compiler/cmm/CmmInfo.hs 3 additions, 3 deletionscompiler/cmm/CmmInfo.hs
- compiler/cmm/CmmOpt.hs 5 additions, 6 deletionscompiler/cmm/CmmOpt.hs
- compiler/cmm/OldCmm.hs 6 additions, 3 deletionscompiler/cmm/OldCmm.hs
- compiler/cmm/PprC.hs 5 additions, 5 deletionscompiler/cmm/PprC.hs
- compiler/llvmGen/LlvmCodeGen.hs 3 additions, 4 deletionscompiler/llvmGen/LlvmCodeGen.hs
- compiler/llvmGen/LlvmCodeGen/Base.hs 1 addition, 1 deletioncompiler/llvmGen/LlvmCodeGen/Base.hs
- compiler/llvmGen/LlvmCodeGen/Ppr.hs 10 additions, 10 deletionscompiler/llvmGen/LlvmCodeGen/Ppr.hs
- compiler/nativeGen/AsmCodeGen.lhs 1 addition, 1 deletioncompiler/nativeGen/AsmCodeGen.lhs
- compiler/nativeGen/Instruction.hs 2 additions, 2 deletionscompiler/nativeGen/Instruction.hs
- compiler/nativeGen/PPC/Ppr.hs 16 additions, 14 deletionscompiler/nativeGen/PPC/Ppr.hs
- compiler/nativeGen/RegAlloc/Liveness.hs 3 additions, 3 deletionscompiler/nativeGen/RegAlloc/Liveness.hs
- compiler/nativeGen/SPARC/Ppr.hs 16 additions, 14 deletionscompiler/nativeGen/SPARC/Ppr.hs
- compiler/nativeGen/X86/Ppr.hs 18 additions, 15 deletionscompiler/nativeGen/X86/Ppr.hs
Loading
Please register or sign in to comment