LLVM 22.0.0git
RegisterTargetPassConfigCallback.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/// This file contains the registry for PassConfigCallbacks that enable changes
10/// to the TargetPassConfig during the initialization of TargetMachine.
11///
12//===----------------------------------------------------------------------===//
13
15
16namespace llvm {
17// TargetPassConfig callbacks
20
23 TargetPassConfig *PassConfig) {
25 Reg->Callback(TM, PM, PassConfig);
26}
27
33
39} // namespace llvm
Register Reg
LLVM_ABI RegisterTargetPassConfigCallback(PassConfigCallback &&C)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Primary interface to the complete machine description for the target machine.
Target-Independent Code Generator Pass Configuration Options.
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
@ C
The default llvm calling convention, compatible with C.
Definition CallingConv.h:34
This is an optimization pass for GlobalISel generic memory operations.
auto find(R &&Range, const T &Val)
Provide wrappers to std::find which take ranges instead of having to pass begin/end explicitly.
Definition STLExtras.h:1753
std::function< void(TargetMachine &, PassManagerBase &, TargetPassConfig *)> PassConfigCallback
LLVM_ABI void invokeGlobalTargetPassConfigCallbacks(TargetMachine &TM, PassManagerBase &PM, TargetPassConfig *PassConfig)
static SmallVector< RegisterTargetPassConfigCallback *, 1 > TargetPassConfigCallbacks
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition STLExtras.h:1869
Implement std::hash so that hash_code can be used in STL containers.
Definition BitVector.h:851