diff options
author | Peter Wortmann <scpmw@leeds.ac.uk> | 2013-06-26 15:43:45 +0100 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2013-06-27 13:39:11 -0700 |
commit | 720a87c7ec967ff878f081bd3cc810cae3fe4a50 (patch) | |
tree | 925703005df243eb21e175ebf9d817e998292731 /compiler/llvmGen/Llvm.hs | |
parent | 99d39221cfa6f6b8ccf950763a73ad32edd7beef (diff) | |
download | haskell-720a87c7ec967ff878f081bd3cc810cae3fe4a50.tar.gz |
Extend globals to aliases
Also give them a proper constructor - getGlobalVar and getGlobalValue
map directly to the accessors.
Diffstat (limited to 'compiler/llvmGen/Llvm.hs')
-rw-r--r-- | compiler/llvmGen/Llvm.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/llvmGen/Llvm.hs b/compiler/llvmGen/Llvm.hs index 8951d88869..85095997ae 100644 --- a/compiler/llvmGen/Llvm.hs +++ b/compiler/llvmGen/Llvm.hs @@ -32,7 +32,8 @@ module Llvm ( -- * Variables and Type System LlvmVar(..), LlvmStatic(..), LlvmLit(..), LlvmType(..), - LlvmAlias, LMGlobal, LMString, LMSection, LMAlign, + LlvmAlias, LMGlobal(..), LMString, LMSection, LMAlign, + LMConst(..), -- ** Some basic types i64, i32, i16, i8, i1, i8Ptr, llvmWord, llvmWordPtr, @@ -42,7 +43,7 @@ module Llvm ( -- ** Operations on the type system. isGlobal, getLitType, getVarType, - getLink, getStatType, getGlobalVar, getGlobalType, pVarLift, pVarLower, + getLink, getStatType, pVarLift, pVarLower, pLift, pLower, isInt, isFloat, isPointer, isVector, llvmWidthInBits, -- * Pretty Printing |