9#ifndef LLVM_MC_MCASMMACRO_H
10#define LLVM_MC_MCASMMACRO_H
70 : Kind(Kind), Str(Str), IntVal(
std::
move(IntVal)) {}
72 : Kind(Kind), Str(Str), IntVal(64, IntVal,
true) {}
85 return Str.slice(1, Str.size() - 1);
110 return IntVal.getZExtValue();
115 "This token isn't an integer!");
128#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
147 std::vector<std::string> L,
bool F)
151#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
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.
Class for arbitrary precision integers.
Target independent representation for an assembler token.
LLVM_ABI SMLoc getLoc() const
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)
LLVM_ABI SMLoc getEndLoc() const
LLVM_ABI void dump(raw_ostream &OS) const
APInt getAPIntVal() const
LLVM_ABI 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
LLVM_ABI 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