LLVM
24.0.0git
lib
CodeGen
CodeGenOptions.cpp
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
#include "
CodeGenOptions.h
"
10
#include "
llvm/CodeGen/MachineFunction.h
"
11
#include "
llvm/CodeGen/MachineScheduler.h
"
12
#include "
llvm/CodeGen/WindowScheduler.h
"
13
#include "
llvm/IR/Function.h
"
14
#include "
llvm/IR/LLVMContext.h
"
15
#include "
llvm/IR/Module.h
"
16
#include "
llvm/Option/LibraryOptions.h
"
17
18
#define OPTIONS_STRUCT_DEFS
19
#include "CodeGenOptions.inc"
20
21
using namespace
llvm
;
22
23
LLVM_REGISTER_LIBRARY_OPTIONS
(llvm::CodeGenOptions)
24
25
const
CodeGenOptions &
llvm
::
getCodeGenOptions
(
const
LLVMContext
&
C
) {
26
return
C
.getLibraryOptions().
get<CodeGenOptions>
();
27
}
28
29
const
CodeGenOptions &
llvm::getCodeGenOptions
(
const
Function
&
F
) {
30
return
getCodeGenOptions
(
F
.getContext());
31
}
32
33
const
CodeGenOptions &
llvm::getCodeGenOptions
(
const
Module
&M) {
34
return
getCodeGenOptions
(M.getContext());
35
}
36
37
const
CodeGenOptions &
llvm::getCodeGenOptions
(
const
MachineFunction
&MF) {
38
return
getCodeGenOptions
(MF.
getFunction
().
getContext
());
39
}
const
aarch64 promote const
Definition
AArch64PromoteConstant.cpp:223
C
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
Function.h
Module.h
Module.h This file contains the declarations for the Module class.
LLVMContext.h
LibraryOptions.h
LLVM_REGISTER_LIBRARY_OPTIONS
#define LLVM_REGISTER_LIBRARY_OPTIONS(T)
Defines the file-scope registration of options struct T for a library that has no initialization func...
Definition
LibraryOptions.h:83
F
#define F(x, y, z)
Definition
MD5.cpp:54
MachineFunction.h
MachineScheduler.h
WindowScheduler.h
llvm::Function
Definition
Function.h:65
llvm::Function::getContext
LLVMContext & getContext() const
getContext - Return a reference to the LLVMContext associated with this function.
Definition
Function.cpp:352
llvm::LLVMContext
This is an important class for using LLVM in a threaded context.
Definition
LLVMContext.h:76
llvm::MachineFunction
Definition
MachineFunction.h:285
llvm::MachineFunction::getFunction
Function & getFunction()
Return the LLVM function that this machine code represents.
Definition
MachineFunction.h:738
llvm::Module
A Module instance is used to store all the information related to an LLVM module.
Definition
Module.h:68
CodeGenOptions.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
llvm::get
decltype(auto) get(const PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info > &Pair)
Definition
PointerIntPair.h:258
llvm::getCodeGenOptions
const CodeGenOptions & getCodeGenOptions(const LLVMContext &C)
Definition
CodeGenOptions.cpp:25
Generated on
for LLVM by
1.14.0