Lines Matching refs:GA
196 bool isIn(const GlobalAlias &GA, StringRef Category) const { in isIn() argument
197 if (isIn(*GA.getParent(), Category)) in isIn()
200 if (isa<FunctionType>(GA.getValueType())) in isIn()
201 return SCL->inSection("dataflow", "fun", GA.getName(), Category); in isIn()
203 return SCL->inSection("dataflow", "global", GA.getName(), Category) || in isIn()
204 SCL->inSection("dataflow", "type", GetGlobalTypeString(GA), in isIn()
360 bool isInstrumented(const GlobalAlias *GA);
605 bool DataFlowSanitizer::isInstrumented(const GlobalAlias *GA) { in isInstrumented() argument
606 return !ABIList.isIn(*GA, "uninstrumented"); in isInstrumented()
781 GlobalAlias *GA = &*i; in runOnModule() local
785 if (auto F = dyn_cast<Function>(GA->getBaseObject())) { in runOnModule()
786 bool GAInst = isInstrumented(GA), FInst = isInstrumented(F); in runOnModule()
788 addGlobalNamePrefix(GA); in runOnModule()
794 buildWrapperFunction(F, "", GA->getLinkage(), F->getFunctionType()); in runOnModule()
795 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType())); in runOnModule()
796 NewF->takeName(GA); in runOnModule()
797 GA->eraseFromParent(); in runOnModule()