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
26enum class WindowSchedulingFlag;
27} // namespace llvm
28
29#define OPTIONS_STRUCT_DECL
30#include "CodeGenOptions.inc"
31
32namespace llvm {
33
34class Function;
35class LLVMContext;
36class MachineFunction;
37class Module;
38
39const CodeGenOptions &getCodeGenOptions(const LLVMContext &C);
40const CodeGenOptions &getCodeGenOptions(const Function &F);
41const CodeGenOptions &getCodeGenOptions(const Module &M);
42const CodeGenOptions &getCodeGenOptions(const MachineFunction &MF);
43
44} // namespace llvm
45
46#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.
WindowSchedulingFlag
constexpr bool MachineCombinerVerifyPatternOrderDefault
const CodeGenOptions & getCodeGenOptions(const LLVMContext &C)