LLVM  9.0.0svn
Go to the documentation of this file.
1 //===-- WebAssemblyMCAsmInfo.cpp - WebAssembly asm properties -------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// This file contains the declarations of the WebAssemblyMCAsmInfo
11 /// properties.
12 ///
13 //===----------------------------------------------------------------------===//
15 #include "WebAssemblyMCAsmInfo.h"
16 #include "llvm/ADT/Triple.h"
18 using namespace llvm;
20 #define DEBUG_TYPE "wasm-mc-asm-info"
22 WebAssemblyMCAsmInfo::~WebAssemblyMCAsmInfo() = default; // anchor.
27  // TODO: What should MaxInstLength be?
31  // Use .skip instead of .zero because .zero is confusing when used with two
32  // arguments (it doesn't actually zero things out).
33  ZeroDirective = "\t.skip\t";
35  Data8bitsDirective = "\t.int8\t";
36  Data16bitsDirective = "\t.int16\t";
37  Data32bitsDirective = "\t.int32\t";
38  Data64bitsDirective = "\t.int64\t";
40  AlignmentIsInBytes = false;
46  // TODO: UseIntegratedAssembler?
47 }
LCOMM::LCOMMType LCOMMDirectiveAlignmentType
Describes if the .lcomm directive for the target supports an alignment argument and how it is interpr...
Definition: MCAsmInfo.h:270
This class represents lattice values for constants.
Definition: AllocatorList.h:23
const char * Data64bitsDirective
Definition: MCAsmInfo.h:192
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:173
unsigned CalleeSaveStackSlotSize
Size of the stack slot reserved for callee-saved registers, in bytes.
Definition: MCAsmInfo.h:66
bool AlignmentIsInBytes
If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number ...
Definition: MCAsmInfo.h:230
const char * Data8bitsDirective
These directives are used to output some unit of integer data to the current section.
Definition: MCAsmInfo.h:189
bool COMMDirectiveAlignmentIsInBytes
True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n)...
Definition: MCAsmInfo.h:266
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:331
const char * Data16bitsDirective
Definition: MCAsmInfo.h:190
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:43
const char * Data32bitsDirective
Definition: MCAsmInfo.h:191
unsigned CodePointerSize
Code pointer size in bytes. Default is 4.
Definition: MCAsmInfo.h:62
This file contains the declaration of the WebAssemblyMCAsmInfo class.
bool isArch64Bit() const
Test whether the architecture is 64-bit.
Definition: Triple.cpp:1268
bool UseDataRegionDirectives
This is true if data region markers should be printed as ".data_region/.end_data_region" directives...
Definition: MCAsmInfo.h:165