LLVM 24.0.0git
MCTargetOptionsCommandFlags.h
Go to the documentation of this file.
1//===-- MCTargetOptionsCommandFlags.h --------------------------*- 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// This file contains machine code-specific flags that are shared between
10// different command line tools.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
15#define LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
16
17#include "llvm/ADT/ArrayRef.h"
19
20namespace llvm {
21
22class MCTargetOptions;
23class StringRef;
24
25namespace cl {
26class LibraryOptions;
28}
29
30namespace mc {
31
32LLVM_ABI StringRef getABIName(const cl::LibraryOptionsContext &C);
33
34/// The options that a tool reading getMCTargetOptions passes to
35/// cl::parseCommandLineOptions.
37
38LLVM_ABI MCTargetOptions getMCTargetOptions(const cl::LibraryOptionsContext &C);
39
40} // namespace mc
41
42} // namespace llvm
43
44#endif
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
#define LLVM_ABI
Definition Compiler.h:211
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
The options of a library that declares them in TableGen rather than as cl::opt (see llvm/Option/Libra...
This namespace contains all of the command line option processing machinery.
LLVM_ABI MCTargetOptions getMCTargetOptions(const cl::LibraryOptionsContext &C)
LLVM_ABI ArrayRef< const cl::LibraryOptions * > getToolOptions()
The options that a tool reading getMCTargetOptions passes to cl::parseCommandLineOptions.
LLVM_ABI StringRef getABIName(const cl::LibraryOptionsContext &C)
This is an optimization pass for GlobalISel generic memory operations.
ArrayRef(const T &OneElt) -> ArrayRef< T >