X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fcmm%2FCmm.hs;h=304ddb2b0f1291eb54818fb260dec3f734f7ac19;hb=30ee6ff795f017c433f27b37f290b29374545cec;hp=9fcc96ed01985c2258d7eccf4f6749ea26ece946;hpb=b4d045ae655e5eae25b88917cfe75d7dc7689c21;p=ghc-hetmet.git diff --git a/ghc/compiler/cmm/Cmm.hs b/ghc/compiler/cmm/Cmm.hs index 9fcc96e..304ddb2 100644 --- a/ghc/compiler/cmm/Cmm.hs +++ b/ghc/compiler/cmm/Cmm.hs @@ -162,7 +162,6 @@ data CmmExpr -- ** is shorthand only, meaning ** -- CmmMachOp (MO_S_Add rep (CmmReg reg) (CmmLit (CmmInt i rep))) -- where rep = cmmRegRep reg - | CmmPicBaseReg -- Base Register for PIC calculations cmmExprRep :: CmmExpr -> MachRep cmmExprRep (CmmLit lit) = cmmLitRep lit @@ -170,7 +169,6 @@ cmmExprRep (CmmLoad _ rep) = rep cmmExprRep (CmmReg reg) = cmmRegRep reg cmmExprRep (CmmMachOp op _) = resultRepOfMachOp op cmmExprRep (CmmRegOff reg _) = cmmRegRep reg -cmmExprRep CmmPicBaseReg = wordRep data CmmReg = CmmLocal LocalReg @@ -239,7 +237,9 @@ data Section = Text | Data | ReadOnlyData + | RelocatableReadOnlyData | UninitialisedData + | ReadOnlyData16 -- .rodata.cst16 on x86_64, 16-byte aligned | OtherSection String data CmmStatic @@ -294,6 +294,11 @@ data GlobalReg -- (where necessary) in the native code generator. | BaseReg + -- Base Register for PIC (position-independent code) calculations + -- Only used inside the native code generator. It's exact meaning differs + -- from platform to platform (see module PositionIndependentCode). + | PicBaseReg + deriving( Eq #ifdef DEBUG , Show