Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
XtensaMCAsmInfo.cpp
Go to the documentation of this file.
1//===-- XtensaMCAsmInfo.cpp - Xtensa Asm Properties -----------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6// See https://llvm.org/LICENSE.txt for license information.
7// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8//
9//===----------------------------------------------------------------------===//
10//
11// This file contains the declarations of the XtensaMCAsmInfo properties.
12//
13//===----------------------------------------------------------------------===//
14
15#include "XtensaMCAsmInfo.h"
18
19using namespace llvm;
20
34
36 const MCSpecifierExpr &Expr) const {
38 if (!S.empty())
39 OS << '%' << S << '(';
40 printExpr(OS, *Expr.getSubExpr());
41 if (!S.empty())
42 OS << ')';
43}
44
46
48 switch (S) {
49 default:
50 llvm_unreachable("Invalid ELF symbol kind");
51 }
52}
static const char * name
const char * Data64bitsDirective
Definition MCAsmInfo.h:250
ExceptionHandling ExceptionsType
Exception handling format for the target. Defaults to None.
Definition MCAsmInfo.h:359
StringRef PrivateGlobalPrefix
This prefix is used for globals like constant pool entries that are completely private to the ....
Definition MCAsmInfo.h:160
const char * GlobalDirective
This is the directive used to declare a global entity.
Definition MCAsmInfo.h:283
void printExpr(raw_ostream &, const MCExpr &) const
bool UsesELFSectionDirectiveForBSS
This is true if this target uses ELF '.section' directive before the '.bss' one.
Definition MCAsmInfo.h:263
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition MCAsmInfo.h:356
bool AlignmentIsInBytes
If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number ...
Definition MCAsmInfo.h:273
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:226
unsigned CodePointerSize
Code pointer size in bytes. Default is 4.
Definition MCAsmInfo.h:87
unsigned CalleeSaveStackSlotSize
Size of the stack slot reserved for callee-saved registers, in bytes.
Definition MCAsmInfo.h:91
StringRef CommentString
This indicates the comment string used by the assembler.
Definition MCAsmInfo.h:135
Extension point for target-specific MCExpr subclasses with a relocation specifier,...
Definition MCExpr.h:495
const MCExpr * getSubExpr() const
Definition MCExpr.h:509
Spec getSpecifier() const
Definition MCExpr.h:508
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
constexpr bool empty() const
empty - Check if the string is empty.
Definition StringRef.h:143
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:47
void printSpecifierExpr(raw_ostream &OS, const MCSpecifierExpr &Expr) const override
XtensaMCAsmInfo(const Triple &TT)
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
StringRef getSpecifierName(uint8_t S)
uint8_t parseSpecifier(StringRef name)
This is an optimization pass for GlobalISel generic memory operations.
@ DwarfCFI
DWARF-like instruction based exceptions.
Definition CodeGen.h:55