1 //===- AsmParser.h - Parser for Assembly Files ------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This class declares the parser for assembly files.
12 //===----------------------------------------------------------------------===//
30 AsmParser(SourceMgr &SM, MCStreamer &OutStr) : Lexer(SM), Out(OutStr) {}
36 bool ParseStatement();
38 bool Error(SMLoc L, const char *Msg);
39 bool TokError(const char *Msg);
41 void EatToEndOfStatement();
43 bool ParseExpression(int64_t &Res);
44 bool ParsePrimaryExpr(int64_t &Res);
45 bool ParseBinOpRHS(unsigned Precedence, int64_t &Res);
46 bool ParseParenExpr(int64_t &Res);
49 bool ParseX86InstOperands(MCInst &Inst);
50 bool ParseX86Operand(X86Operand &Op);
51 bool ParseX86MemOperand(X86Operand &Op);
54 } // end namespace llvm