LLVM
24.0.0git
lib
CodeGen
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
12
#include "
llvm/Target/TargetOptions.h
"
13
#include <cstdint>
14
#include <optional>
15
16
namespace
llvm
{
17
#ifdef EXPENSIVE_CHECKS
18
constexpr
bool
MachineCombinerVerifyPatternOrderDefault
=
true
;
19
#else
20
constexpr
bool
MachineCombinerVerifyPatternOrderDefault
=
false
;
21
#endif
22
23
namespace
MISched
{
24
enum
Direction
:
unsigned
;
25
}
// namespace MISched
26
}
// namespace llvm
27
28
#define OPTIONS_STRUCT_DECL
29
#include "CodeGenOptions.inc"
30
31
namespace
llvm
{
32
33
class
Function
;
34
class
LLVMContext;
35
class
MachineFunction
;
36
class
Module
;
37
38
const
CodeGenOptions &
getCodeGenOptions
(
const
LLVMContext &
C
);
39
const
CodeGenOptions &
getCodeGenOptions
(
const
Function
&
F
);
40
const
CodeGenOptions &
getCodeGenOptions
(
const
Module
&M);
41
const
CodeGenOptions &
getCodeGenOptions
(
const
MachineFunction
&MF);
42
43
}
// namespace llvm
44
45
#endif
// LLVM_LIB_CODEGEN_CODEGENOPTIONS_H
C
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
Direction
Loop::LoopBounds::Direction Direction
Definition
LoopInfo.cpp:249
F
#define F(x, y, z)
Definition
MD5.cpp:54
Module
Machine Check Debug Module
Definition
MachineCheckDebugify.cpp:133
TargetOptions.h
unsigned
llvm::MISched
Definition
MachineScheduler.h:113
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
llvm::IRUnitKind::MachineFunction
@ MachineFunction
Definition
IRUnitRef.h:35
llvm::IRUnitKind::Function
@ Function
Definition
IRUnitRef.h:33
llvm::MachineCombinerVerifyPatternOrderDefault
constexpr bool MachineCombinerVerifyPatternOrderDefault
Definition
CodeGenOptions.h:20
llvm::getCodeGenOptions
const CodeGenOptions & getCodeGenOptions(const LLVMContext &C)
Definition
CodeGenOptions.cpp:24
Generated on
for LLVM by
1.14.0