| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | ttyent.cpp | 14 struct ttyent *typ = getttyent(); in test1() local 15 assert(typ && typ->ty_name != nullptr); in test1() 16 assert(typ->ty_type != nullptr); in test1() 22 assert(typ && typ->ty_name != nullptr); in test2() 23 assert(typ->ty_type != nullptr); in test2() 31 struct ttyent *typ = getttyent(); in test3() local 32 assert(typ && typ->ty_name != nullptr); in test3() 33 assert(typ->ty_type != nullptr); in test3() 42 struct ttyent *typ = getttyent(); in test4() local 43 assert(typ && typ->ty_name != nullptr); in test4() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_rtl_access.cpp | 32 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess() 45 evex->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess() 68 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccessRange() 69 ev->is_free = !!(typ & kAccessFree); in TryTraceMemoryAccessRange() 164 if (typ & kAccessSlotLocked) in DoReportRace() 167 if (typ & kAccessSlotLocked) in DoReportRace() 177 if (!(typ & kAccessRead)) { in ContainsSameAccess() 247 if (!(typ & kAccessRead)) { in ContainsSameAccess() 326 if (typ & kAccessCheckOnly) in CheckRaces() 395 AccessType typ; in DumpShadow() local [all …]
|
| H A D | tsan_shadow.h | 68 (!!(typ & kAccessRead) << kIsReadShift) | in Shadow() 72 DCHECK_EQ(part_.is_read_, !!(typ & kAccessRead)); in Shadow() 91 if (typ) { in GetAccess() 94 *typ |= kAccessAtomic; in GetAccess() 96 *typ |= kAccessFree; in GetAccess() 101 bool IsBothReadsOrAtomic(AccessType typ) const { in IsBothReadsOrAtomic() argument 102 u32 is_read = !!(typ & kAccessRead); in IsBothReadsOrAtomic() 103 u32 is_atomic = !!(typ & kAccessAtomic); in IsBothReadsOrAtomic() 112 bool IsRWWeakerOrEqual(AccessType typ) const { in IsRWWeakerOrEqual() argument 113 u32 is_read = !!(typ & kAccessRead); in IsRWWeakerOrEqual() [all …]
|
| H A D | tsan_suppressions.cpp | 67 static const char *conv(ReportType typ) { in conv() argument 68 switch (typ) { in conv() 106 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp) { in IsSuppressed() argument 111 const char *stype = conv(typ); in IsSuppressed() 125 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp) { in IsSuppressed() argument 130 const char *stype = conv(typ); in IsSuppressed()
|
| H A D | tsan_rtl_report.cpp | 140 switch (typ) { in ShouldReport() 161 rep_->typ = typ; in ScopedReportBase() 181 AccessType typ; in AddMemoryAccess() local 182 s.GetAccess(&addr0, &size, &typ); in AddMemoryAccess() 188 mop->write = !(typ & kAccessRead); in AddMemoryAccess() 189 mop->atomic = typ & kAccessAtomic; in AddMemoryAccess() 348 : ScopedReportBase(typ, tag) {} in ScopedReport() 441 static_cast<int>(typ)); in RestoreStack() 482 bool is_read = typ & kAccessRead; in RestoreStack() 483 bool is_atomic = typ & kAccessAtomic; in RestoreStack() [all …]
|
| H A D | tsan_report.cpp | 62 static const char *ReportTypeString(ReportType typ, uptr tag) { in ReportTypeString() argument 63 switch (typ) { in ReportTypeString() 303 const char *rep_typ_str = ReportTypeString(rep->typ, rep->tag); in PrintReport() 309 if (rep->typ == ReportTypeErrnoInSignal) in PrintReport() 312 if (rep->typ == ReportTypeDeadlock) { in PrintReport() 359 if (rep->typ != ReportTypeDeadlock) { in PrintReport() 367 if (rep->typ == ReportTypeThreadLeak && rep->count > 1) in PrintReport() 449 if (rep->typ == ReportTypeRace) { in PrintReport() 457 } else if (rep->typ == ReportTypeDeadlock) { in PrintReport()
|
| H A D | tsan_suppressions.h | 32 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp); 33 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp);
|
| H A D | tsan_debugging.cpp | 21 static const char *ReportTypeDescription(ReportType typ) { in ReportTypeDescription() argument 22 switch (typ) { in ReportTypeDescription() 43 static const char *ReportLocationTypeDescription(ReportLocationType typ) { in ReportLocationTypeDescription() argument 44 switch (typ) { in ReportLocationTypeDescription() 78 *description = ReportTypeDescription(rep->typ); in __tsan_get_report_data()
|
| H A D | tsan_rtl.h | 422 ScopedReportBase(ReportType typ, uptr tag); 437 explicit ScopedReport(ReportType typ, uptr tag = kExternalTagNone); 444 bool ShouldReport(ThreadState *thr, ReportType typ); 494 AccessType typ); 525 AccessType typ); 527 AccessType typ); 684 AccessType typ, Tid *ptid, VarSizeStackTrace *pstk, 751 AccessType typ); 754 AccessType typ); 756 AccessType typ);
|
| H A D | tsan_external.cpp | 63 void ExternalAccess(void *addr, uptr caller_pc, void *tag, AccessType typ) { in ExternalAccess() argument 70 MemoryAccess(thr, CALLERPC, (uptr)addr, 1, typ); in ExternalAccess()
|
| H A D | tsan_rtl_mutex.cpp | 50 static void ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ, in ReportMutexMisuse() argument 56 if (!ShouldReport(thr, typ)) in ReportMutexMisuse() 59 ScopedReport rep(typ); in ReportMutexMisuse() 70 auto typ = write ? EventType::kLock : EventType::kRLock; in RecordMutexLock() local 76 TraceMutexLock(thr, typ, pc, addr, stack_id); in RecordMutexLock()
|
| H A D | tsan_interface_ann.cpp | 46 #define SCOPED_ANNOTATION_RET(typ, ret) \ argument 55 #define SCOPED_ANNOTATION(typ) SCOPED_ANNOTATION_RET(typ, ) argument
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_rtl_report.cpp | 140 switch (typ) { in ShouldReport() 161 rep_->typ = typ; in ScopedReportBase() 386 : ScopedReportBase(typ, tag) {} in ScopedReport() 422 if (typ == EventTypeMop) { in RestoreStack() 433 if (typ == EventTypeLock) { in RestoreStack() 543 static_cast<int>(typ)); in RestoreStack() 567 bool is_read = typ & kAccessRead; in RestoreStack() 859 ReportType typ = ReportTypeRace; in ReportRace() local 863 typ = ReportTypeVptrRace; in ReportRace() 865 typ = ReportTypeUseAfterFree; in ReportRace() [all …]
|
| H A D | tsan_suppressions.cpp | 67 static const char *conv(ReportType typ) { in conv() argument 68 switch (typ) { in conv() 106 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp) { in IsSuppressed() argument 111 const char *stype = conv(typ); in IsSuppressed() 125 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp) { in IsSuppressed() argument 130 const char *stype = conv(typ); in IsSuppressed()
|
| H A D | tsan_rtl.h | 479 AccessType typ); 488 AccessType typ) { in MemoryAccess() argument 505 bool is_write = !(typ & kAccessRead); in MemoryAccess() 506 bool is_atomic = typ & kAccessAtomic; in MemoryAccess() 507 if (typ & kAccessVptr) in MemoryAccess() 509 if (typ & kAccessFree) in MemoryAccess() 512 if (typ & kAccessVptr) in MemoryAccess() 514 if (typ & kAccessFree) in MemoryAccess() 618 DCHECK_GE((int)typ, 0); in TraceAddEvent() 619 DCHECK_LE((int)typ, 7); in TraceAddEvent() [all …]
|
| H A D | tsan_rtl_access.cpp | 22 AccessType typ) { in TryTraceMemoryAccess() argument 34 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess() 35 ev->is_atomic = !!(typ & kAccessAtomic); in TryTraceMemoryAccess() 47 evex->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess() 48 evex->is_atomic = !!(typ & kAccessAtomic); in TryTraceMemoryAccess() 68 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccessRange() 69 ev->is_free = !!(typ & kAccessFree); in TryTraceMemoryAccessRange() 79 AccessType typ) { in TraceMemoryAccessRange() argument 240 AccessType typ) { in UnalignedMemoryAccess() argument 241 DCHECK(!(typ & kAccessAtomic)); in UnalignedMemoryAccess() [all …]
|
| H A D | tsan_suppressions.h | 32 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp); 33 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp);
|
| H A D | tsan_report.cpp | 62 static const char *ReportTypeString(ReportType typ, uptr tag) { in ReportTypeString() argument 63 switch (typ) { in ReportTypeString() 309 const char *rep_typ_str = ReportTypeString(rep->typ, rep->tag); in PrintReport() 315 if (rep->typ == ReportTypeDeadlock) { in PrintReport() 362 if (rep->typ != ReportTypeDeadlock) { in PrintReport() 370 if (rep->typ == ReportTypeThreadLeak && rep->count > 1) in PrintReport() 452 if (rep->typ == ReportTypeRace) { in PrintReport() 460 } else if (rep->typ == ReportTypeDeadlock) { in PrintReport()
|
| H A D | tsan_debugging.cpp | 21 static const char *ReportTypeDescription(ReportType typ) { in ReportTypeDescription() argument 22 switch (typ) { in ReportTypeDescription() 43 static const char *ReportLocationTypeDescription(ReportLocationType typ) { in ReportLocationTypeDescription() argument 44 switch (typ) { in ReportLocationTypeDescription() 78 *description = ReportTypeDescription(rep->typ); in __tsan_get_report_data()
|
| H A D | tsan_external.cpp | 63 void ExternalAccess(void *addr, uptr caller_pc, void *tag, AccessType typ) { in ExternalAccess() argument 70 MemoryAccess(thr, CALLERPC, (uptr)addr, 1, typ); in ExternalAccess()
|
| H A D | tsan_interface_ann.cpp | 46 #define SCOPED_ANNOTATION_RET(typ, ret) \ argument 55 #define SCOPED_ANNOTATION(typ) SCOPED_ANNOTATION_RET(typ, ) argument
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | 2016-04-17-combine.ll | 7 %typ = type { i32, i32 } 17 define signext i32 @_Z8access_pP1Tc(%typ* %p, i8 zeroext %type) { 18 %b = getelementptr inbounds %typ, %typ* %p, i64 0, i32 1
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/executionengine/ |
| H A D | llvm_executionengine.mli | 78 (** [get_global_value_address id typ ee] returns a pointer to the 79 identifier [id] as type [typ], which will be a pointer type for a 84 val get_global_value_address : string -> 'a Ctypes.typ -> llexecutionengine -> 'a 86 (** [get_function_address fn typ ee] returns a pointer to the function 87 [fn] as type [typ], which will be a pointer type for a function 88 (e.g. [(int -> int) typ]), and which will be live as long as [fn] 92 val get_function_address : string -> 'a Ctypes.typ -> llexecutionengine -> 'a
|
| H A D | llvm_executionengine.ml | 55 let get_global_value_address name typ ee = 58 let open Ctypes in !@ (coerce (ptr void) (ptr typ) (ptr_of_raw_address vptr)) 62 let get_function_address name typ ee = 65 let open Ctypes in coerce (ptr void) typ (ptr_of_raw_address fptr)
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_shadow_test.cpp | 19 AccessType typ) { in CheckShadow() argument 28 CHECK_EQ(typ1, typ); in CheckShadow()
|