Lines Matching refs:GA
2793 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) { in hasUseOtherThanLLVMUsed() argument
2794 if (GA.use_empty()) // No use at all. in hasUseOtherThanLLVMUsed()
2797 assert((!U.usedCount(&GA) || !U.compilerUsedCount(&GA)) && in hasUseOtherThanLLVMUsed()
2800 if (!GA.hasOneUse()) in hasUseOtherThanLLVMUsed()
2806 return !U.usedCount(&GA) && !U.compilerUsedCount(&GA); in hasUseOtherThanLLVMUsed()
2820 static bool mayHaveOtherReferences(GlobalAlias &GA, const LLVMUsed &U) { in mayHaveOtherReferences() argument
2821 if (!GA.hasLocalLinkage()) in mayHaveOtherReferences()
2824 return U.usedCount(&GA) || U.compilerUsedCount(&GA); in mayHaveOtherReferences()
2827 static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U, in hasUsesToReplace() argument
2831 if (hasUseOtherThanLLVMUsed(GA, U)) in hasUsesToReplace()
2835 if (!mayHaveOtherReferences(GA, U)) in hasUsesToReplace()
2844 Constant *Aliasee = GA.getAliasee(); in hasUsesToReplace()
3055 for (GlobalAlias &GA : M.aliases()) in runOnModule()
3056 if (const Comdat *C = GA.getComdat()) in runOnModule()
3057 if (!GA.isDiscardableIfUnused() || !GA.use_empty()) in runOnModule()