LLVM 24.0.0git
PassesOptions.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_PASSES_PASSESOPTIONS_H
10#define LLVM_LIB_PASSES_PASSESOPTIONS_H
11
13#include "llvm/IR/LLVMContext.h"
16
17#define OPTIONS_STRUCT_DECL
18#include "PassesOptions.inc"
19
20namespace llvm {
21
22inline const PassesOptions &getPassesOptions(const LLVMContext &C) {
23 return C.getLibraryOptions().get<PassesOptions>();
24}
25
26} // namespace llvm
27
28#endif // LLVM_LIB_PASSES_PASSESOPTIONS_H
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
This is an important class for using LLVM in a threaded context.
Definition LLVMContext.h:76
Interfaces for registering analysis passes, producing common pass manager configurations,...
This is an optimization pass for GlobalISel generic memory operations.
const PassesOptions & getPassesOptions(const LLVMContext &C)