LLVM
20.0.0git
include
llvm
LTO
legacy
UpdateCompilerUsed.h
Go to the documentation of this file.
1
//==------ UpdateCompilerUsed.h - LLVM Link Time Optimizer Utility --------===//
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 declares a helper class to update llvm.compiler_used metadata.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_LTO_LEGACY_UPDATECOMPILERUSED_H
14
#define LLVM_LTO_LEGACY_UPDATECOMPILERUSED_H
15
16
#include "
llvm/ADT/StringSet.h
"
17
#include "
llvm/IR/GlobalValue.h
"
18
19
namespace
llvm
{
20
class
Module
;
21
class
TargetMachine;
22
23
/// Find all globals in \p TheModule that are referenced in
24
/// \p AsmUndefinedRefs, as well as the user-supplied functions definitions that
25
/// are also libcalls, and create or update the magic "llvm.compiler_used"
26
/// global in \p TheModule.
27
void
updateCompilerUsed
(
Module
&TheModule,
const
TargetMachine &TM,
28
const
StringSet<> &AsmUndefinedRefs);
29
}
30
31
#endif
// LLVM_LTO_LEGACY_UPDATECOMPILERUSED_H
GlobalValue.h
Module
Machine Check Debug Module
Definition:
MachineCheckDebugify.cpp:124
StringSet.h
StringSet - A set-like wrapper for the StringMap.
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::updateCompilerUsed
void updateCompilerUsed(Module &TheModule, const TargetMachine &TM, const StringSet<> &AsmUndefinedRefs)
Find all globals in TheModule that are referenced in AsmUndefinedRefs, as well as the user-supplied f...
Definition:
UpdateCompilerUsed.cpp:123
Generated on Fri Nov 1 2024 04:14:11 for LLVM by
1.9.6