1//===----------------------------------------------------------------------===//
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// RPC opcodes shared by device handlers and the host shim. Packet payloads
10// stay with each sanitizer.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef SANITIZER_OFFLOAD_OPCODES_H
15#define SANITIZER_OFFLOAD_OPCODES_H
16
17#define SANITIZER_OFFLOAD_RPC_BASE 's'
18#define SANITIZER_OFFLOAD_OPCODE(n) \
19 (((unsigned)(SANITIZER_OFFLOAD_RPC_BASE) << 24) | (unsigned)(n))
20
21enum {
22 SANITIZER_OFFLOAD_UBSAN = SANITIZER_OFFLOAD_OPCODE(0),
23};
24
25#undef SANITIZER_OFFLOAD_RPC_BASE
26#undef SANITIZER_OFFLOAD_OPCODE
27
28#endif // SANITIZER_OFFLOAD_OPCODES_H
29