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
16namespace llvm {
17#ifdef EXPENSIVE_CHECKS
19#else
21#endif
22
23namespace MISched {
24enum Direction : unsigned;
25} // namespace MISched
26} // namespace llvm
27
28#define OPTIONS_STRUCT_DECL
29#include "CodeGenOptions.inc"
30
31namespace llvm {
32
33class Function;
34class LLVMContext;
35class MachineFunction;
36class Module;
37
38const CodeGenOptions &getCodeGenOptions(const LLVMContext &C);
39const CodeGenOptions &getCodeGenOptions(const Function &F);
40const CodeGenOptions &getCodeGenOptions(const Module &M);
41const CodeGenOptions &getCodeGenOptions(const MachineFunction &MF);
42
43} // namespace llvm
44
45#endif // LLVM_LIB_CODEGEN_CODEGENOPTIONS_H
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
Loop::LoopBounds::Direction Direction
Definition LoopInfo.cpp:249
#define F(x, y, z)
Definition MD5.cpp:54
Machine Check Debug Module
This is an optimization pass for GlobalISel generic memory operations.
constexpr bool MachineCombinerVerifyPatternOrderDefault
const CodeGenOptions & getCodeGenOptions(const LLVMContext &C)