Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:11

0001 //==------ UpdateCompilerUsed.h - LLVM Link Time Optimizer Utility --------===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file declares a helper class to update llvm.compiler_used metadata.
0010 //
0011 //===----------------------------------------------------------------------===//
0012 
0013 #ifndef LLVM_LTO_LEGACY_UPDATECOMPILERUSED_H
0014 #define LLVM_LTO_LEGACY_UPDATECOMPILERUSED_H
0015 
0016 #include "llvm/ADT/StringSet.h"
0017 #include "llvm/IR/GlobalValue.h"
0018 
0019 namespace llvm {
0020 class Module;
0021 class TargetMachine;
0022 
0023 /// Find all globals in \p TheModule that are referenced in
0024 /// \p AsmUndefinedRefs, as well as the user-supplied functions definitions that
0025 /// are also libcalls, and create or update the magic "llvm.compiler_used"
0026 /// global in \p TheModule.
0027 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
0028                         const StringSet<> &AsmUndefinedRefs);
0029 }
0030 
0031 #endif // LLVM_LTO_LEGACY_UPDATECOMPILERUSED_H