LLVM  6.0.0svn
MCAsmParserUtils.h
Go to the documentation of this file.
1 //===- llvm/MC/MCAsmParserUtils.h - Asm Parser Utilities --------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
11 #define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
12 
13 namespace llvm {
14 
15 class MCAsmParser;
16 class MCExpr;
17 class MCSymbol;
18 class StringRef;
19 
20 namespace MCParserUtils {
21 
22 /// Parse a value expression and return whether it can be assigned to a symbol
23 /// with the given name.
24 ///
25 /// On success, returns false and sets the Symbol and Value output parameters.
26 bool parseAssignmentExpression(StringRef Name, bool allow_redef,
27  MCAsmParser &Parser, MCSymbol *&Symbol,
28  const MCExpr *&Value);
29 
30 } // namespace MCParserUtils
31 
32 } // namespace llvm
33 
34 #endif // LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:42
Generic assembler parser interface, for use by target specific assembly parsers.
Definition: MCAsmParser.h:110
bool parseAssignmentExpression(StringRef Name, bool allow_redef, MCAsmParser &Parser, MCSymbol *&Symbol, const MCExpr *&Value)
Parse a value expression and return whether it can be assigned to a symbol with the given name...
Definition: AsmParser.cpp:5774
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:36
LLVM Value Representation.
Definition: Value.h:73
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49