ghc-7.0.3: The GHC API

SPARC.Ppr

Synopsis

- pprNatCmmTop :: NatCmmTop Instr -> Doc
- pprBasicBlock :: NatBasicBlock Instr -> Doc
- pprSectionHeader :: Section -> Doc
- pprData :: CmmStatic -> Doc
- pprInstr :: Instr -> Doc
- pprUserReg :: Reg -> Doc
- pprSize :: Size -> Doc
- pprImm :: Imm -> Doc
- pprDataItem :: CmmLit -> Doc

# Documentation

pprNatCmmTop :: NatCmmTop Instr -> Doc Source

pprBasicBlock :: NatBasicBlock Instr -> Doc Source

pprSectionHeader :: Section -> Doc Source

Pretty print a section / segment header. On SPARC all the data sections must be at least 8 byte aligned incase we store doubles in them.

pprData :: CmmStatic -> Doc Source

pprInstr :: Instr -> Doc Source

Pretty print an instruction.

pprUserReg :: Reg -> Doc Source

Pretty print a register. This is an alias of pprReg for legacy reasons, should remove it.

pprSize :: Size -> Doc Source

Pretty print a size for an instruction suffix.

pprImm :: Imm -> Doc Source

Pretty print an immediate value.

pprDataItem :: CmmLit -> Doc Source

Pretty print a data item.