Lines Matching refs:Ctor
191 Function *Ctor = Function::createWithDefaultAttr( in createSanitizerCtor() local
195 Ctor->addFnAttr(Attribute::NoUnwind); in createSanitizerCtor()
196 setKCFIType(M, *Ctor, "_ZTSFvvE"); // void (*)(void) in createSanitizerCtor()
197 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor); in createSanitizerCtor()
200 appendToUsed(M, {Ctor}); in createSanitizerCtor()
201 return Ctor; in createSanitizerCtor()
213 Function *Ctor = createSanitizerCtor(M, CtorName); in createSanitizerCtorAndInitFunctions() local
216 BasicBlock *RetBB = &Ctor->getEntryBlock(); in createSanitizerCtorAndInitFunctions()
219 auto *EntryBB = BasicBlock::Create(M.getContext(), "entry", Ctor, RetBB); in createSanitizerCtorAndInitFunctions()
221 BasicBlock::Create(M.getContext(), "callfunc", Ctor, RetBB); in createSanitizerCtorAndInitFunctions()
245 return std::make_pair(Ctor, InitFunction); in createSanitizerCtorAndInitFunctions()
256 if (Function *Ctor = M.getFunction(CtorName)) in getOrCreateSanitizerCtorAndInitFunctions() local
259 if (Ctor->arg_empty() || in getOrCreateSanitizerCtorAndInitFunctions()
260 Ctor->getReturnType() == Type::getVoidTy(M.getContext())) in getOrCreateSanitizerCtorAndInitFunctions()
261 return {Ctor, in getOrCreateSanitizerCtorAndInitFunctions()
264 Function *Ctor; in getOrCreateSanitizerCtorAndInitFunctions() local
266 std::tie(Ctor, InitFunction) = llvm::createSanitizerCtorAndInitFunctions( in getOrCreateSanitizerCtorAndInitFunctions()
268 FunctionsCreatedCallback(Ctor, InitFunction); in getOrCreateSanitizerCtorAndInitFunctions()
269 return std::make_pair(Ctor, InitFunction); in getOrCreateSanitizerCtorAndInitFunctions()