[commit: ghc] wip/kavon-nosplit-llvm: fix ppr typo for readnone; added NonNull param attr (e655d2b)
git at git.haskell.org
git at git.haskell.org
Tue Jun 27 09:15:09 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/kavon-nosplit-llvm
Link : http://ghc.haskell.org/trac/ghc/changeset/e655d2b8a0b556cb1ffe552c2f8fcf8e1cf0a7ec/ghc
>---------------------------------------------------------------
commit e655d2b8a0b556cb1ffe552c2f8fcf8e1cf0a7ec
Author: Kavon Farvardin <kavon at farvard.in>
Date: Tue May 16 11:05:02 2017 +0100
fix ppr typo for readnone; added NonNull param attr
>---------------------------------------------------------------
e655d2b8a0b556cb1ffe552c2f8fcf8e1cf0a7ec
compiler/llvmGen/Llvm/Types.hs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/compiler/llvmGen/Llvm/Types.hs b/compiler/llvmGen/Llvm/Types.hs
index 6245642..a84446c 100644
--- a/compiler/llvmGen/Llvm/Types.hs
+++ b/compiler/llvmGen/Llvm/Types.hs
@@ -467,6 +467,9 @@ data LlvmParamAttr
-- | This indicates that the pointer parameter can be excised using the
-- trampoline intrinsics.
| Nest
+ -- | This indicates that the parameter or return pointer is not null.
+ -- This attribute may only be applied to pointer typed parameters.
+ | NonNull
deriving (Eq)
instance Outputable LlvmParamAttr where
@@ -478,6 +481,7 @@ instance Outputable LlvmParamAttr where
ppr NoAlias = text "noalias"
ppr NoCapture = text "nocapture"
ppr Nest = text "nest"
+ ppr NonNull = text "nonnull"
-- | Llvm Function Attributes.
--
@@ -564,7 +568,7 @@ instance Outputable LlvmFuncAttr where
ppr OptSize = text "optsize"
ppr NoReturn = text "noreturn"
ppr NoUnwind = text "nounwind"
- ppr ReadNone = text "readnon"
+ ppr ReadNone = text "readnone"
ppr ReadOnly = text "readonly"
ppr Ssp = text "ssp"
ppr SspReq = text "ssqreq"
More information about the ghc-commits
mailing list