Lines Matching refs:Function
23 static void appendToGlobalArray(const char *Array, Module &M, Function *F, in appendToGlobalArray()
84 void llvm::appendToGlobalCtors(Module &M, Function *F, int Priority, Constant *Data) { in appendToGlobalCtors()
88 void llvm::appendToGlobalDtors(Module &M, Function *F, int Priority, Constant *Data) { in appendToGlobalDtors()
130 Function *llvm::checkSanitizerInterfaceFunction(Constant *FuncOrBitcast) { in checkSanitizerInterfaceFunction()
131 if (isa<Function>(FuncOrBitcast)) in checkSanitizerInterfaceFunction()
132 return cast<Function>(FuncOrBitcast); in checkSanitizerInterfaceFunction()
141 Function *llvm::declareSanitizerInitFunction(Module &M, StringRef InitName, in declareSanitizerInitFunction()
144 Function *F = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in declareSanitizerInitFunction()
148 F->setLinkage(Function::ExternalLinkage); in declareSanitizerInitFunction()
152 std::pair<Function *, Function *> llvm::createSanitizerCtorAndInitFunctions( in createSanitizerCtorAndInitFunctions()
159 Function *InitFunction = in createSanitizerCtorAndInitFunctions()
161 Function *Ctor = Function::Create( in createSanitizerCtorAndInitFunctions()
168 Function *VersionCheckFunction = in createSanitizerCtorAndInitFunctions()
177 std::pair<Function *, Function *>
181 function_ref<void(Function *, Function *)> FunctionsCreatedCallback, in getOrCreateSanitizerCtorAndInitFunctions() argument
185 if (Function *Ctor = M.getFunction(CtorName)) in getOrCreateSanitizerCtorAndInitFunctions()
192 Function *Ctor, *InitFunction; in getOrCreateSanitizerCtorAndInitFunctions()
199 Function *llvm::getOrCreateInitFunction(Module &M, StringRef Name) { in getOrCreateInitFunction()
201 if (Function *F = M.getFunction(Name)) { in getOrCreateInitFunction()
211 Function *F = checkSanitizerInterfaceFunction(M.getOrInsertFunction( in getOrCreateInitFunction()
213 F->setLinkage(Function::ExternalLinkage); in getOrCreateInitFunction()
221 Module &M, SmallVectorImpl<Function *> &DeadComdatFunctions) { in filterDeadComdatFunctions()
227 for (Function *F : DeadComdatFunctions) { in filterDeadComdatFunctions()
251 for (Function &F : M.functions()) in filterDeadComdatFunctions()