• Home
  • Raw
  • Download

Lines Matching +full:helper +full:- +full:module +full:- +full:transforms

1 //==-LTOInternalize.cpp - LLVM Link Time Optimizer Internalization Utility -==//
8 //===----------------------------------------------------------------------===//
10 // This file defines a helper to run the internalization part of LTO.
12 //===----------------------------------------------------------------------===//
20 #include "llvm/Transforms/IPO/Internalize.h"
26 // Helper class that collects AsmUsed and user supplied libcalls.
34 void findInModule(const Module &TheModule) { in findInModule()
56 // Collect names of runtime library functions. User-defined functions with the
59 void initializeLibCalls(const Module &TheModule) { in initializeLibCalls()
76 TM.getSubtargetImpl(F)->getTargetLowering(); in initializeLibCalls()
80 // available, both from the C runtime and compiler-rt. in initializeLibCalls()
84 Lowering->getLibcallName(static_cast<RTLIB::Libcall>(I))) in initializeLibCalls()
98 // Conservatively append user-supplied runtime library functions to in findLibCallsAndAsm()
100 // optimizations like -globalopt, causing problems when later optimizations in findLibCallsAndAsm()
102 // Leave it to the linker to remove any dead code (e.g. with -dead_strip). in findLibCallsAndAsm()
115 void llvm::updateCompilerUsed(Module &TheModule, const TargetMachine &TM, in updateCompilerUsed()
134 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in updateCompilerUsed()
135 for (auto &V : Inits->operands()) in updateCompilerUsed()
137 LLVMUsed->eraseFromParent(); in updateCompilerUsed()
145 LLVMUsed->setSection("llvm.metadata"); in updateCompilerUsed()