/external/llvm/lib/LTO/ |
D | UpdateCompilerUsed.cpp | 31 SmallPtrSetImpl<const GlobalValue *> &LLVMUsed) in PreserveLibCallsAndAsmUsed() argument 32 : AsmUndefinedRefs(AsmUndefinedRefs), TM(TM), LLVMUsed(LLVMUsed) {} in PreserveLibCallsAndAsmUsed() 54 SmallPtrSetImpl<const GlobalValue *> &LLVMUsed; member in __anon94f559a80111::PreserveLibCallsAndAsmUsed 104 LLVMUsed.insert(&GV); in findLibCallsAndAsm() 109 LLVMUsed.insert(&GV); in findLibCallsAndAsm() 132 GlobalVariable *LLVMUsed = TheModule.getGlobalVariable("llvm.compiler.used"); in updateCompilerUsed() local 133 if (LLVMUsed) { in updateCompilerUsed() 134 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in updateCompilerUsed() 137 LLVMUsed->eraseFromParent(); in updateCompilerUsed() 141 LLVMUsed = new llvm::GlobalVariable( in updateCompilerUsed() [all …]
|
D | LTOCodeGenerator.cpp | 367 if (GlobalVariable *LLVMUsed = in preserveDiscardableGVs() local 369 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in preserveDiscardableGVs() 372 LLVMUsed->eraseFromParent(); in preserveDiscardableGVs() 404 auto *LLVMUsed = new llvm::GlobalVariable( in preserveDiscardableGVs() local 408 LLVMUsed->setSection("llvm.metadata"); in preserveDiscardableGVs()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/ |
D | UpdateCompilerUsed.cpp | 31 std::vector<GlobalValue *> &LLVMUsed) in PreserveLibCallsAndAsmUsed() argument 32 : AsmUndefinedRefs(AsmUndefinedRefs), TM(TM), LLVMUsed(LLVMUsed) {} in PreserveLibCallsAndAsmUsed() 54 std::vector<GlobalValue *> &LLVMUsed; member in __anonff87e7000111::PreserveLibCallsAndAsmUsed 104 LLVMUsed.push_back(&GV); in findLibCallsAndAsm() 111 LLVMUsed.push_back(&GV); in findLibCallsAndAsm()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | ConstantMerge.cpp | 66 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues() argument 68 if (LLVMUsed == 0) return; in FindUsedValues() 69 ConstantArray *Inits = dyn_cast<ConstantArray>(LLVMUsed->getInitializer()); in FindUsedValues()
|
D | StripSymbols.cpp | 193 static void findUsedValues(GlobalVariable *LLVMUsed, in findUsedValues() argument 195 if (LLVMUsed == 0) return; in findUsedValues() 196 UsedValues.insert(LLVMUsed); in findUsedValues() 198 ConstantArray *Inits = dyn_cast<ConstantArray>(LLVMUsed->getInitializer()); in findUsedValues()
|
/external/llvm/lib/Transforms/IPO/ |
D | ConstantMerge.cpp | 39 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues() argument 41 if (!LLVMUsed) return; in FindUsedValues() 42 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in FindUsedValues()
|
D | StripSymbols.cpp | 191 static void findUsedValues(GlobalVariable *LLVMUsed, in findUsedValues() argument 193 if (!LLVMUsed) return; in findUsedValues() 194 UsedValues.insert(LLVMUsed); in findUsedValues() 196 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in findUsedValues()
|
D | GlobalOpt.cpp | 2224 class LLVMUsed { class 2231 LLVMUsed(Module &M) { in LLVMUsed() function in __anon53a55f540211::LLVMUsed 2267 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) { in hasUseOtherThanLLVMUsed() 2284 const LLVMUsed &U) { in hasMoreThanOneUseOtherThanLLVMUsed() 2294 static bool mayHaveOtherReferences(GlobalAlias &GA, const LLVMUsed &U) { in mayHaveOtherReferences() 2301 static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U, in hasUsesToReplace() 2337 LLVMUsed Used(M); in OptimizeGlobalAliases()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | ConstantMerge.cpp | 46 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues() argument 48 if (!LLVMUsed) return; in FindUsedValues() 49 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in FindUsedValues()
|
D | StripSymbols.cpp | 191 static void findUsedValues(GlobalVariable *LLVMUsed, in findUsedValues() argument 193 if (!LLVMUsed) return; in findUsedValues() 194 UsedValues.insert(LLVMUsed); in findUsedValues() 196 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in findUsedValues()
|
D | GlobalOpt.cpp | 2589 class LLVMUsed { class 2596 LLVMUsed(Module &M) { in LLVMUsed() function in __anonad10a2ac0411::LLVMUsed 2642 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) { in hasUseOtherThanLLVMUsed() 2659 const LLVMUsed &U) { in hasMoreThanOneUseOtherThanLLVMUsed() 2669 static bool mayHaveOtherReferences(GlobalAlias &GA, const LLVMUsed &U) { in mayHaveOtherReferences() 2676 static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U, in hasUsesToReplace() 2712 LLVMUsed Used(M); in OptimizeGlobalAliases()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 578 GlobalVariable *LLVMUsed = M->getGlobalVariable("llvm.used"); in emitUses() local 580 if (LLVMUsed) { in emitUses() 582 ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer()); in emitUses() 585 LLVMUsed->eraseFromParent(); in emitUses() 596 LLVMUsed = in emitUses() 599 LLVMUsed->setSection("llvm.metadata"); in emitUses()
|
/external/swiftshader/third_party/LLVM/tools/lto/ |
D | LTOCodeGenerator.cpp | 293 static void findUsedValues(GlobalVariable *LLVMUsed, in findUsedValues() argument 295 if (LLVMUsed == 0) return; in findUsedValues() 297 ConstantArray *Inits = dyn_cast<ConstantArray>(LLVMUsed->getInitializer()); in findUsedValues()
|
/external/clang/lib/CodeGen/ |
D | CodeGenModule.h | 346 std::vector<llvm::WeakVH> LLVMUsed; variable
|
D | CodeGenModule.cpp | 1095 LLVMUsed.emplace_back(GV); in addUsedGlobal() 1131 emitUsed(*this, "llvm.used", LLVMUsed); in emitLLVMUsed()
|