projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Whitespace only in nativeGen/RegAlloc/Graph/TrivColorable.hs
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
PPC
/
RegInfo.hs
diff --git
a/compiler/nativeGen/PPC/RegInfo.hs
b/compiler/nativeGen/PPC/RegInfo.hs
index
91c9e15
..
bfc712a
100644
(file)
--- a/
compiler/nativeGen/PPC/RegInfo.hs
+++ b/
compiler/nativeGen/PPC/RegInfo.hs
@@
-7,7
+7,7
@@
-----------------------------------------------------------------------------
module PPC.RegInfo (
-----------------------------------------------------------------------------
module PPC.RegInfo (
- JumpDest( DestBlockId ),
+ JumpDest( DestBlockId ), getJumpDestBlockId,
canShortcut,
shortcutJump,
canShortcut,
shortcutJump,
@@
-31,6
+31,10
@@
import Unique
data JumpDest = DestBlockId BlockId | DestImm Imm
data JumpDest = DestBlockId BlockId | DestImm Imm
+getJumpDestBlockId :: JumpDest -> Maybe BlockId
+getJumpDestBlockId (DestBlockId bid) = Just bid
+getJumpDestBlockId _ = Nothing
+
canShortcut :: Instr -> Maybe JumpDest
canShortcut _ = Nothing
canShortcut :: Instr -> Maybe JumpDest
canShortcut _ = Nothing