LLVM 20.0.0git
ARMTargetParserCommon.h
Go to the documentation of this file.
1//===---------------- ARMTargetParserCommon ---------------------*- 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// Code that is common to ARMTargetParser and AArch64TargetParser.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_TARGETPARSER_ARMTARGETPARSERCOMMON_H
14#define LLVM_TARGETPARSER_ARMTARGETPARSERCOMMON_H
15
16#include "llvm/ADT/StringRef.h"
17
18namespace llvm {
19namespace ARM {
20
21enum class ISAKind { INVALID = 0, ARM, THUMB, AARCH64 };
22
23enum class EndianKind { INVALID = 0, LITTLE, BIG };
24
25/// Converts e.g. "armv8" -> "armv8-a"
27
28/// MArch is expected to be of the form (arm|thumb)?(eb)?(v.+)?(eb)?, but
29/// (iwmmxt|xscale)(eb)? is also permitted. If the former, return
30/// "v.+", if the latter, return unmodified string, minus 'eb'.
31/// If invalid, return empty string.
33
34// ARM, Thumb, AArch64
36
37// Little/Big endian
39
46};
47
49 StringRef &Err, bool EnablePAuthLR = false);
50
51} // namespace ARM
52} // namespace llvm
53#endif
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
StringRef getCanonicalArchName(StringRef Arch)
MArch is expected to be of the form (arm|thumb)?(eb)?(v.
ISAKind parseArchISA(StringRef Arch)
StringRef getArchSynonym(StringRef Arch)
Converts e.g. "armv8" -> "armv8-a".
bool parseBranchProtection(StringRef Spec, ParsedBranchProtection &PBP, StringRef &Err, bool EnablePAuthLR=false)
EndianKind parseArchEndian(StringRef Arch)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18