Home | History | Annotate | Download | only in Instrumentation

Lines Matching defs:GA

149   /// If GA aliases a function, the alias's name is matched as a function name
151 bool isIn(const GlobalAlias &GA, const StringRef Category) const {
152 if (isIn(*GA.getParent(), Category))
155 if (isa<FunctionType>(GA.getType()->getElementType()))
156 return SCL->inSection("fun", GA.getName(), Category);
158 return SCL->inSection("global", GA.getName(), Category) ||
159 SCL->inSection("type", GetGlobalTypeString(GA), Category);
245 bool isInstrumented(const GlobalAlias *GA);
446 bool DataFlowSanitizer::isInstrumented(const GlobalAlias *GA) {
447 return !ABIList.isIn(*GA, "uninstrumented");
601 GlobalAlias *GA = &*i;
605 if (auto F = dyn_cast<Function>(GA->getBaseObject())) {
606 bool GAInst = isInstrumented(GA), FInst = isInstrumented(F);
608 addGlobalNamePrefix(GA);
614 buildWrapperFunction(F, "", GA->getLinkage(), F->getFunctionType());
615 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType()));
616 NewF->takeName(GA);
617 GA->eraseFromParent();