1//===-- ubsan_offload.h -----------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Host offload reporting runtime for UBSan.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef UBSAN_OFFLOAD_H
14#define UBSAN_OFFLOAD_H
15
16#include "sanitizer_common/sanitizer_internal_defs.h"
17#include "ubsan_offload_packet.h"
18
19namespace __ubsan {
20
21void Initialize();
22u32 HandleOffloadReport(void *Port, u32 Lanes);
23
24} // namespace __ubsan
25
26extern "C" {
27SANITIZER_INTERFACE_ATTRIBUTE void __ubsan_offload_init();
28}
29
30#endif // UBSAN_OFFLOAD_H
31