Home
last modified time | relevance | path

Searched refs:ThreadID (Results 1 – 25 of 32) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/XRay/
H A DProfileTest.cpp56 Profile::Block{Profile::ThreadID{1}, in TEST()
66 Profile::Block{Profile::ThreadID{1}, in TEST()
90 Profile::Block{Profile::ThreadID{1}, in TEST()
117 Profile::Block{Profile::ThreadID{1}, in TEST()
188 Profile::ThreadID{1}, in TEST()
191 Profile::ThreadID{2}, in TEST()
194 Profile::ThreadID{3}, in TEST()
216 Profile::ThreadID{1}, in TEST()
220 Profile::ThreadID{2}, in TEST()
225 Profile::ThreadID{1}, in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/altera/
H A Did-dependent-backward-branch.cpp27 int ThreadID = get_local_id(0); in error() local
29 while (j < ThreadID) { in error()
39 int ThreadID2 = ThreadID * get_local_size(0); in error()
44 ThreadID * 2 // OK: not used in any loops in error()
55 } while (j < ThreadID); in error()
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/optional/
H A Dsegv_handler_posix.cpp76 uint64_t ThreadID = gwp_asan::getThreadID(); in printHeader() local
79 if (ThreadID == gwp_asan::kInvalidThreadID) in printHeader()
82 snprintf(ThreadBuffer, kThreadBufferLen, "%" PRIu64, ThreadID); in printHeader()
134 uint64_t ThreadID = __gwp_asan_get_deallocation_thread_id(AllocMeta); in dumpReport() local
135 if (ThreadID == gwp_asan::kInvalidThreadID) in dumpReport()
138 Printf("0x%zx was deallocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport()
145 uint64_t ThreadID = __gwp_asan_get_allocation_thread_id(AllocMeta); in dumpReport() local
146 if (ThreadID == gwp_asan::kInvalidThreadID) in dumpReport()
149 Printf("0x%zx was allocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport()
/llvm-project-15.0.7/llvm/lib/XRay/
H A DBlockIndexer.cpp67 CurrentBlock.ThreadID = R.tid(); in visit()
85 Indices.insert({{CurrentBlock.ProcessID, CurrentBlock.ThreadID}, {}}); in flush()
86 It->second.push_back({CurrentBlock.ProcessID, CurrentBlock.ThreadID, in flush()
90 CurrentBlock.ThreadID = 0; in flush()
H A DProfile.cpp198 using ThreadProfileIndexMap = DenseMap<Profile::ThreadID, PathDataMapPtr>; in mergeProfilesByThread()
309 P.addBlock(Profile::Block{Profile::ThreadID{Header.Thread}, in loadProfile()
333 DenseMap<Profile::ThreadID, std::vector<StackEntry>> ThreadStacks; in profileFromTrace()
334 DenseMap<Profile::ThreadID, DenseMap<Profile::PathID, Profile::Data>> in profileFromTrace()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/altera/
H A Did-dependent-backward-branch.rst13 int ThreadID = get_local_id(0);
17 for (int i = 0; i < ThreadID; ++i) {
24 std::cout << ThreadID << std::endl;
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/
H A Dcommon.cpp46 AllocationTrace.ThreadID = getThreadID(); in RecordAllocation()
48 DeallocationTrace.ThreadID = kInvalidThreadID; in RecordAllocation()
53 DeallocationTrace.ThreadID = getThreadID(); in RecordDeallocation()
H A Dcrash_handler.cpp111 return AllocationMeta->AllocationTrace.ThreadID; in __gwp_asan_get_allocation_thread_id()
135 return AllocationMeta->DeallocationTrace.ThreadID; in __gwp_asan_get_deallocation_thread_id()
H A Dcommon.h84 uint64_t ThreadID = kInvalidThreadID; member
/llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/
H A DMachThreadList.cpp123 if (m_threads[idx]->ThreadID() == tid) { in GetThreadByID()
152 return m_threads[idx]->ThreadID(); in GetThreadIDByMachPortNumber()
164 if (m_threads[idx]->ThreadID() == globally_unique_id) { in GetMachPortNumberByThreadID()
229 return m_threads[idx]->ThreadID(); in ThreadIDAtIndex()
237 return thread_sp->ThreadID(); in CurrentThreadID()
427 thread_actions.GetActionForThread(thread->ThreadID(), true); in ProcessWillResume()
431 if (solo_thread == thread->ThreadID()) in ProcessWillResume()
444 new_threads[idx]->ThreadID(), new_threads[idx]->IsUserReady()); in ProcessWillResume()
H A DMachThread.h46 uint64_t ThreadID() const { return m_unique_id; } in ThreadID() function
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A Dcrash_handler_api.cpp34 Metadata[Slot].AllocationTrace.ThreadID = 123; in metadata()
35 Metadata[Slot].DeallocationTrace.ThreadID = 321; in metadata()
85 EXPECT_EQ(Metadata[Index].AllocationTrace.ThreadID, in checkMetadata()
95 EXPECT_EQ(Metadata[Index].DeallocationTrace.ThreadID, in checkMetadata()
/llvm-project-15.0.7/llvm/lib/Support/
H A DThreadPool.cpp44 int ThreadID = Threads.size(); in grow() local
45 Threads.emplace_back([this, ThreadID] { in grow()
46 Strategy.apply_thread_strategy(ThreadID); in grow()
H A DParallel.cpp98 void work(ThreadPoolStrategy S, unsigned ThreadID) { in work() argument
99 S.apply_thread_strategy(ThreadID); in work()
/llvm-project-15.0.7/llvm/include/llvm/XRay/
H A DProfile.h53 using ThreadID = uint64_t;
63 ThreadID Thread;
H A DBlockIndexer.h30 int32_t ThreadID; member
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp22 const auto ThreadID = expr(hasDescendant(callExpr(callee(functionDecl( in registerMatchers() local
34 anyOf(declStmt(hasDescendant(varDecl(hasInitializer(ThreadID)) in registerMatchers()
37 isAssignmentOperator(), hasRHS(ThreadID), in registerMatchers()
/llvm-project-15.0.7/lldb/source/Target/
H A DThreadSpec.cpp36 spec_dict.GetValueForKeyAsInteger(GetKey(OptionNames::ThreadID), tid); in CreateFromStructuredData()
59 data_dict_sp->AddIntegerItem(GetKey(OptionNames::ThreadID), m_tid); in SerializeToStructuredData()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp160 Value *ThreadID = Builder.CreateCall(GetID, {}); in lowerGlobal() local
162 {Builder.getInt64(0), ThreadID}); in lowerGlobal()
/llvm-project-15.0.7/lldb/include/lldb/Target/
H A DThreadSpec.h112 ThreadID, enumerator
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DFormatEntity.h59 ThreadID, enumerator
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp1295 UpLoc, ThreadID, in emitTaskOutlinedFunction()
1414 ThreadID = I->second.ThreadID; in getThreadID()
1415 if (ThreadID != nullptr) in getThreadID()
1416 return ThreadID; in getThreadID()
1438 Elem.second.ThreadID = ThreadID; in getThreadID()
1440 return ThreadID; in getThreadID()
1459 Elem.second.ThreadID = Call; in getThreadID()
2128 CGF.EmitStoreOfScalar(ThreadID, in emitThreadIDAddress()
5046 DepTaskArgs[1] = ThreadID; in emitTaskCall()
5192 ThreadID, in emitTaskLoopCall()
[all …]
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp878 Value *ThreadID = getOrCreateThreadID(Ident); in createParallel() local
883 Ident, ThreadID, in createParallel()
892 Ident, ThreadID, in createParallel()
1067 Value *SerializedParallelCallArgs[] = {Ident, ThreadID}; in createParallel()
1077 Value *EndArgs[] = {Ident, ThreadID}; in createParallel()
1362 Value *ThreadID = getOrCreateThreadID(Ident); in createTask() local
1421 {/*loc_ref=*/Ident, /*gtid=*/ThreadID, /*flags=*/Flags, in createTask()
1435 Builder.CreateCall(TaskFn, {Ident, ThreadID, NewTaskData}); in createTask()
1471 Value *ThreadID = getOrCreateThreadID(Ident); in createTaskgroup() local
1476 Builder.CreateCall(TaskgroupFn, {Ident, ThreadID}); in createTaskgroup()
[all …]
/llvm-project-15.0.7/lldb/source/Core/
H A DFormatEntity.cpp151 Definition("id", EntryType::ThreadID),
319 ENUM_TO_CSTR(ThreadID); in TypeToCString()
1181 case Entry::Type::ThreadID: in Format()
2280 if (entry.type != Entry::Type::ThreadID && in ParseInternal()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DOpenMPClause.h8585 Stmt *ThreadID = nullptr; variable
8588 void setThreadID(Expr *TID) { ThreadID = TID; } in setThreadID()
8603 OMPFilterClause(Expr *ThreadID, Stmt *HelperE, in OMPFilterClause() argument
8607 OMPClauseWithPreInit(this), LParenLoc(LParenLoc), ThreadID(ThreadID) { in OMPFilterClause()
8619 Expr *getThreadID() { return cast<Expr>(ThreadID); } in getThreadID()
8622 Expr *getThreadID() const { return cast<Expr>(ThreadID); } in getThreadID()
8624 child_range children() { return child_range(&ThreadID, &ThreadID + 1); } in children()
8627 return const_child_range(&ThreadID, &ThreadID + 1); in children()

12