[Openmp-commits] [openmp] [OpenMP] Add ompTest library to OpenMP (PR #147381)
Michael Halkenhäuser via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 15 05:11:26 PDT 2025
================
@@ -0,0 +1,331 @@
+//===- InternalEvent.h - Internal event representation ----------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Declares internal event representations along the default CTOR definition.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef OPENMP_TOOLS_OMPTEST_INCLUDE_INTERNALEVENT_H
+#define OPENMP_TOOLS_OMPTEST_INCLUDE_INTERNALEVENT_H
+
+#include "InternalEventCommon.h"
+
+#include <cstring>
+#include <limits>
+#include <omp-tools.h>
+
+#define expectedDefault(TypeName) std::numeric_limits<TypeName>::min()
+
+namespace omptest {
+
+namespace util {
+
+/// String manipulation helper function. Takes up to 8 bytes of data and returns
+/// their hexadecimal representation as string. The data can be expanded to the
+/// given size in bytes and will by default be prefixed with '0x'.
+std::string makeHexString(uint64_t Data, bool IsPointer = true,
+ size_t DataBytes = 0, bool ShowHexBase = true);
+
+} // namespace util
+
+namespace internal {
+// clang-format off
+event_class_w_custom_body(AssertionSyncPoint, \
----------------
mhalk wrote:
Understandable, I have no objection to expand these.
https://github.com/llvm/llvm-project/pull/147381
More information about the Openmp-commits
mailing list