LLVM 22.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"
18
19namespace llvm {
20namespace ARM {
21
22enum class ISAKind { INVALID = 0, ARM, THUMB, AARCH64 };
23
24enum class EndianKind { INVALID = 0, LITTLE, BIG };
25
26/// Converts e.g. "armv8" -> "armv8-a"
28
29/// MArch is expected to be of the form (arm|thumb)?(eb)?(v.+)?(eb)?, but
30/// (iwmmxt|xscale)(eb)? is also permitted. If the former, return
31/// "v.+", if the latter, return unmodified string, minus 'eb'.
32/// If invalid, return empty string.
34
35// ARM, Thumb, AArch64
37
38// Little/Big endian
40
47};
48
50 StringRef &Err, bool EnablePAuthLR = false);
51
52} // namespace ARM
53} // namespace llvm
54#endif
#define LLVM_ABI
Definition: Compiler.h:213
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:55
LLVM_ABI StringRef getCanonicalArchName(StringRef Arch)
MArch is expected to be of the form (arm|thumb)?(eb)?(v.
LLVM_ABI ISAKind parseArchISA(StringRef Arch)
LLVM_ABI StringRef getArchSynonym(StringRef Arch)
Converts e.g. "armv8" -> "armv8-a".
LLVM_ABI bool parseBranchProtection(StringRef Spec, ParsedBranchProtection &PBP, StringRef &Err, bool EnablePAuthLR=false)
LLVM_ABI EndianKind parseArchEndian(StringRef Arch)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18