Open expipiplus1 opened 4 years ago
Aside from these I've come up with this MachineDesc for x86_64
MachineDesc
x86_64 :: MachineDesc x86_64 = let iSize = \case TyBool -> 1 TyChar -> 1 TySChar -> 1 TyUChar -> 1 TyShort -> 2 TyUShort -> 2 TyInt -> 4 TyUInt -> 4 TyLong -> 8 TyULong -> 8 TyLLong -> 8 TyULLong -> 8 TyInt128 -> 16 TyUInt128 -> 16 fSize = \case TyFloat -> 4 TyDouble -> 8 TyLDouble -> 16 TyFloatN{} -> error "TyFloatN" builtinSize = \case TyVaList -> 24 TyAny -> error "TyAny" ptrSize = 8 voidSize = 1 iAlign = \case TyBool -> 1 TyChar -> 1 TySChar -> 1 TyUChar -> 1 TyShort -> 2 TyUShort -> 2 TyInt -> 4 TyUInt -> 4 TyLong -> 8 TyULong -> 8 TyLLong -> 8 TyULLong -> 8 TyInt128 -> 16 TyUInt128 -> 16 fAlign = \case TyFloat -> 4 TyDouble -> 8 TyLDouble -> 16 TyFloatN{} -> error "TyFloatN" builtinAlign = \case TyVaList -> 8 TyAny -> error "TyAny" ptrAlign = 8 voidAlign = 1 in MachineDesc { .. }
Ah, I see from the Show instance that TyFloatN is _Float123{,x} whatever that is
Show
TyFloatN
_Float123{,x}
Aside from these I've come up with this
MachineDesc
for x86_64