9#ifndef LLVM_MC_MCASMMACRO_H
10#define LLVM_MC_MCASMMACRO_H
77 : Kind(Kind), Str(Str), IntVal(
std::
move(IntVal)) {}
79 : Kind(Kind), Str(Str), IntVal(64, IntVal,
true) {}
92 return Str.slice(1, Str.size() - 1);
117 return IntVal.getZExtValue();
122 "This token isn't an integer!");
135#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
154 std::vector<std::string> L,
bool F)
158#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
This file implements a class to represent arbitrary precision integral constant values and operations...
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Class for arbitrary precision integers.
Target independent representation for an assembler token.
int64_t getIntVal() const
bool isNot(TokenKind K) const
StringRef getString() const
Get the string for the current token, this includes all characters (for example, the quotes on string...
AsmToken(TokenKind Kind, StringRef Str, APInt IntVal)
StringRef getStringContents() const
Get the contents of a string token (without quotes).
bool is(TokenKind K) const
TokenKind getKind() const
AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal=0)
void dump(raw_ostream &OS) const
APInt getAPIntVal() const
SMRange getLocRange() const
StringRef getIdentifier() const
Get the identifier string for the current token, which should be an identifier or a string.
Represents a location in source code.
Represents a range in source code.
StringRef - Represent a constant reference to a string, i.e.
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.
std::vector< MCAsmMacroParameter > MCAsmMacroParameters
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.
std::vector< AsmToken > Value
std::vector< std::string > Locals
MCAsmMacro(StringRef N, StringRef B, MCAsmMacroParameters P, std::vector< std::string > L, bool F)
MCAsmMacro(StringRef N, StringRef B, MCAsmMacroParameters P)
MCAsmMacroParameters Parameters