34 if (
Options.BinutilsVersion.first > 0)
118 if (
C ==
'[' ||
C ==
']')
135 for (
char C : Name) {
146 for (
const auto &
Desc : Descs) {
147 [[maybe_unused]]
auto It =
149 assert(It.second &&
"duplicate Kind");
150 [[maybe_unused]]
auto It2 =
159 "ensure the specifier is set in initializeVariantKinds");
173 "need to implement hook if target uses MCSpecifierExpr");
176 Expr.print(OS,
this);
186 if (!E.getSubExpr()->evaluateAsRelocatable(Res, Asm))
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
This file contains constants used for implementing Dwarf debug support.
std::unique_ptr< MCStreamer > && Streamer
A container which contains a StringRef plus a precomputed hash.
void addInitialFrameState(const MCCFIInstruction &Inst)
bool(* SpecifierExprEvaluateFn)(const MCSpecifierExpr &E, MCValue &Res, const MCAssembler *Asm)
unsigned DwarfSectionOffSpecifierExpr
If non-zero, MCSpecifierExpr kind used as base for DWARF-relative exprs.
bool UseAtForSpecifier
True if target uses @ (expr@specifier) for relocation specifiers.
std::optional< unsigned > CompInstByteOrderFeature
Feature that indicates mixed-endian byte order.
std::vector< MCCFIInstruction > InitialFrameState
llvm::DenseSet< llvm::CachedHashStringRef > & getReservedIdentifiers()
bool evaluateAsRelocatableImpl(const MCSpecifierExpr &, MCValue &Res, const MCAssembler *Asm) const
bool doesAllowAtInName() const
const MCTargetOptions & TargetOptions
StringRef getSpecifierName(uint32_t S) const
MCAsmInfo(const MCTargetOptions &Options)
std::optional< uint32_t > getSpecifierForName(StringRef Name) const
void printExpr(raw_ostream &, const MCExpr &) const
uint16_t DwarfFDERelSymbolSpec
The optional specifier to use for the relative FDE symbol references.
int DwarfPersonalitySymbolsAbsOff
Non-zero if DWARF personality symbol reference relocations should have a constant addend instead of b...
unsigned getAsmMacroMaxNestingDepth() const
llvm::DenseMap< AtSpecifierKind, StringRef > AtSpecifierToName
void(* SpecifierExprPrintFn)(const MCAsmInfo &, raw_ostream &, const MCSpecifierExpr &)
const MCExpr * getExprForFDESymbol(const MCSymbol *Sym, unsigned Encoding, MCStreamer &Streamer) const
const MCExpr * getDwarfSectionOffsetExpr(const MCSymbol *Sym, uint64_t Offset, MCContext &Ctx) const
Return the expression used to emit the offset of Sym + Offset from the start of its DWARF section.
bool isAcceptableChar(char C) const
Return true if C is an acceptable character inside a symbol name.
llvm::StringMap< AtSpecifierKind > NameToAtSpecifier
bool SupportsExtendedDwarfLocDirective
True if the target supports flags in ".loc" directive, false if only location is allowed.
void initializeAtSpecifiers(EnumStrings< AtSpecifierKind, 1 >)
uint16_t DwarfPersonalitySymbolSpec
The optional specifier to use for the personality symbol references.
const MCExpr * getExprForPersonalitySymbol(const MCSymbol *Sym, unsigned Encoding, MCStreamer &Streamer) const
bool usesCompInstByteOrder(const MCSubtargetInfo &STI) const
True if the instruction is stored in multiple halfwords, with the high-order half appearing first in ...
std::pair< int, int > BinutilsVersion
bool HasLEB128Directives
True if the target supports LEB128 directives.
bool isValidUnquotedName(StringRef Name) const
Return true if the identifier Name does not need quotes to be syntactically correct.
static const MCBinaryExpr * createAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx, SMLoc Loc=SMLoc())
static const MCBinaryExpr * createSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static LLVM_ABI const MCConstantExpr * create(int64_t Value, MCContext &Ctx, bool PrintInHex=false, unsigned SizeInBytes=0)
Context object for machine code objects.
Base class for the full range of assembler expressions which are needed for parsing.
Extension point for target-specific MCExpr subclasses with a relocation specifier,...
static const MCSpecifierExpr * create(const MCExpr *Expr, Spec S, MCContext &Ctx, SMLoc Loc=SMLoc())
Streaming machine code generation interface.
Generic base class for all target subtargets.
bool hasFeature(unsigned Feature) const
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx, SMLoc Loc=SMLoc())
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
void setSpecifier(uint32_t S)
const MCSymbol * getSubSym() const
Represent a constant reference to a string, i.e.
bool contains(const_arg_type_t< ValueT > V) const
Check if the set contains the given element.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
const MCCLOptions & getMCCLOptions(const MCTargetOptions &Options)
@ Off
Use window algorithm after SMS algorithm fails.
bool isAlnum(char C)
Checks whether character C is either a decimal digit or an uppercase or lowercase letter as classifie...
constexpr bool valueOr(BoolOrDefault X, bool Default)