|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
include/llvm/IR/Module.h
901
902 /// Given "llvm.used" or "llvm.compiler.used" as a global name, collect
903 /// the initializer elements of that global in Set and return the global itself.
lib/Analysis/ModuleSummaryAnalysis.cpp
776 setLiveRoot(Index, "llvm.used");
777 setLiveRoot(Index, "llvm.compiler.used");
778 setLiveRoot(Index, "llvm.global_ctors");
lib/CodeGen/GlobalMerge.cpp
578 collectUsedGlobalVariables(M, "llvm.used");
579 collectUsedGlobalVariables(M, "llvm.compiler.used");
580
lib/IR/Module.cpp
599 const Module &M, SmallPtrSetImpl<GlobalValue *> &Set, bool CompilerUsed) {
600 const char *Name = CompilerUsed ? "llvm.compiler.used" : "llvm.used";
601 GlobalVariable *GV = M.getGlobalVariable(Name);
lib/IR/Verifier.cpp
663 if (GV.hasName() && (GV.getName() == "llvm.used" ||
664 GV.getName() == "llvm.compiler.used")) {
665 Assert(!GV.hasInitializer() || GV.hasAppendingLinkage(),
lib/LTO/LTOCodeGenerator.cpp
383 // sure we honor this. To force the compiler to not drop it, we add it to the
384 // "llvm.compiler.used" global.
385 void LTOCodeGenerator::preserveDiscardableGVs(
lib/Transforms/IPO/ConstantMerge.cpp
137 FindUsedValues(M.getGlobalVariable("llvm.used"), UsedGlobals);
138 FindUsedValues(M.getGlobalVariable("llvm.compiler.used"), UsedGlobals);
139
lib/Transforms/IPO/Internalize.cpp
197 AlwaysPreserved.insert("llvm.used");
198 AlwaysPreserved.insert("llvm.compiler.used");
199
lib/Transforms/IPO/StripSymbols.cpp
207 findUsedValues(M.getGlobalVariable("llvm.used"), llvmUsedValues);
208 findUsedValues(M.getGlobalVariable("llvm.compiler.used"), llvmUsedValues);
209
lib/Transforms/Utils/ModuleUtils.cpp
105 void llvm::appendToCompilerUsed(Module &M, ArrayRef<GlobalValue *> Values) {
106 appendToUsedList(M, "llvm.compiler.used", Values);
107 }
tools/bugpoint/CrashDebugger.cpp
301 RemoveFunctionReferences(M.get(), "llvm.used");
302 RemoveFunctionReferences(M.get(), "llvm.compiler.used");
303 }
tools/clang/lib/CodeGen/BackendUtil.cpp
1682 *M, ATy, false, llvm::GlobalValue::AppendingLinkage,
1683 llvm::ConstantArray::get(ATy, UsedArray), "llvm.compiler.used");
1684 NewUsed->setSection("llvm.metadata");
tools/clang/lib/CodeGen/CodeGenModule.cpp
1924 emitUsed(*this, "llvm.used", LLVMUsed);
1925 emitUsed(*this, "llvm.compiler.used", LLVMCompilerUsed);
1926 }