Home
last modified time | relevance | path

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

12

/llvm-project/llvm/unittests/XRay/
H A DProfileTest.cpp56 Profile::Block{Profile::ThreadID{1}, in TEST()
66 Profile::Block{Profile::ThreadID{1}, in TEST()
74 Field(&Profile::Block::Thread, Eq(Profile::ThreadID{1})), in TEST()
90 Profile::Block{Profile::ThreadID{1}, in TEST()
98 Field(&Profile::Block::Thread, Eq(Profile::ThreadID{1})), in TEST()
117 Profile::Block{Profile::ThreadID{1}, in TEST()
121 Profile::Block{Profile::ThreadID{2}, in TEST()
126 Profile::Block{Profile::ThreadID{1}, in TEST()
129 Profile::Block{Profile::ThreadID{2}, in TEST()
138 AllOf(Field(&Profile::Block::Thread, Eq(Profile::ThreadID{1})), in TEST()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/altera/
H A Did-dependent-backward-branch.cpp23 int ThreadID = get_local_id(0); in error() local
25 while (j < ThreadID) { in error()
26 // CHECK-NOTES: :[[@LINE-1]]:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ThreadID' and may cause performance degradation [altera-id-dependent-backward-branch] in error()
27 // CHECK-NOTES: :[[@LINE-4]]:3: note: assignment of ID-dependent variable ThreadID in error()
33 } while (j < ThreadID); in error()
34 // CHECK-NOTES: :[[@LINE-1]]:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'ThreadID' and may cause performance degradation [altera-id-dependent-backward-branch] in error()
35 // CHECK-NOTES: :[[@LINE-12]]:3: note: assignment of ID-dependent variable ThreadID in error()
59 int ThreadID2 = ThreadID * 2; in error()
63 // CHECK-NOTES: :[[@LINE-4]]:3: note: inferred assignment of ID-dependent value from ID-dependent variable ThreadID in error()
71 UnusedStruct.IDDepField = ThreadID * in error()
[all...]
/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Dsegv_handler_posix.cpp79 uint64_t ThreadID = gwp_asan::getThreadID(); in printHeader() local
82 if (ThreadID == gwp_asan::kInvalidThreadID) in printHeader()
85 snprintf(ThreadBuffer, kThreadBufferLen, "%" PRIu64, ThreadID); in printHeader()
167 uint64_t ThreadID = __gwp_asan_get_deallocation_thread_id(AllocMeta); in dumpReport() local
168 if (ThreadID == gwp_asan::kInvalidThreadID) in dumpReport()
171 Printf("0x%zx was deallocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport()
178 uint64_t ThreadID = __gwp_asan_get_allocation_thread_id(AllocMeta); in dumpReport() local
179 if (ThreadID == gwp_asan::kInvalidThreadID) in dumpReport()
182 Printf("0x%zx was allocated by thread %zu here:\n", ErrorPtr, ThreadID); in dumpReport()
/llvm-project/llvm/lib/XRay/
H A DBlockIndexer.cpp67 CurrentBlock.ThreadID = R.tid(); in visit()
83 Indices[{CurrentBlock.ProcessID, CurrentBlock.ThreadID}].push_back( in flush()
84 {CurrentBlock.ProcessID, CurrentBlock.ThreadID, in flush()
87 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/llvm/lib/Support/
H A DThreadPool.cpp44 int ThreadID = Threads.size(); in grow() local
45 Threads.emplace_back([this, ThreadID] { in grow()
46 set_thread_name(formatv("llvm-worker-{0}", ThreadID)); in grow()
47 Strategy.apply_thread_strategy(ThreadID); in grow()
H A DParallel.cpp111 void work(ThreadPoolStrategy S, unsigned ThreadID) {
112 threadIndex = ThreadID; in getThreadCount()
113 S.apply_thread_strategy(ThreadID);
121 work(ThreadPoolStrategy S,unsigned ThreadID) work() argument
/llvm-project/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/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.cpp119 return AllocationMeta->AllocationTrace.ThreadID; in __gwp_asan_get_allocation_thread_id()
143 return AllocationMeta->DeallocationTrace.ThreadID; in __gwp_asan_get_deallocation_thread_id()
H A Dcommon.h84 uint64_t ThreadID = kInvalidThreadID; member
/llvm-project/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/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()
86 EXPECT_EQ(Metadata[Index].AllocationTrace.ThreadID, in checkMetadata()
96 EXPECT_EQ(Metadata[Index].DeallocationTrace.ThreadID, in checkMetadata()
/llvm-project/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/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp20 const auto ThreadID = expr(hasDescendant(callExpr(callee(functionDecl( in registerMatchers() local
32 anyOf(declStmt(hasDescendant(varDecl(hasInitializer(ThreadID)) in registerMatchers()
35 isAssignmentOperator(), hasRHS(ThreadID), in registerMatchers()
/llvm-project/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/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp159 Value *ThreadID = Builder.CreateIntrinsic(Intrinsic::xcore_getid, {}, {}); in lowerGlobal()
161 {Builder.getInt64(0), ThreadID}); in lowerGlobal()
163 Value *ThreadID = Builder.CreateCall(GetID, {}); lowerGlobal() local
/llvm-project/llvm/docs/AMDGPU/
H A Dgfx11_saddr_844ded.rst17 …<amdgpu_synid_gfx11_saddr_844ded>`] + :ref:`offset13s<amdgpu_synid_flat_offset13s>` + ThreadID * 4.
/llvm-project/lldb/include/lldb/Target/
H A DThreadSpec.h112 ThreadID, enumerator
/llvm-project/lldb/include/lldb/Core/
H A DFormatEntity.h58 ThreadID, enumerator
/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp87 /// Get an LValue for the current ThreadID variable.
122 assert(ThreadIDVar != nullptr && "No ThreadID in OpenMP region."); in CGOpenMPOutlinedRegionInfo()
203 assert(ThreadIDVar != nullptr && "No ThreadID in OpenMP region."); in CGOpenMPTaskOutlinedRegionInfo()
210 /// Get an LValue for the current ThreadID variable.
283 /// Get an LValue for the current ThreadID variable. in getThreadIDVariable()
1284 llvm::Value *ThreadID = getThreadID(CGF, D.getBeginLoc()); in emitTaskOutlinedFunction()
1287 UpLoc, ThreadID, in emitTaskOutlinedFunction()
1401 llvm::Value *ThreadID = nullptr; in getThreadID()
1406 ThreadID = I->second.ThreadID; in getThreadID()
1289 llvm::Value *ThreadID = getThreadID(CGF, D.getBeginLoc()); emitTaskOutlinedFunction() local
1407 llvm::Value *ThreadID = nullptr; getThreadID() local
1895 llvm::Value *ThreadID = RT.getThreadID(CGF, Loc); emitParallelCall() local
1952 llvm::Value *ThreadID = getThreadID(CGF, Loc); emitThreadIDAddress() local
4391 llvm::Value *ThreadID = getThreadID(CGF, Loc); emitDepobjDependClause() local
4448 llvm::Value *ThreadID = getThreadID(CGF, Loc); emitDestroyClause() local
4536 llvm::Value *ThreadID = getThreadID(CGF, Loc); emitTaskCall() local
4643 llvm::Value *ThreadID = getThreadID(CGF, Loc); emitTaskLoopCall() local
5627 llvm::Value *ThreadID = getThreadID(CGF, Loc); emitTaskwaitCall() local
11200 EmitDoacrossOrdered(CodeGenFunction & CGF,CodeGenModule & CGM,const T * C,llvm::Value * ULoc,llvm::Value * ThreadID) EmitDoacrossOrdered() argument
11344 llvm::Value *ThreadID = getThreadID(CGF, CVD->getBeginLoc()); getAddressOfLocalVariable() local
[all...]
/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1259 Value *ThreadID, const SmallVector<Instruction *, 4> &ToBeDeleted) {
1307 /* global thread num*/ ThreadID, in hostParallelCallback()
1440 Value *ThreadID = getOrCreateThreadID(Ident); in createParallel()
1452 Ident, ThreadID, in createParallel()
1461 Ident, ThreadID, in createParallel()
1580 ThreadID, ToBeDeletedVec); in createParallel()
1944 // Arguments - `loc_ref` (Ident) and `gtid` (ThreadID) in createTask()
1946 Value *ThreadID = getOrCreateThreadID(Ident); in createTask()
1998 TaskAllocFn, {/*loc_ref=*/Ident, /*gtid=*/ThreadID, /*flags=*/Flags, in createSections()
2009 Builder.CreateCall(TaskDetachFn, {Ident, ThreadID, TaskDat in createSections()
1177 targetParallelCallback(OpenMPIRBuilder * OMPIRBuilder,Function & OutlinedFn,Function * OuterFn,BasicBlock * OuterAllocaBB,Value * Ident,Value * IfCondition,Value * NumThreads,Instruction * PrivTID,AllocaInst * PrivTIDAddr,Value * ThreadID,const SmallVector<Instruction *,4> & ToBeDeleted) targetParallelCallback() argument
1358 Value *ThreadID = getOrCreateThreadID(Ident); createParallel() local
1777 Value *ThreadID = getOrCreateThreadID(Ident); createTask() local
1973 Value *ThreadID = getOrCreateThreadID(Ident); createTaskgroup() local
[all...]
/llvm-project/lldb/source/Core/
H A DFormatEntity.cpp152 Definition("id", EntryType::ThreadID),
315 ENUM_TO_CSTR(ThreadID); in TypeToCString()
1290 case Entry::Type::ThreadID: in Format()
2304 if (entry.type != Entry::Type::ThreadID && in ParseInternal()

12