Lines Matching defs:GV
111 static bool isLeakCheckerRoot(GlobalVariable *GV) { in isLeakCheckerRoot()
192 CleanupPointerRootUsers(GlobalVariable *GV, in CleanupPointerRootUsers()
270 static bool CleanupConstantGlobalUsers(GlobalVariable *GV, in CleanupConstantGlobalUsers()
350 GlobalVariable *GV, const DataLayout &DL) { in collectSRATypes()
438 static void transferSRADebugInfo(GlobalVariable *GV, GlobalVariable *NGV, in transferSRADebugInfo()
518 static GlobalVariable *SRAGlobal(GlobalVariable *GV, const DataLayout &DL) { in SRAGlobal()
706 static bool allUsesOfLoadedValueWillTrapIfNull(const GlobalVariable *GV) { in allUsesOfLoadedValueWillTrapIfNull()
736 static void allUsesOfLoadAndStores(GlobalVariable *GV, in allUsesOfLoadAndStores()
826 GlobalVariable *GV, Constant *LV, const DataLayout &DL, in OptimizeAwayTrappingUsesOfLoads()
912 OptimizeGlobalAddressOfAllocation(GlobalVariable *GV, CallInst *CI, in OptimizeGlobalAddressOfAllocation()
1031 const GlobalVariable *GV) { in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1074 static bool tryToOptimizeStoreOfAllocationToGlobal(GlobalVariable *GV, in tryToOptimizeStoreOfAllocationToGlobal()
1121 optimizeOnceStoredGlobal(GlobalVariable *GV, Value *StoredOnceVal, in optimizeOnceStoredGlobal()
1157 static bool TryToShrinkGlobalToBoolean(GlobalVariable *GV, Constant *OtherVal) { in TryToShrinkGlobalToBoolean()
1246 for(auto *GV : GVs) in TryToShrinkGlobalToBoolean() local
1316 deleteIfDead(GlobalValue &GV, in deleteIfDead()
1347 const Function *F, GlobalValue *GV, in isPointerValueDeadOnEntryToFunction()
1416 GlobalVariable *GV, const StoreInst *StoredOnceStore, in forwardStoredOnceStore()
1451 processInternalGlobal(GlobalVariable *GV, const GlobalStatus &GS, in processInternalGlobal()
1624 processGlobal(GlobalValue &GV, in processGlobal()
2184 bool usedErase(GlobalValue *GV) { return Used.erase(GV); } in usedErase()
2185 bool compilerUsedErase(GlobalValue *GV) { return CompilerUsed.erase(GV); } in compilerUsedErase()
2186 bool usedInsert(GlobalValue *GV) { return Used.insert(GV).second; } in usedInsert()
2188 bool compilerUsedInsert(GlobalValue *GV) { in compilerUsedInsert()
2218 static bool mayHaveOtherReferences(GlobalValue &GV, const LLVMUsed &U) { in mayHaveOtherReferences()
2266 auto IsModuleLocal = [](GlobalValue &GV) { in OptimizeGlobalAliases()
2500 for (const GlobalVariable &GV : M.globals()) in optimizeGlobalsInModule() local