LLVM OpenMP 22.0.0git
InternalEventCommon.h File Reference

Provides event types, and class/operator declaration macros. More...

#include "omp-tools.h"
#include <cassert>
#include <string>

Go to the source code of this file.

Classes

struct  omptest::internal::InternalEvent
 Base event class Offers default CTOR, DTOR and CTOR which assigns the actual event type. More...
class  omptest::internal::EventBase< Derived >
 CRTP (Curiously Recurring Template Pattern) intermediate class Adding a new event type can be achieved by inheriting from an EventBase template instantiation of the new class' name, like this: struct NewEventType : public EventBase<NewEventType> More...

Namespaces

namespace  omptest
namespace  omptest::internal

Macros

#define event_type_trait(EvTy)
 Actual definition macro for EventTypeOf.

Enumerations

enum class  omptest::internal::EventTy {
  omptest::internal::None , omptest::internal::AssertionSyncPoint , omptest::internal::AssertionSuspend , omptest::internal::BufferRecord ,
  omptest::internal::BufferRecordDeallocation , omptest::internal::ThreadBegin , omptest::internal::ThreadEnd , omptest::internal::ParallelBegin ,
  omptest::internal::ParallelEnd , omptest::internal::Work , omptest::internal::Dispatch , omptest::internal::TaskCreate ,
  omptest::internal::Dependences , omptest::internal::TaskDependence , omptest::internal::TaskSchedule , omptest::internal::ImplicitTask ,
  omptest::internal::Masked , omptest::internal::SyncRegion , omptest::internal::MutexAcquire , omptest::internal::Mutex ,
  omptest::internal::NestLock , omptest::internal::Flush , omptest::internal::Cancel , omptest::internal::DeviceInitialize ,
  omptest::internal::DeviceFinalize , omptest::internal::DeviceLoad , omptest::internal::DeviceUnload , omptest::internal::BufferRequest ,
  omptest::internal::BufferComplete , omptest::internal::TargetDataOp , omptest::internal::TargetDataOpEmi , omptest::internal::Target ,
  omptest::internal::TargetEmi , omptest::internal::TargetSubmit , omptest::internal::TargetSubmitEmi , omptest::internal::ControlTool
}
 Enum values are used for comparison of observed and asserted events List is based on OpenMP 5.2 specification, table 19.2 (page 447) More...

Detailed Description

Provides event types, and class/operator declaration macros.

Definition in file InternalEventCommon.h.

Macro Definition Documentation

◆ event_type_trait

#define event_type_trait ( EvTy)
Value:
template <> struct EventTypeOf<EvTy> { \
static constexpr EventTy Value = EventTy::EvTy; \
};

Actual definition macro for EventTypeOf.

Definition at line 93 of file InternalEventCommon.h.