Lines Matching refs:DefaultCheckFunc
132 Function *DefaultCheckFunc = in createDefaultCheckFunction() local
135 DefaultCheckFunc->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); in createDefaultCheckFunction()
136 DefaultCheckFunc->addParamAttr(0, Attribute::NoUndef); in createDefaultCheckFunction()
138 DefaultCheckFunc->addParamAttr(0, Attribute::InReg); in createDefaultCheckFunction()
140 BasicBlock *EntryBB = BasicBlock::Create(Ctx, "", DefaultCheckFunc); in createDefaultCheckFunction()
142 return DefaultCheckFunc; in createDefaultCheckFunction()
184 Function *DefaultCheckFunc = in runOnModule() local
187 DefaultCheckFunc->setName(CheckFunctionName); in runOnModule()
188 DefaultCheckFunc->setLinkage(GlobalValue::WeakAnyLinkage); in runOnModule()
189 CheckFunction = DefaultCheckFunc; in runOnModule()
204 StringRef DefaultCheckFunctionName = DefaultCheckFunc->getName(); in runOnModule()
205 appendToUsed(M, {DefaultCheckFunc}); in runOnModule()
208 DefaultCheckFunc->setComdat(C); in runOnModule()