LLVM
24.0.0git
lib
Transforms
Instrumentation
InstrumentationOptions.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 "
InstrumentationOptions.h
"
10
#include "
llvm/IR/Function.h
"
11
#include "
llvm/IR/LLVMContext.h
"
12
#include "
llvm/IR/Module.h
"
13
#include "
llvm/Option/LibraryOptions.h
"
14
15
#define OPTIONS_STRUCT_DEFS
16
#include "InstrumentationOptions.inc"
17
18
using namespace
llvm
;
19
20
static
llvm::opt::RegisterLibraryOptions<llvm::InstrumentationOptions>
21
Registration
;
22
23
const
InstrumentationOptions &
24
llvm::getInstrumentationOptions
(
const
LLVMContext
&
C
) {
25
return
C
.getLibraryOptions().get<InstrumentationOptions>();
26
}
27
28
const
InstrumentationOptions &
llvm::getInstrumentationOptions
(
const
Module
&M) {
29
return
getInstrumentationOptions
(M.getContext());
30
}
31
32
const
InstrumentationOptions &
33
llvm::getInstrumentationOptions
(
const
Function
&
F
) {
34
return
getInstrumentationOptions
(
F
.getContext());
35
}
C
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
Registration
static llvm::opt::RegisterLibraryOptions< llvm::CGDataOptions > Registration
Definition
CGDataOptions.cpp:15
Function.h
Module.h
Module.h This file contains the declarations for the Module class.
InstrumentationOptions.h
LLVMContext.h
LibraryOptions.h
F
#define F(x, y, z)
Definition
MD5.cpp:54
llvm::Function
Definition
Function.h:65
llvm::LLVMContext
This is an important class for using LLVM in a threaded context.
Definition
LLVMContext.h:76
llvm::Module
A Module instance is used to store all the information related to an LLVM module.
Definition
Module.h:68
llvm::opt::RegisterLibraryOptions
Registers T::Global with cl::ParseCommandLineOptions.
Definition
LibraryOptions.h:161
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
llvm::getInstrumentationOptions
const InstrumentationOptions & getInstrumentationOptions(const LLVMContext &C)
Definition
InstrumentationOptions.cpp:24
Generated on
for LLVM by
1.14.0