[Git][ghc/ghc][wip/T14261] Add a few missing llvm-targets

Ben Gamari gitlab at gitlab.haskell.org
Wed Jun 12 18:30:40 UTC 2019



Ben Gamari pushed to branch wip/T14261 at Glasgow Haskell Compiler / GHC


Commits:
33090853 by Ben Gamari at 2019-06-12T18:30:30Z
Add a few missing llvm-targets

This should finally fix #14261.

[skip ci]

- - - - -


2 changed files:

- llvm-targets
- utils/llvm-targets/gen-data-layout.sh


Changes:

=====================================
llvm-targets
=====================================
@@ -6,8 +6,9 @@
 ,("armv6l-unknown-linux-gnueabihf", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "arm1176jzf-s", "+strict-align"))
 ,("armv7-unknown-linux-gnueabihf", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
 ,("armv7a-unknown-linux-gnueabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
-,("armv7l-unknown-linux-gnueabihf", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
+,("armv7a-unknown-linux-gnueabihf", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
 ,("armv7l-unknown-linux-gnueabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
+,("armv7l-unknown-linux-gnueabihf", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
 ,("aarch64-unknown-linux-gnu", ("e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", "generic", "+neon"))
 ,("aarch64-unknown-linux", ("e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", "generic", "+neon"))
 ,("i386-unknown-linux-gnu", ("e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128", "pentium4", ""))
@@ -17,17 +18,18 @@
 ,("x86_64-unknown-linux-android", ("e-m:e-i64:64-f80:128-n8:16:32:64-S128", "x86-64", "+sse4.2 +popcnt"))
 ,("armv7-unknown-linux-androideabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
 ,("aarch64-unknown-linux-android", ("e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", "generic", "+neon"))
+,("armv7a-unknown-linux-androideabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", ""))
 ,("powerpc64le-unknown-linux", ("e-m:e-i64:64-n32:64", "ppc64le", ""))
-,("amd64-portbld-freebsd", ("e-m:e-i64:64-f80:128-n8:16:32:64-S128", "x86-64", ""))
-,("x86_64-unknown-freebsd", ("e-m:e-i64:64-f80:128-n8:16:32:64-S128", "x86-64", ""))
-,("arm-unknown-nto-qnx-eabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "arm7tdmi", "+strict-align"))
 ,("i386-apple-darwin", ("e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128", "yonah", ""))
 ,("x86_64-apple-darwin", ("e-m:o-i64:64-f80:128-n8:16:32:64-S128", "core2", ""))
 ,("armv7-apple-ios", ("e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32", "generic", ""))
 ,("aarch64-apple-ios", ("e-m:o-i64:64-i128:128-n32:64-S128", "generic", "+neon"))
 ,("i386-apple-ios", ("e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128", "yonah", ""))
 ,("x86_64-apple-ios", ("e-m:o-i64:64-f80:128-n8:16:32:64-S128", "core2", ""))
+,("amd64-portbld-freebsd", ("e-m:e-i64:64-f80:128-n8:16:32:64-S128", "x86-64", ""))
+,("x86_64-unknown-freebsd", ("e-m:e-i64:64-f80:128-n8:16:32:64-S128", "x86-64", ""))
 ,("aarch64-unknown-freebsd", ("e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", "generic", "+neon"))
 ,("armv6-unknown-freebsd-gnueabihf", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "arm1176jzf-s", "+strict-align"))
 ,("armv7-unknown-freebsd-gnueabihf", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "generic", "+strict-align"))
+,("arm-unknown-nto-qnx-eabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "arm7tdmi", "+strict-align"))
 ]


=====================================
utils/llvm-targets/gen-data-layout.sh
=====================================
@@ -18,35 +18,73 @@
 
 # Target sets for which to generate the llvm-targets file
 TARGETS=(
+    #########################
+    # Windows
+    #########################
+
     # Windows x86
-    "i386-unknown-windows" "i686-unknown-windows" "x86_64-unknown-windows"
+    "i386-unknown-windows"
+    "i686-unknown-windows"
+    "x86_64-unknown-windows"
+
+    #########################
+    # Linux
+    #########################
 
     # Linux ARM
-    "arm-unknown-linux-gnueabihf" "armv6-unknown-linux-gnueabihf" "armv6l-unknown-linux-gnueabihf"
-    "armv7-unknown-linux-gnueabihf" "armv7a-unknown-linux-gnueabi" "armv7l-unknown-linux-gnueabihf"
+    "arm-unknown-linux-gnueabihf"
+    "armv6-unknown-linux-gnueabihf"
+    "armv6l-unknown-linux-gnueabihf"
+    "armv7-unknown-linux-gnueabihf"
+    "armv7a-unknown-linux-gnueabi"
+    "armv7a-unknown-linux-gnueabihf"
     "armv7l-unknown-linux-gnueabi"
-    "aarch64-unknown-linux-gnu" "aarch64-unknown-linux"
+    "armv7l-unknown-linux-gnueabihf"
+    "aarch64-unknown-linux-gnu"
+    "aarch64-unknown-linux"
     # Linux x86
-    "i386-unknown-linux-gnu" "i386-unknown-linux" "x86_64-unknown-linux-gnu" "x86_64-unknown-linux"
+    "i386-unknown-linux-gnu"
+    "i386-unknown-linux"
+    "x86_64-unknown-linux-gnu"
+    "x86_64-unknown-linux"
     # Linux Android
-    "x86_64-unknown-linux-android" "armv7-unknown-linux-androideabi" "aarch64-unknown-linux-android"
+    "x86_64-unknown-linux-android"
+    "armv7-unknown-linux-androideabi"
+    "aarch64-unknown-linux-android"
+    "armv7a-unknown-linux-androideabi"
     # Linux ppc64le
     "powerpc64le-unknown-linux"
 
+    #########################
+    # Darwin
+    #########################
+
+    # macOS
+    "i386-apple-darwin"
+    "x86_64-apple-darwin"
+    # iOS
+    "armv7-apple-ios arm64-apple-ios"
+    "i386-apple-ios x86_64-apple-ios"
+
+    #########################
+    # FreeBSD
+    #########################
+
     # FreeBSD amd64
     "amd64-portbld-freebsd"
     "x86_64-unknown-freebsd" # See #15718
 
-    # QNX
-    "arm-unknown-nto-qnx-eabi"
+    # FreeBSD ARM
+    "aarch64-unknown-freebsd"
+    "armv6-unknown-freebsd-gnueabihf"
+    "armv7-unknown-freebsd-gnueabihf"
 
-    # macOS
-    "i386-apple-darwin" "x86_64-apple-darwin"
-    # iOS
-    "armv7-apple-ios arm64-apple-ios" "i386-apple-ios x86_64-apple-ios"
+    #########################
+    # Other
+    #########################
 
-    # FreeBSD ARM
-    "aarch64-unknown-freebsd" "armv6-unknown-freebsd-gnueabihf" "armv7-unknown-freebsd-gnueabihf"
+    # QNX
+    "arm-unknown-nto-qnx-eabi"
 )
 
 # given the call to clang -c11 that clang --target -v generates,



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/330908536316bf6777513fdcd1421d2df8282bc4

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/330908536316bf6777513fdcd1421d2df8282bc4
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/20190612/9bdf3fe2/attachment-0001.html>


More information about the ghc-commits mailing list