Lines Matching refs:Ctor
124 Function *Ctor = Function::createWithDefaultAttr( in createSanitizerCtor() local
127 Ctor->addFnAttr(Attribute::NoUnwind); in createSanitizerCtor()
128 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor); in createSanitizerCtor()
131 appendToUsed(M, {Ctor}); in createSanitizerCtor()
132 return Ctor; in createSanitizerCtor()
144 Function *Ctor = createSanitizerCtor(M, CtorName); in createSanitizerCtorAndInitFunctions() local
145 IRBuilder<> IRB(Ctor->getEntryBlock().getTerminator()); in createSanitizerCtorAndInitFunctions()
153 return std::make_pair(Ctor, InitFunction); in createSanitizerCtorAndInitFunctions()
164 if (Function *Ctor = M.getFunction(CtorName)) in getOrCreateSanitizerCtorAndInitFunctions() local
167 if (Ctor->arg_empty() || in getOrCreateSanitizerCtorAndInitFunctions()
168 Ctor->getReturnType() == Type::getVoidTy(M.getContext())) in getOrCreateSanitizerCtorAndInitFunctions()
169 return {Ctor, declareSanitizerInitFunction(M, InitName, InitArgTypes)}; in getOrCreateSanitizerCtorAndInitFunctions()
171 Function *Ctor; in getOrCreateSanitizerCtorAndInitFunctions() local
173 std::tie(Ctor, InitFunction) = llvm::createSanitizerCtorAndInitFunctions( in getOrCreateSanitizerCtorAndInitFunctions()
175 FunctionsCreatedCallback(Ctor, InitFunction); in getOrCreateSanitizerCtorAndInitFunctions()
176 return std::make_pair(Ctor, InitFunction); in getOrCreateSanitizerCtorAndInitFunctions()