#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
usingnamespacellvm;
namespace llvm {
cl::opt<unsigned> AsmMacroMaxNestingDepth(
"asm-macro-max-nesting-depth", cl::init(20), cl::Hidden,
cl::desc("The maximum nesting depth allowed for assembly macros."));
}
MCAsmParser::MCAsmParser() = default;
MCAsmParser::~MCAsmParser() = default;
void MCAsmParser::setTargetParser(MCTargetAsmParser &P) { … }
const AsmToken &MCAsmParser::getTok() const { … }
bool MCAsmParser::parseTokenLoc(SMLoc &Loc) { … }
bool MCAsmParser::parseEOL() { … }
bool MCAsmParser::parseEOL(const Twine &Msg) { … }
bool MCAsmParser::parseToken(AsmToken::TokenKind T, const Twine &Msg) { … }
bool MCAsmParser::parseIntToken(int64_t &V, const Twine &Msg) { … }
bool MCAsmParser::parseOptionalToken(AsmToken::TokenKind T) { … }
bool MCAsmParser::check(bool P, const Twine &Msg) { … }
bool MCAsmParser::check(bool P, SMLoc Loc, const Twine &Msg) { … }
bool MCAsmParser::TokError(const Twine &Msg, SMRange Range) { … }
bool MCAsmParser::Error(SMLoc L, const Twine &Msg, SMRange Range) { … }
bool MCAsmParser::addErrorSuffix(const Twine &Suffix) { … }
bool MCAsmParser::parseMany(function_ref<bool()> parseOne, bool hasComma) { … }
bool MCAsmParser::parseExpression(const MCExpr *&Res) { … }
bool MCAsmParser::parseGNUAttribute(SMLoc L, int64_t &Tag,
int64_t &IntegerValue) { … }
void MCParsedAsmOperand::dump() const { … }