mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[ARM] Add support for FP_HP_extension build attribute
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -703,6 +703,9 @@ void ARMAsmPrinter::emitAttributes() {
|
||||
|
||||
// FIXME: Should we signal R9 usage?
|
||||
|
||||
if (Subtarget->hasFP16())
|
||||
ATS.emitAttribute(ARMBuildAttrs::FP_HP_extension, ARMBuildAttrs::AllowHPFP);
|
||||
|
||||
if (Subtarget->hasMPExtension())
|
||||
ATS.emitAttribute(ARMBuildAttrs::MPextension_use, ARMBuildAttrs::AllowMP);
|
||||
|
||||
|
@@ -59,7 +59,7 @@ namespace ARMBuildAttrs {
|
||||
ABI_FP_optimization_goals = 31,
|
||||
compatibility = 32,
|
||||
CPU_unaligned_access = 34,
|
||||
VFP_HP_extension = 36,
|
||||
FP_HP_extension = 36,
|
||||
ABI_FP_16bit_format = 38,
|
||||
MPextension_use = 42, // was 70, 2.08 ABI
|
||||
DIV_use = 44,
|
||||
@@ -146,6 +146,9 @@ namespace ARMBuildAttrs {
|
||||
BaseAAPCS = 0,
|
||||
HardFPAAPCS = 1,
|
||||
|
||||
// Tag_FP_HP_extension, (=36), uleb128
|
||||
AllowHPFP = 1, // Allow use of Half Precision FP
|
||||
|
||||
// Tag_MPextension_use, (=42), uleb128
|
||||
AllowMP = 1, // Allow use of MP extensions
|
||||
|
||||
|
Reference in New Issue
Block a user