LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MipsMCAsmInfo.cpp
Go to the documentation of this file.
1 //===-- MipsMCAsmInfo.cpp - Mips Asm Properties ---------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the MipsMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "MipsMCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
16 
17 using namespace llvm;
18 
19 void MipsMCAsmInfo::anchor() { }
20 
22  Triple TheTriple(TT);
23  if ((TheTriple.getArch() == Triple::mips) ||
24  (TheTriple.getArch() == Triple::mips64))
25  IsLittleEndian = false;
26 
27  if ((TheTriple.getArch() == Triple::mips64el) ||
28  (TheTriple.getArch() == Triple::mips64)) {
30  }
31 
32  AlignmentIsInBytes = false;
33  Data16bitsDirective = "\t.2byte\t";
34  Data32bitsDirective = "\t.4byte\t";
35  Data64bitsDirective = "\t.8byte\t";
36  PrivateGlobalPrefix = "$";
37  CommentString = "#";
38  ZeroDirective = "\t.space\t";
39  GPRel32Directive = "\t.gpword\t";
40  GPRel64Directive = "\t.gpdword\t";
41  DebugLabelSuffix = "=.";
44  HasLEB128 = true;
45  DwarfRegNumForCFI = true;
46 }
bool DwarfRegNumForCFI
Definition: MCAsmInfo.h:308
const char * Data64bitsDirective
Definition: MCAsmInfo.h:179
const char * ZeroDirective
Definition: MCAsmInfo.h:162
bool IsLittleEndian
Definition: MCAsmInfo.h:59
unsigned CalleeSaveStackSlotSize
Definition: MCAsmInfo.h:55
ExceptionHandling::ExceptionsType ExceptionsType
SupportsExceptionHandling - True if target supports exception handling.
Definition: MCAsmInfo.h:300
bool AlignmentIsInBytes
Definition: MCAsmInfo.h:219
const char * PrivateGlobalPrefix
Definition: MCAsmInfo.h:125
const char * CommentString
Definition: MCAsmInfo.h:110
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
Definition: Triple.h:172
const char * GPRel64Directive
Definition: MCAsmInfo.h:184
const char * DebugLabelSuffix
LabelSuffix - This is appended to emitted labels.
Definition: MCAsmInfo.h:116
unsigned PointerSize
Definition: MCAsmInfo.h:50
bool SupportsDebugInformation
Definition: MCAsmInfo.h:297
const char * Data16bitsDirective
Definition: MCAsmInfo.h:177
bool HasLEB128
HasLEB128 - True if target asm supports leb128 directives.
Definition: MCAsmInfo.h:293
const char * Data32bitsDirective
Definition: MCAsmInfo.h:178
const char * GPRel32Directive
Definition: MCAsmInfo.h:189
MipsMCAsmInfo(StringRef TT)