LLVM
15.0.0git
include
llvm
MC
MCParser
MCAsmParserUtils.h
Go to the documentation of this file.
1
//===- llvm/MC/MCAsmParserUtils.h - Asm Parser Utilities --------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
10
#define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
11
12
namespace
llvm
{
13
14
class
MCAsmParser;
15
class
MCExpr;
16
class
MCSymbol
;
17
class
StringRef;
18
19
namespace
MCParserUtils {
20
21
/// Parse a value expression and return whether it can be assigned to a symbol
22
/// with the given name.
23
///
24
/// On success, returns false and sets the Symbol and Value output parameters.
25
bool
parseAssignmentExpression
(
StringRef
Name
,
bool
allow_redef,
26
MCAsmParser
&Parser,
MCSymbol
*&
Symbol
,
27
const
MCExpr
*&
Value
);
28
29
}
// namespace MCParserUtils
30
31
}
// namespace llvm
32
33
#endif // LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
llvm::MCAsmParser
Generic assembler parser interface, for use by target specific assembly parsers.
Definition:
MCAsmParser.h:124
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:17
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:41
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:58
llvm::GraphProgram::Name
Name
Definition:
GraphWriter.h:50
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition:
ARMBuildAttributes.h:83
llvm::MCParserUtils::parseAssignmentExpression
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:6383
llvm::Value
LLVM Value Representation.
Definition:
Value.h:74
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:35
llvm::ISD::MCSymbol
@ MCSymbol
Definition:
ISDOpcodes.h:172
Generated on Fri Jul 1 2022 12:36:39 for LLVM by
1.8.17