2006-09-07 22:05:02 +00:00
|
|
|
//===-- ARMTargetAsmInfo.cpp - ARM asm properties ---------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of the ARMTargetAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "ARMTargetAsmInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
2008-09-25 21:00:33 +00:00
|
|
|
const char *const llvm::arm_asm_table[] = {
|
2009-06-18 23:41:35 +00:00
|
|
|
"{r0}", "r0",
|
|
|
|
"{r1}", "r1",
|
|
|
|
"{r2}", "r2",
|
|
|
|
"{r3}", "r3",
|
|
|
|
"{r4}", "r4",
|
|
|
|
"{r5}", "r5",
|
|
|
|
"{r6}", "r6",
|
|
|
|
"{r7}", "r7",
|
|
|
|
"{r8}", "r8",
|
|
|
|
"{r9}", "r9",
|
|
|
|
"{r10}", "r10",
|
|
|
|
"{r11}", "r11",
|
|
|
|
"{r12}", "r12",
|
|
|
|
"{r13}", "r13",
|
|
|
|
"{r14}", "r14",
|
|
|
|
"{lr}", "lr",
|
|
|
|
"{sp}", "sp",
|
|
|
|
"{ip}", "ip",
|
|
|
|
"{fp}", "fp",
|
|
|
|
"{sl}", "sl",
|
|
|
|
"{memory}", "memory",
|
|
|
|
"{cc}", "cc",
|
|
|
|
0,0
|
|
|
|
};
|
2007-06-08 21:06:23 +00:00
|
|
|
|
2009-08-02 05:23:52 +00:00
|
|
|
ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo() {
|
2008-08-07 09:54:23 +00:00
|
|
|
ZeroDirective = "\t.space\t";
|
|
|
|
ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
|
|
|
|
SetDirective = "\t.set\t";
|
|
|
|
ProtectedDirective = NULL;
|
|
|
|
HasDotTypeDotSizeDirective = false;
|
2009-06-19 21:54:26 +00:00
|
|
|
SupportsDebugInformation = true;
|
2008-08-07 09:54:23 +00:00
|
|
|
}
|
|
|
|
|
2009-08-02 05:23:52 +00:00
|
|
|
ARMELFTargetAsmInfo::ARMELFTargetAsmInfo() {
|
2008-08-07 09:54:23 +00:00
|
|
|
NeedsSet = false;
|
|
|
|
HasLEB128 = true;
|
|
|
|
AbsoluteDebugSectionOffsets = true;
|
|
|
|
PrivateGlobalPrefix = ".L";
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
|
|
|
SetDirective = "\t.set\t";
|
|
|
|
DwarfRequiresFrameSection = false;
|
|
|
|
|
2009-06-19 21:54:26 +00:00
|
|
|
SupportsDebugInformation = true;
|
2008-08-07 09:54:23 +00:00
|
|
|
}
|
|
|
|
|
2008-10-05 08:53:29 +00:00
|
|
|
// Instantiate default implementation.
|
2009-08-02 05:23:52 +00:00
|
|
|
TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<DarwinTargetAsmInfo>);
|
2008-10-05 08:53:29 +00:00
|
|
|
TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
|