/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SampleProfileInference.h | 141 DenseMap<const BasicBlockT *, uint64_t> &BlockIndex); 183 DenseMap<const BasicBlockT *, uint64_t> BlockIndex; in apply() local 185 BlockIndex.reserve(Reachable.size()); in apply() 189 BlockIndex[&BB] = BasicBlocks.size(); in apply() 210 FlowFunction Func = createFlowFunction(BasicBlocks, BlockIndex); in apply() 219 BlockWeights[BB] = Func.Blocks[BlockIndex[BB]].Flow; in apply() 244 DenseMap<const BasicBlockT *, uint64_t> &BlockIndex) { in createFlowFunction() argument 264 if (!BlockIndex.count(Succ)) in createFlowFunction() 267 Jump.Source = BlockIndex[BB]; in createFlowFunction() 268 Jump.Target = BlockIndex[Suc in createFlowFunction() [all...] |
/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandMemCmp.cpp | 110 Value *getCompareLoadPairs(unsigned BlockIndex, unsigned &LoadIndex); 111 void emitLoadCompareBlock(unsigned BlockIndex); 112 void emitLoadCompareBlockMultipleLoads(unsigned BlockIndex, 114 void emitLoadCompareByteBlock(unsigned BlockIndex, unsigned OffsetBytes); 376 void MemCmpExpansion::emitLoadCompareByteBlock(unsigned BlockIndex, in emitLoadCompareByteBlock() argument 378 BasicBlock *BB = LoadCmpBlocks[BlockIndex]; in emitLoadCompareByteBlock() 387 if (BlockIndex < (LoadCmpBlocks.size() - 1)) { in emitLoadCompareByteBlock() 393 BranchInst::Create(EndBlock, LoadCmpBlocks[BlockIndex + 1], Cmp); in emitLoadCompareByteBlock() 398 {DominatorTree::Insert, BB, LoadCmpBlocks[BlockIndex + 1]}}); in emitLoadCompareByteBlock() 411 Value *MemCmpExpansion::getCompareLoadPairs(unsigned BlockIndex, in getCompareLoadPairs() argument 480 emitLoadCompareBlockMultipleLoads(unsigned BlockIndex,unsigned & LoadIndex) emitLoadCompareBlockMultipleLoads() argument 514 emitLoadCompareBlock(unsigned BlockIndex) emitLoadCompareBlock() argument [all...] |
H A D | MachineBlockPlacement.cpp | 3608 DenseMap<const MachineBasicBlock *, uint64_t> BlockIndex; in applyExtTsp() 3609 BlockIndex.reserve(F->size()); in applyExtTsp() 3614 BlockIndex[&MBB] = NumBlocks++; in applyExtTsp() 3626 BlockCounts[BlockIndex[&MBB]] = OptForSize ? 1 : BlockFreq.getFrequency(); in applyExtTsp() 3636 BlockSizes[BlockIndex[&MBB]] = 4 * NumInsts; in assignBlockOrder() 3661 JumpCounts.push_back({BlockIndex[&MBB], BlockIndex[Succ], Freq}); in assignBlockOrder() 3667 {BlockIndex[&MBB], BlockIndex[Succ], JumpFreq.getFrequency()}); in assignBlockOrder() 3570 DenseMap<const MachineBasicBlock *, uint64_t> BlockIndex; applyExtTsp() local
|
/llvm-project/llvm/include/llvm/DebugInfo/MSF/ |
H A D | IMSFFile.h | 32 virtual Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex, 34 virtual Error setBlockData(uint32_t BlockIndex, uint32_t Offset,
|
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | MergeICmps.cpp | 748 for (int BlockIndex = NumBlocks - 1; BlockIndex > 0; --BlockIndex) { in getOrderedBlocks() local 752 LLVM_DEBUG(dbgs() << "skip: block " << BlockIndex in getOrderedBlocks() 756 Blocks[BlockIndex] = CurBlock; in getOrderedBlocks() 760 LLVM_DEBUG(dbgs() << "skip: block " << BlockIndex in getOrderedBlocks() 766 LLVM_DEBUG(dbgs() << "skip: block " << BlockIndex in getOrderedBlocks()
|
/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | PDBFile.h | 68 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex, 70 Error setBlockData(uint32_t BlockIndex, uint32_t Offset,
|
/llvm-project/llvm/lib/Object/ |
H A D | ELF.cpp | 855 for (uint32_t BlockIndex = 0; !MetadataDecodeErr && !ULEBSizeErr && in decodeBBAddrMapImpl() 856 Cur && (BlockIndex < NumBlocksInBBRange); in decodeBBAddrMapImpl() 857 ++BlockIndex) { in decodeBBAddrMapImpl() 860 : BlockIndex; in decodeBBAddrMapImpl() 891 for (uint32_t BlockIndex = 0; in decodeBBAddrMapImpl() 893 !ULEBSizeErr && Cur && (BlockIndex < TotalNumBlocks); in decodeBBAddrMapImpl() 894 ++BlockIndex) { in decodeBBAddrMapImpl() 852 for (uint32_t BlockIndex = 0; !MetadataDecodeErr && !ULEBSizeErr && Cur && decodeBBAddrMapImpl() local 887 for (uint32_t BlockIndex = 0; decodeBBAddrMapImpl() local
|
/llvm-project/llvm/include/llvm/Analysis/ |
H A D | BlockFrequencyInfoImpl.h | 996 const DenseMap<const BlockT *, size_t> &BlockIndex, 1379 DenseMap<const BlockT *, size_t> BlockIndex; 1385 BlockIndex[BB] = I; 1402 initTransitionProbabilities(ReachableBlocks, BlockIndex, ProbMatrix); 1412 if (auto It = BlockIndex.find(&BB); It != BlockIndex.end()) 1561 const DenseMap<const BlockT *, size_t> &BlockIndex, 1573 if (!BlockIndex.contains(SI)) 1585 size_t Dst = BlockIndex.find(SI)->second; 1607 size_t EntryIdx = BlockIndex [all...] |
/llvm-project/bolt/lib/Core/ |
H A D | FunctionLayout.cpp | 170 unsigned BlockIndex = 0; in updateLayoutIndices() 173 BB->setLayoutIndex(BlockIndex++); in updateLayoutIndices() 168 unsigned BlockIndex = 0; updateLayoutIndices() local
|
/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | PDBFile.cpp | 103 Expected<ArrayRef<uint8_t>> PDBFile::getBlockData(uint32_t BlockIndex, in getBlockData() argument 105 uint64_t StreamBlockOffset = msf::blockToOffset(BlockIndex, getBlockSize()); in getBlockData() 113 Error PDBFile::setBlockData(uint32_t BlockIndex, uint32_t Offset, in setBlockData() argument
|
/llvm-project/llvm/tools/llvm-pdbutil/ |
H A D | ExplainOutputStyle.cpp | 235 uint32_t BlockIndex = FileOffset / BlockSize; in getOffsetInStream() local 236 uint32_t OffsetInBlock = FileOffset - BlockIndex * BlockSize; in getOffsetInStream() 238 auto Iter = llvm::find(StreamBlocks, BlockIndex); in getOffsetInStream()
|
/llvm-project/llvm/tools/obj2yaml/ |
H A D | elf2yaml.cpp | 933 for (uint64_t BlockIndex = 0; Cur && BlockIndex < NumBlocks; in dumpBBAddrMapSection() 934 ++BlockIndex) { in dumpBBAddrMapSection() 935 uint32_t ID = Version >= 2 ? Data.getULEB128(Cur) : BlockIndex; in dumpBBAddrMapSection() 956 for (uint64_t BlockIndex = 0; Cur && BlockIndex < TotalNumBlocks; in dumpBBAddrMapSection() 957 ++BlockIndex) { in dumpBBAddrMapSection() 932 for (uint64_t BlockIndex = 0; Cur && BlockIndex < NumBlocks; dumpBBAddrMapSection() local 955 for (uint64_t BlockIndex = 0; Cur && BlockIndex < TotalNumBlocks; dumpBBAddrMapSection() local
|
/llvm-project/llvm/unittests/DebugInfo/MSF/ |
H A D | MappedBlockStreamTest.cpp | 496 MATCHER_P3(BlockIsFilledWith, Layout, BlockIndex, Byte, "succeeded") { 497 uint64_t Offset = msf::blockToOffset(BlockIndex, Layout.SB->BlockSize);
|
/llvm-project/bolt/lib/Profile/ |
H A D | DataAggregator.cpp | 2358 const auto &[BlockOffset, BlockIndex] = getBlock(BI.From.Offset); in writeBATYAML() 2359 BinaryBasicBlockProfile &YamlBB = YamlBF.Blocks[BlockIndex]; in writeBATYAML() 2385 const unsigned BlockIndex = BlockMap.getBBIndex(BI.To.Offset); in writeBATYAML() 2386 YamlBF.Blocks[BlockIndex].ExecCount += BI.Branches; in writeBATYAML() 2412 const unsigned BlockIndex = getBlock(InputOffset).second; in writeBATYAML() 2413 BlockProbes[BlockIndex].emplace_back(Probe); in writeBATYAML() 2398 const unsigned BlockIndex = BlockMap.getBBIndex(BI.To.Offset); writeBATYAML() local
|
/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 13190 for (size_t BlockIndex = 0; BlockIndex < NumBlocks; BlockIndex++) in resolveBuildVector() 13192 int Elt = M[BlockIndex * NumEltsPerBlock + I]; in resolveBuildVector() 12244 for (size_t BlockIndex = 0; BlockIndex < NumBlocks; BlockIndex++) isWideDUPMask() local [all...] |