LLVM  8.0.1
RISCVMCAsmInfo.cpp
Go to the documentation of this file.
1 //===-- RISCVMCAsmInfo.cpp - RISCV 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 RISCVMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "RISCVMCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
16 using namespace llvm;
17 
18 void RISCVMCAsmInfo::anchor() {}
19 
22  CommentString = "#";
23  AlignmentIsInBytes = false;
25  Data16bitsDirective = "\t.half\t";
26  Data32bitsDirective = "\t.word\t";
27 }
This class represents lattice values for constants.
Definition: AllocatorList.h:24
unsigned CalleeSaveStackSlotSize
Size of the stack slot reserved for callee-saved registers, in bytes.
Definition: MCAsmInfo.h:67
bool AlignmentIsInBytes
If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number ...
Definition: MCAsmInfo.h:231
StringRef CommentString
This indicates the comment character used by the assembler.
Definition: MCAsmInfo.h:114
RISCVMCAsmInfo(const Triple &TargetTriple)
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:332
const char * Data16bitsDirective
Definition: MCAsmInfo.h:191
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
const char * Data32bitsDirective
Definition: MCAsmInfo.h:192
unsigned CodePointerSize
Code pointer size in bytes. Default is 4.
Definition: MCAsmInfo.h:63
bool isArch64Bit() const
Test whether the architecture is 64-bit.
Definition: Triple.cpp:1269