Home | History | Annotate | Download | only in IPO

Lines Matching refs:GA

3119 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) {
3120 if (GA.use_empty()) // No use at all.
3123 assert((!U.usedCount(&GA) || !U.compilerUsedCount(&GA)) &&
3126 if (!GA.hasOneUse())
3132 return !U.usedCount(&GA) && !U.compilerUsedCount(&GA);
3146 static bool mayHaveOtherReferences(GlobalAlias &GA, const LLVMUsed &U) {
3147 if (!GA.hasLocalLinkage())
3150 return U.usedCount(&GA) || U.compilerUsedCount(&GA);
3153 static bool hasUsesToReplace(GlobalAlias &GA, LLVMUsed &U, bool &RenameTarget) {
3156 if (hasUseOtherThanLLVMUsed(GA, U))
3160 if (!mayHaveOtherReferences(GA, U))
3169 Constant *Aliasee = GA.getAliasee();