LLVM 18.0.0git
Go to the documentation of this file.
1//===-- LoongArchMCAsmInfo.cpp - LoongArch Asm properties ------*- C++ -*--===//
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
9// This file contains the declarations of the LoongArchMCAsmInfo properties.
13#include "LoongArchMCAsmInfo.h"
15#include "llvm/MC/MCStreamer.h"
18using namespace llvm;
20void LoongArchMCAsmInfo::anchor() {}
23 CodePointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
24 AlignmentIsInBytes = false;
25 Data8bitsDirective = "\t.byte\t";
26 Data16bitsDirective = "\t.half\t";
27 Data32bitsDirective = "\t.word\t";
28 Data64bitsDirective = "\t.dword\t";
29 ZeroDirective = "\t.space\t";
30 CommentString = "#";
32 DwarfRegNumForCFI = true;
This file contains constants used for implementing Dwarf debug support.
LoongArchMCAsmInfo(const Triple &TargetTriple)
const char * Data16bitsDirective
Definition: MCAsmInfo.h:289
const char * Data8bitsDirective
These directives are used to output some unit of integer data to the current section.
Definition: MCAsmInfo.h:288
const char * Data64bitsDirective
Definition: MCAsmInfo.h:291
ExceptionHandling ExceptionsType
Exception handling format for the target. Defaults to None.
Definition: MCAsmInfo.h:457
const char * Data32bitsDirective
Definition: MCAsmInfo.h:290
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:454
bool AlignmentIsInBytes
If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number ...
Definition: MCAsmInfo.h:332
const char * ZeroDirective
This should be set to the directive used to get some number of zero (and non-zero if supported by the...
Definition: MCAsmInfo.h:252
bool DwarfRegNumForCFI
True if dwarf register numbers are printed instead of symbolic register names in ....
Definition: MCAsmInfo.h:488
unsigned CodePointerSize
Code pointer size in bytes. Default is 4.
Definition: MCAsmInfo.h:72
unsigned CalleeSaveStackSlotSize
Size of the stack slot reserved for callee-saved registers, in bytes.
Definition: MCAsmInfo.h:76
StringRef CommentString
This indicates the comment string used by the assembler.
Definition: MCAsmInfo.h:135
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ DwarfCFI
DWARF-like instruction based exceptions.