Skip to content
  • Edward Z. Yang's avatar
    Port MachOp folding to new code generator. · b8e0ce7b
    Edward Z. Yang authored
    
    
        * Rewrote cmmMachOpFold to cmmMachOpFoldM, which returns
          Nothing if no folding took place.
        * Wrote some generic mapping functions which take functions
          of form 'a -> Maybe a' and are smart about sharing.
        * Split up optimizations from PIC and PPC work in the native
          codegen, so they'll be easier to turn off later
          (they are not currently being turned off, however.)
        * Whitespace fixes!
    
    ToDo: Turn off MachOp folding when new codegenerator is being used.
    
    Signed-off-by: default avatarEdward Z. Yang <ezyang@mit.edu>
    b8e0ce7b