10 #ifndef LLVM_MC_MCASMMACRO_H 11 #define LLVM_MC_MCASMMACRO_H 78 : Kind(Kind), Str(Str), IntVal(
std::move(IntVal)) {}
80 : Kind(Kind), Str(Str), IntVal(64, IntVal,
true) {}
123 "This token isn't an integer!");
151 : Name(N), Body(B), Parameters(
std::move(P)) {}
Represents a range in source code.
AsmToken(TokenKind Kind, StringRef Str, APInt IntVal)
StringRef getString() const
Get the string for the current token, this includes all characters (for example, the quotes on string...
uint64_t getZExtValue() const
Get zero extended value.
This class represents lattice values for constants.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
bool isNot(TokenKind K) const
block Block Frequency true
SMRange getLocRange() const
StringRef getIdentifier() const
Get the identifier string for the current token, which should be an identifier or a string...
Target independent representation for an assembler token.
This file implements a class to represent arbitrary precision integral constant values and operations...
MCAsmMacro(StringRef N, StringRef B, MCAsmMacroParameters P)
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
MCAsmMacroParameters Parameters
int64_t getIntVal() const
AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal=0)
std::vector< MCAsmMacroParameter > MCAsmMacroParameters
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE StringRef slice(size_t Start, size_t End) const
Return a reference to the substring from [Start, End).
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
bool is(TokenKind K) const
Class for arbitrary precision integers.
APInt getAPIntVal() const
StringRef getStringContents() const
Get the contents of a string token (without quotes).
std::vector< AsmToken > Value
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Represents a location in source code.
TokenKind getKind() const