[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git] / include / llvm / MC / MCParser / MCAsmParserUtils.h
blobd692da7402fefef57cb127809859b1fff379a77b
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
10 #define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
12 namespace llvm {
14 class MCAsmParser;
15 class MCExpr;
16 class MCSymbol;
17 class StringRef;
19 namespace MCParserUtils {
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);
29 } // namespace MCParserUtils
31 } // namespace llvm
33 #endif // LLVM_MC_MCPARSER_MCASMPARSERUTILS_H