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 //===----------------------------------------------------------------------===//
26 AsmParser(SourceMgr &SM) : Lexer(SM) {}
32 bool ParseStatement();
34 bool Error(SMLoc L, const char *Msg);
35 bool TokError(const char *Msg);
37 void EatToEndOfStatement();
39 bool ParseX86Operand(X86Operand &Op);
40 bool ParseX86MemOperand(X86Operand &Op);
41 bool ParseExpression(int64_t &Res);
44 } // end namespace llvm