LLVM
24.0.0git
lib
IR
IROptions.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_IR_IROPTIONS_H
10
#define LLVM_LIB_IR_IROPTIONS_H
11
12
#include "llvm/Config/llvm-config.h"
13
#include "
llvm/IR/LLVMContext.h
"
14
15
namespace
llvm
{
16
#ifdef LLVM_ENABLE_PROFCHECK
17
constexpr
bool
ElideAllZeroBranchWeightsDefault
=
false
;
18
#else
19
constexpr
bool
ElideAllZeroBranchWeightsDefault
=
true
;
20
#endif
21
}
// namespace llvm
22
23
#define OPTIONS_STRUCT_DECL
24
#include "IROptions.inc"
25
26
namespace
llvm
{
27
inline
const
IROptions &
getIROptions
(
const
LLVMContext
&
C
) {
28
return
C
.getLibraryOptions().get<IROptions>();
29
}
30
}
// namespace llvm
31
32
#endif
// LLVM_LIB_IR_IROPTIONS_H
C
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
LLVMContext.h
llvm::LLVMContext
This is an important class for using LLVM in a threaded context.
Definition
LLVMContext.h:76
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
llvm::getIROptions
const IROptions & getIROptions(const LLVMContext &C)
Definition
IROptions.h:27
llvm::ElideAllZeroBranchWeightsDefault
constexpr bool ElideAllZeroBranchWeightsDefault
Definition
IROptions.h:19
Generated on
for LLVM by
1.14.0