Changes between Version 3 and Version 4 of Commentary/Compiler/CmmType


Ignore:
Timestamp:
Dec 6, 2006 7:28:00 PM (7 years ago)
Author:
p_tanski
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/CmmType

    v3 v4  
    210210}}} 
    211211 
     212==== Local Registers ====  
     213Local Registers exist within the scope of a Procedure: 
     214{{{ 
     215data LocalReg 
     216  = LocalReg !Unique MachRep 
     217}}} 
     218For a list of references with information on `Unique`, see the [wiki:Commentary/Compiler/CmmType#BasicBlocksandProcedures Basic Blocks and Procedures] section, above. 
     219 
     220A `MachRep`, the type of a machine register, is defined in [[GhcFile(compiler/cmm/MachOp.hs)]]: 
     221{{{ 
     222data MachRep 
     223  = I8          -- integral type, 8 bits wide (a byte) 
     224  | I16         -- integral type, 16 bits wide 
     225  | I32         -- integral type, 32 bits wide 
     226  | I64         -- integral type, 64 bits wide 
     227  | I128        -- integral type, 128 bits wide (an integral vector register) 
     228  | F32         -- floating point type, 32 bits wide (float) 
     229  | F64         -- floating point type, 64 bits wide (double) 
     230  | F80         -- extended double-precision, used in x86 native codegen only. 
     231}}}