| 1 |
//===--- Opcode.h - Opcodes for the constexpr VM ----------------*- 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 |
// Defines all opcodes executed by the VM and emitted by the compiler. |
| 10 |
// |
| 11 |
//===----------------------------------------------------------------------===// |
| 12 |
|
| 13 |
#ifndef LLVM_CLANG_AST_INTERP_OPCODE_H |
| 14 |
#define LLVM_CLANG_AST_INTERP_OPCODE_H |
| 15 |
|
| 16 |
#include <cstdint> |
| 17 |
|
| 18 |
namespace clang { |
| 19 |
namespace interp { |
| 20 |
|
| 21 |
enum Opcode : uint32_t { |
| 22 |
#define GET_OPCODE_NAMES |
| 23 |
#include "Opcodes.inc" |
| 24 |
#undef GET_OPCODE_NAMES |
| 25 |
}; |
| 26 |
|
| 27 |
} // namespace interp |
| 28 |
} // namespace clang |
| 29 |
|
| 30 |
#endif |