/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-xray/ |
D | xray-converter.cpp | 91 Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId, in exportAsYAML() 92 Symbolize ? FuncIdHelper.SymbolOrNumber(R.FuncId) in exportAsYAML() 93 : llvm::to_string(R.FuncId), in exportAsYAML() 141 Writer.write(R.FuncId); in exportAsRAWv1() 187 if (node_iter->FuncId == FnId) in findSiblings() 196 if (node_iter->FuncId == FnId) in findSiblings() 207 StackTrieNode *Parent, int32_t FuncId, uint32_t TId, in findOrCreateStackNode() argument 213 auto match = find_if(ParentCallees, [FuncId](StackTrieNode *ParentCallee) { in findOrCreateStackNode() 214 return FuncId == ParentCallee->FuncId; in findOrCreateStackNode() 220 findSiblings(Parent, FuncId, TId, StackRootsByThreadId); in findOrCreateStackNode() [all …]
|
D | func-id-helper.cpp | 21 std::string FuncIdConversionHelper::SymbolOrNumber(int32_t FuncId) const { in SymbolOrNumber() 22 auto CacheIt = CachedNames.find(FuncId); in SymbolOrNumber() 27 auto It = FunctionAddresses.find(FuncId); in SymbolOrNumber() 29 F << "#" << FuncId; in SymbolOrNumber() 45 CachedNames[FuncId] = S; in SymbolOrNumber() 49 std::string FuncIdConversionHelper::FileLineAndColumn(int32_t FuncId) const { in FileLineAndColumn() 50 auto It = FunctionAddresses.find(FuncId); in FileLineAndColumn()
|
D | xray-stacks.cpp | 123 Converter->SymbolOrNumber(Item.FuncId), Item.TId, in format() 334 StackTrieNode *createTrieNode(uint32_t ThreadId, int32_t FuncId, in createTrieNode() argument 336 NodeStore.push_front(StackTrieNode{FuncId, Parent, {}, {{}, {}}}); in createTrieNode() 344 StackTrieNode *findRootNode(uint32_t ThreadId, int32_t FuncId) { in findRootNode() argument 347 [&](StackTrieNode *N) { return N->FuncId == FuncId; }); in findRootNode() 377 auto *Root = findRootNode(R.TId, R.FuncId); in accountRecord() 378 TS.emplace_back(Root ? Root : createTrieNode(R.TId, R.FuncId, nullptr), in accountRecord() 385 [&](StackTrieNode *N) { return N->FuncId == R.FuncId; }); in accountRecord() 389 auto N = createTrieNode(R.TId, R.FuncId, Top.first); in accountRecord() 418 return E.first->FuncId == R.FuncId; in accountRecord() [all …]
|
D | trie-node.h | 33 int32_t FuncId; member 57 assert(Left.FuncId == Right.FuncId); in mergeTrieNodes() 59 Left.FuncId, NewParent, {}, MergeFn(Left.ExtraData, Right.ExtraData)}); in mergeTrieNodes() 66 LeftCalleesByFuncId[Callee->FuncId] = Callee; in mergeTrieNodes() 74 auto iter = LeftCalleesByFuncId.find(Callee->FuncId); in mergeTrieNodes()
|
D | xray-graph.cpp | 206 if (Record.FuncId != 0 && G.count(Record.FuncId) == 0) in accountRecord() 207 G[Record.FuncId].SymbolName = FuncIdHelper.SymbolOrNumber(Record.FuncId); in accountRecord() 208 ThreadStack.push_back({Record.FuncId, Record.TSC}); in accountRecord() 215 if (ThreadStack.size() == 0 || ThreadStack.back().FuncId != Record.FuncId) { in accountRecord() 221 [&](const FunctionAttr &A) { return A.FuncId == Record.FuncId; }); in accountRecord() 227 while (ThreadStack.back().FuncId != Record.FuncId) { in accountRecord() 229 VertexIdentifier TopFuncId = ThreadStack.back().FuncId; in accountRecord() 232 EdgeIdentifier EI(ThreadStack.back().FuncId, TopFuncId); in accountRecord() 241 VertexIdentifier VI = ThreadStack.empty() ? 0 : ThreadStack.back().FuncId; in accountRecord() 242 EdgeIdentifier EI(VI, Record.FuncId); in accountRecord() [all …]
|
D | xray-account.cpp | 151 ThreadStack.emplace_back(Record.FuncId, Record.TSC); in accountRecord() 159 if (ThreadStack.back().first == Record.FuncId) { in accountRecord() 173 return E.first == Record.FuncId; in accountRecord() 264 const auto &FuncId = FT.first; in exportStats() local 266 Results.emplace_back(FuncId, Timings.size(), getStats(Timings)); in exportStats() 278 Row.Function = FuncIdHelper.SymbolOrNumber(FuncId); in exportStats() 279 Row.DebugInfo = FuncIdHelper.FileLineAndColumn(FuncId); in exportStats() 400 exportStats(Header, [&](int32_t FuncId, size_t Count, const ResultRow &Row) { in exportStatsAsText() argument 401 OS << llvm::formatv(StatsFormat, FuncId, Count, Row.Min, Row.Median, in exportStatsAsText() 410 exportStats(Header, [&](int32_t FuncId, size_t Count, const ResultRow &Row) { in exportStatsAsCSV() argument [all …]
|
D | xray-extract.cpp | 61 auto FuncId = Map.getFunctionId(Sled.Function); in exportAsYAML() local 62 if (!FuncId) in exportAsYAML() 64 YAMLSleds.push_back({*FuncId, Sled.Address, Sled.Function, Sled.Kind, in exportAsYAML() 66 ExtractSymbolize ? FH.SymbolOrNumber(*FuncId) : ""}); in exportAsYAML()
|
D | func-id-helper.h | 42 std::string SymbolOrNumber(int32_t FuncId) const; 45 std::string FileLineAndColumn(int32_t FuncId) const;
|
D | xray-account.h | 49 void recordLatency(int32_t FuncId, uint64_t Latency) { in recordLatency() argument 50 FunctionLatencies[FuncId].push_back(Latency); in recordLatency()
|
/external/llvm/test/tools/llvm-readobj/ |
D | codeview-merging.test | 24 OBJ1: FuncId (0x100D) { 30 OBJ1-NEXT: FuncId (0x100E) { 36 OBJ1-NOT: FuncId 38 OBJ2: FuncId (0x100D) { 45 OBJ2: FuncId (0x1069) { 51 OBJ2-NOT: FuncId 53 CHECK: FuncId (0x100D) { 59 CHECK-NEXT: FuncId (0x100E) { 65 CHECK-NOT: FuncId
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/XRay/ |
D | InstrumentationMap.cpp | 42 Optional<uint64_t> InstrumentationMap::getFunctionAddr(int32_t FuncId) const { in getFunctionAddr() 43 auto I = FunctionAddresses.find(FuncId); in getFunctionAddr() 92 int32_t FuncId = 1; in loadELF64() local 120 FunctionAddresses[FuncId] = Entry.Function; in loadELF64() 121 FunctionIds[Entry.Function] = FuncId; in loadELF64() 124 ++FuncId; in loadELF64() 126 FunctionAddresses[FuncId] = Entry.Function; in loadELF64() 127 FunctionIds[Entry.Function] = FuncId; in loadELF64() 155 FunctionAddresses[Y.FuncId] = Y.Function; in loadYAML() 156 FunctionIds[Y.Function] = Y.FuncId; in loadYAML()
|
D | Trace.cpp | 112 Record.FuncId = RecordExtractor.getSigned(&OffsetPtr, sizeof(int32_t)); in loadNaiveFormatLog() 122 int32_t FuncId = RecordExtractor.getSigned(&OffsetPtr, sizeof(int32_t)); in loadNaiveFormatLog() local 127 if (Record.FuncId != FuncId || Record.TId != TId || in loadNaiveFormatLog() 132 Twine(Record.FuncId) + " != " + Twine(FuncId) + "; offset: " + in loadNaiveFormatLog() 488 Record.FuncId = FuncIdBitField >> 4; in processFDRFunctionRecord() 673 return XRayRecord{R.RecordType, R.CPU, R.Type, R.FuncId, in loadYAMLLog()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/ |
D | MCCodeView.cpp | 79 MCCVFunctionInfo *CodeViewContext::getCVFunctionInfo(unsigned FuncId) { in getCVFunctionInfo() argument 80 if (FuncId >= Functions.size()) in getCVFunctionInfo() 82 if (Functions[FuncId].isUnallocatedFunctionInfo()) in getCVFunctionInfo() 84 return &Functions[FuncId]; in getCVFunctionInfo() 87 bool CodeViewContext::recordFunctionId(unsigned FuncId) { in recordFunctionId() argument 88 if (FuncId >= Functions.size()) in recordFunctionId() 89 Functions.resize(FuncId + 1); in recordFunctionId() 92 if (!Functions[FuncId].isUnallocatedFunctionInfo()) in recordFunctionId() 96 Functions[FuncId].ParentFuncIdPlusOne = MCCVFunctionInfo::FunctionSentinel; in recordFunctionId() 100 bool CodeViewContext::recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc, in recordInlinedCallSiteId() argument [all …]
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
D | RPCUtils.h | 79 template <typename FunctionIdT, FunctionIdT FuncId, typename FnT> 83 template <typename FunctionIdT, FunctionIdT FuncId, typename RetT, 85 class FunctionHelper<FunctionIdT, FuncId, RetT(ArgTs...)> { 87 static_assert(FuncId != RPCFunctionIdTraits<FunctionIdT>::InvalidId && 88 FuncId != RPCFunctionIdTraits<FunctionIdT>::ResponseId, 92 static const FunctionIdT Id = FuncId; 141 template <typename FunctionIdT, FunctionIdT FuncId, typename... ArgTs> 142 class FunctionHelper<FunctionIdT, FuncId, void(ArgTs...)> { 144 static_assert(FuncId != RPCFunctionIdTraits<FunctionIdT>::InvalidId && 145 FuncId != RPCFunctionIdTraits<FunctionIdT>::ResponseId, [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-readobj/ |
D | codeview-merging.test | 33 OBJ1: FuncId (0x100D) { 39 OBJ1-NEXT: FuncId (0x100E) { 45 OBJ1-NOT: FuncId 47 OBJ2: FuncId (0x100D) { 54 OBJ2: FuncId (0x1069) { 60 OBJ2-NOT: FuncId 100 CHECK: FuncId (0x1002) { 106 CHECK-NEXT: FuncId (0x1003) { 112 CHECK-NOT: FuncId
|
/external/llvm/include/llvm/MC/ |
D | MCCodeView.h | 127 std::vector<MCCVLineEntry> getFunctionLineEntries(unsigned FuncId) { in getFunctionLineEntries() argument 130 auto I = MCCVLineStartStop.find(FuncId); in getFunctionLineEntries() 134 if (MCCVLines[Idx].getFunctionId() == FuncId) in getFunctionLineEntries() 139 std::pair<size_t, size_t> getLineExtent(unsigned FuncId) { in getLineExtent() argument 140 auto I = MCCVLineStartStop.find(FuncId); in getLineExtent() 156 void emitLineTableForFunction(MCObjectStreamer &OS, unsigned FuncId,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/ |
D | MCCodeView.h | 169 bool recordFunctionId(unsigned FuncId); 175 bool recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc, 180 MCCVFunctionInfo *getCVFunctionInfo(unsigned FuncId); 207 std::vector<MCCVLineEntry> getFunctionLineEntries(unsigned FuncId); 209 std::pair<size_t, size_t> getLineExtent(unsigned FuncId); 214 void emitLineTableForFunction(MCObjectStreamer &OS, unsigned FuncId,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULibFunc.cpp | 524 FuncId = EI_NONE; in AMDGPUMangledLibFunc() 532 FuncId = EI_NONE; in AMDGPUUnmangledLibFunc() 538 FuncId = id; in AMDGPUMangledLibFunc() 573 FuncId = static_cast<EFuncId>(manglingRulesMap.lookup(FullName)); in parseUnmangledName() 574 return FuncId != EI_NONE; in parseUnmangledName() 666 const ManglingRule& Rule = manglingRules[FuncId]; in parseFuncName() 680 if (!UnmangledFuncInfo::lookup(Name, FuncId)) in parseFuncName() 723 } else if (FuncId != EI_NONE) { in writeName() 725 const StringRef& S = manglingRules[FuncId].Name; in writeName() 870 ParamIterator I(Leads, manglingRules[FuncId]); in mangleNameItanium() [all …]
|
D | AMDGPULibFunc.h | 333 EFuncId getId() const { return FuncId; } in getId() 336 bool isMangled() const { return AMDGPULibFuncBase::isMangled(FuncId); } in isMangled() 338 void setId(EFuncId id) { FuncId = id; } in setId() 351 EFuncId FuncId;
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/XRay/ |
D | InstrumentationMap.h | 57 int32_t FuncId; member 94 Optional<uint64_t> getFunctionAddr(int32_t FuncId) const; 118 IO.mapRequired("id", Entry.FuncId);
|
D | YAMLXRayRecord.h | 36 int32_t FuncId; member 78 IO.mapRequired("func-id", Record.FuncId);
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/COFF/ |
D | inlining-padding.ll | 6 ; CHECK: FuncId (0x1002) { 13 ; CHECK: FuncId (0x1003) { 20 ; CHECK: FuncId (0x1004) { 27 ; CHECK: FuncId (0x1005) {
|
/external/llvm/test/DebugInfo/COFF/ |
D | inlining-padding.ll | 6 ; CHECK: FuncId (0x1002) { 13 ; CHECK: FuncId (0x1003) { 20 ; CHECK: FuncId (0x1004) { 27 ; CHECK: FuncId (0x1005) {
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/CodeView/ |
D | TypeIndexDiscoveryTest.cpp | 174 static FuncIdRecord FuncId(TypeIndex(1), TypeIndex(2), "FuncId"); variable 288 TEST_F(TypeIndexIteratorTest, FuncId) { in TEST_F() argument 290 writeTypeRecords(FuncId); in TEST_F() 291 checkTypeReferences(0, FuncId.FunctionType, FuncId.ParentScope); in TEST_F() 429 writeTypeRecords(FuncId, MemFuncId, StringId, StringList.Record, in TEST_F() 435 checkTypeReferences(0, FuncId.FunctionType, FuncId.ParentScope); in TEST_F()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | DebugInlineeLinesSubsection.cpp | 116 void DebugInlineeLinesSubsection::addInlineSite(TypeIndex FuncId, in addInlineSite() argument 125 Entry.Header.Inlinee = FuncId; in addInlineSite()
|