mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-06 04:18:00 +00:00
[ARM]: Extend -mfpu options for half-precision and vfpv3xd
Some of the the permissible ARM -mfpu options, which are supported in GCC, are currently not present in llvm/clang.This patch adds the options: 'neon-fp16', 'vfpv3-fp16', 'vfpv3-d16-fp16', 'vfpv3xd' and 'vfpv3xd-fp16. These are related to half-precision floating-point and single precision. Reviewers: rengolin, ranjeet.singh Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10645 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,7 +36,11 @@ namespace ARM {
|
||||
FK_VFP,
|
||||
FK_VFPV2,
|
||||
FK_VFPV3,
|
||||
FK_VFPV3_FP16,
|
||||
FK_VFPV3_D16,
|
||||
FK_VFPV3_D16_FP16,
|
||||
FK_VFPV3XD,
|
||||
FK_VFPV3XD_FP16,
|
||||
FK_VFPV4,
|
||||
FK_VFPV4_D16,
|
||||
FK_FPV4_SP_D16,
|
||||
@@ -44,6 +48,7 @@ namespace ARM {
|
||||
FK_FPV5_SP_D16,
|
||||
FK_FP_ARMV8,
|
||||
FK_NEON,
|
||||
FK_NEON_FP16,
|
||||
FK_NEON_VFPV4,
|
||||
FK_NEON_FP_ARMV8,
|
||||
FK_CRYPTO_NEON_FP_ARMV8,
|
||||
@@ -51,6 +56,16 @@ namespace ARM {
|
||||
FK_LAST
|
||||
};
|
||||
|
||||
// FPU Version
|
||||
enum FPUVersion {
|
||||
FV_NONE = 0,
|
||||
FV_VFPV2,
|
||||
FV_VFPV3,
|
||||
FV_VFPV3_FP16,
|
||||
FV_VFPV4,
|
||||
FV_VFPV5
|
||||
};
|
||||
|
||||
// An FPU name implies one of three levels of Neon support:
|
||||
enum NeonSupportLevel {
|
||||
NS_None = 0, ///< No Neon
|
||||
|
||||
Reference in New Issue
Block a user