LLVM  8.0.1
WebAssemblyMCAsmInfo.cpp
Go to the documentation of this file.
1 //===-- WebAssemblyMCAsmInfo.cpp - WebAssembly 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 /// \file
11 /// This file contains the declarations of the WebAssemblyMCAsmInfo
12 /// properties.
13 ///
14 //===----------------------------------------------------------------------===//
15 
16 #include "WebAssemblyMCAsmInfo.h"
17 #include "llvm/ADT/Triple.h"
18 
19 using namespace llvm;
20 
21 #define DEBUG_TYPE "wasm-mc-asm-info"
22 
24 
27 
28  // TODO: What should MaxInstLength be?
29 
31 
32  // Use .skip instead of .zero because .zero is confusing when used with two
33  // arguments (it doesn't actually zero things out).
34  ZeroDirective = "\t.skip\t";
35 
36  Data8bitsDirective = "\t.int8\t";
37  Data16bitsDirective = "\t.int16\t";
38  Data32bitsDirective = "\t.int32\t";
39  Data64bitsDirective = "\t.int64\t";
40 
41  AlignmentIsInBytes = false;
44 
46 
47  // TODO: UseIntegratedAssembler?
48 }
LCOMM::LCOMMType LCOMMDirectiveAlignmentType
Describes if the .lcomm directive for the target supports an alignment argument and how it is interpr...
Definition: MCAsmInfo.h:271
This class represents lattice values for constants.
Definition: AllocatorList.h:24
const char * Data64bitsDirective
Definition: MCAsmInfo.h:193
const char * ZeroDirective
This should be set to the directive used to get some number of zero bytes emitted to the current sect...
Definition: MCAsmInfo.h:174
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
const char * Data8bitsDirective
These directives are used to output some unit of integer data to the current section.
Definition: MCAsmInfo.h:190
bool COMMDirectiveAlignmentIsInBytes
True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n)...
Definition: MCAsmInfo.h:267
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
This file contains the declaration of the WebAssemblyMCAsmInfo class.
bool isArch64Bit() const
Test whether the architecture is 64-bit.
Definition: Triple.cpp:1269
bool UseDataRegionDirectives
This is true if data region markers should be printed as ".data_region/.end_data_region" directives...
Definition: MCAsmInfo.h:166