[Git][ghc/ghc][master] LLVM: support R9 and R10 registers

Marge Bot gitlab at gitlab.haskell.org
Fri Jul 3 06:50:45 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
edc8d22b by Sylvain Henry at 2020-07-03T02:50:40-04:00
LLVM: support R9 and R10 registers

d535ef006d85dbdb7cda2b09c5bc35cb80108909 allowed the use of up to 10
vanilla registers but didn't update LLVM backend to support them. This
patch fixes it.

- - - - -


1 changed file:

- compiler/GHC/CmmToLlvm/Regs.hs


Changes:

=====================================
compiler/GHC/CmmToLlvm/Regs.hs
=====================================
@@ -47,6 +47,8 @@ lmGlobalReg platform suf reg
         VanillaReg 6 _ -> wordGlobal $ "R6" ++ suf
         VanillaReg 7 _ -> wordGlobal $ "R7" ++ suf
         VanillaReg 8 _ -> wordGlobal $ "R8" ++ suf
+        VanillaReg 9 _ -> wordGlobal $ "R9" ++ suf
+        VanillaReg 10 _ -> wordGlobal $ "R10" ++ suf
         SpLim          -> wordGlobal $ "SpLim" ++ suf
         FloatReg 1     -> floatGlobal $"F1" ++ suf
         FloatReg 2     -> floatGlobal $"F2" ++ suf



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/edc8d22b2eea5d43dd6c3d0e4b2f85fc02ffa5ce

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/edc8d22b2eea5d43dd6c3d0e4b2f85fc02ffa5ce
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200703/9f6dd69c/attachment-0001.html>


More information about the ghc-commits mailing list