LLVM
10.0.0
include
llvm
Transforms
Utils
CtorUtils.h
Go to the documentation of this file.
1
//===- CtorUtils.h - Helpers for working with global_ctors ------*- C++ -*-===//
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 defines functions that are used to process llvm.global_ctors.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_TRANSFORMS_UTILS_CTORUTILS_H
14
#define LLVM_TRANSFORMS_UTILS_CTORUTILS_H
15
16
#include "
llvm/ADT/STLExtras.h
"
17
18
namespace
llvm
{
19
20
class
GlobalVariable;
21
class
Function
;
22
class
Module;
23
24
/// Call "ShouldRemove" for every entry in M's global_ctor list and remove the
25
/// entries for which it returns true. Return true if anything changed.
26
bool
optimizeGlobalCtorsList
(Module &M,
27
function_ref<
bool
(Function *)> ShouldRemove);
28
29
}
// End llvm namespace
30
31
#endif
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::codeview::PublicSymFlags::Function
STLExtras.h
llvm::optimizeGlobalCtorsList
bool optimizeGlobalCtorsList(Module &M, function_ref< bool(Function *)> ShouldRemove)
Call "ShouldRemove" for every entry in M's global_ctor list and remove the entries for which it retur...
Definition:
CtorUtils.cpp:116
Generated on Tue Mar 24 2020 13:08:35 for LLVM by
1.8.13