LLVM 24.0.0git
CodeGenOptions.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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_LIB_CODEGEN_CODEGENOPTIONS_H
10#define LLVM_LIB_CODEGEN_CODEGENOPTIONS_H
11
13#include <cstdint>
14#include <optional>
15
16#define OPTIONS_STRUCT_DECL
17#include "CodeGenOptions.inc"
18
19namespace llvm {
20
21class LLVMContext;
22class MachineFunction;
23class Module;
24
25const CodeGenOptions &getCodeGenOptions(const LLVMContext &C);
26const CodeGenOptions &getCodeGenOptions(const Module &M);
27const CodeGenOptions &getCodeGenOptions(const MachineFunction &MF);
28
29} // namespace llvm
30
31#endif // LLVM_LIB_CODEGEN_CODEGENOPTIONS_H
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
Machine Check Debug Module
This is an optimization pass for GlobalISel generic memory operations.
const CodeGenOptions & getCodeGenOptions(const LLVMContext &C)