Lines Matching refs:AllBlocks
204 bool InjectCoverage(Function &F, ArrayRef<BasicBlock *> AllBlocks,
209 GlobalVariable *CreatePCArray(Function &F, ArrayRef<BasicBlock *> AllBlocks);
210 void CreateFunctionLocalArrays(Function &F, ArrayRef<BasicBlock *> AllBlocks);
588 ArrayRef<BasicBlock *> AllBlocks) { in CreatePCArray() argument
589 size_t N = AllBlocks.size(); in CreatePCArray()
594 if (&F.getEntryBlock() == AllBlocks[i]) { in CreatePCArray()
600 BlockAddress::get(AllBlocks[i]), IntptrPtrTy)); in CreatePCArray()
615 Function &F, ArrayRef<BasicBlock *> AllBlocks) { in CreateFunctionLocalArrays() argument
618 AllBlocks.size(), F, Int32Ty, SanCovGuardsSectionName); in CreateFunctionLocalArrays()
622 AllBlocks.size(), F, Int8Ty, SanCovCountersSectionName); in CreateFunctionLocalArrays()
625 FunctionPCsArray = CreatePCArray(F, AllBlocks); in CreateFunctionLocalArrays()
629 ArrayRef<BasicBlock *> AllBlocks, in InjectCoverage() argument
631 if (AllBlocks.empty()) return false; in InjectCoverage()
632 CreateFunctionLocalArrays(F, AllBlocks); in InjectCoverage()
633 for (size_t i = 0, N = AllBlocks.size(); i < N; i++) in InjectCoverage()
634 InjectCoverageAtBlock(F, *AllBlocks[i], i, IsLeafFunc); in InjectCoverage()