Go to the documentation of this file.
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)
153 std::vector<std::string> L,
bool F)
157 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
This is an optimization pass for GlobalISel generic memory operations.
bool is(TokenKind K) const
MCAsmMacroParameters Parameters
std::vector< AsmToken > Value
This currently compiles esp xmm0 movsd esp eax eax esp ret We should use not the dag combiner This is because dagcombine2 needs to be able to see through the X86ISD::Wrapper which DAGCombine can t really do The code for turning x load into a single vector load is target independent and should be moved to the dag combiner The code for turning x load into a vector load can only handle a direct load from a global or a direct load from the stack It should be generalized to handle any load from P
int64_t getIntVal() const
MCAsmMacro(StringRef N, StringRef B, MCAsmMacroParameters P)
MCAsmMacro(StringRef N, StringRef B, MCAsmMacroParameters P, std::vector< std::string > L, bool F)
StringRef getStringContents() const
Get the contents of a string token (without quotes).
Target independent representation for an assembler token.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
Represents a location in source code.
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
std::vector< MCAsmMacroParameter > MCAsmMacroParameters
This class implements an extremely fast bulk output stream that can only output to a stream.
TokenKind getKind() const
void dump(raw_ostream &OS) const
APInt getAPIntVal() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
AsmToken(TokenKind Kind, StringRef Str, APInt IntVal)
Class for arbitrary precision integers.
StringRef - Represent a constant reference to a string, i.e.
StringRef getString() const
Get the string for the current token, this includes all characters (for example, the quotes on string...
bool isNot(TokenKind K) const
std::vector< std::string > Locals
SMRange getLocRange() const
Represents a range in source code.
StringRef getIdentifier() const
Get the identifier string for the current token, which should be an identifier or a string.
AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal=0)