xref: /freebsd/contrib/llvm-project/clang/lib/AST/Interp/Opcode.h (revision 5b27928474e6a4103d65b347544705c40c9618fd)
1*a7dea167SDimitry Andric //===--- Opcode.h - Opcodes for the constexpr VM ----------------*- C++ -*-===//
2*a7dea167SDimitry Andric //
3*a7dea167SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*a7dea167SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*a7dea167SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*a7dea167SDimitry Andric //
7*a7dea167SDimitry Andric //===----------------------------------------------------------------------===//
8*a7dea167SDimitry Andric //
9*a7dea167SDimitry Andric // Defines all opcodes executed by the VM and emitted by the compiler.
10*a7dea167SDimitry Andric //
11*a7dea167SDimitry Andric //===----------------------------------------------------------------------===//
12*a7dea167SDimitry Andric 
13*a7dea167SDimitry Andric #ifndef LLVM_CLANG_AST_INTERP_OPCODE_H
14*a7dea167SDimitry Andric #define LLVM_CLANG_AST_INTERP_OPCODE_H
15*a7dea167SDimitry Andric 
16*a7dea167SDimitry Andric #include <cstdint>
17*a7dea167SDimitry Andric 
18*a7dea167SDimitry Andric namespace clang {
19*a7dea167SDimitry Andric namespace interp {
20*a7dea167SDimitry Andric 
21*a7dea167SDimitry Andric enum Opcode : uint32_t {
22*a7dea167SDimitry Andric #define GET_OPCODE_NAMES
23*a7dea167SDimitry Andric #include "Opcodes.inc"
24*a7dea167SDimitry Andric #undef GET_OPCODE_NAMES
25*a7dea167SDimitry Andric };
26*a7dea167SDimitry Andric 
27*a7dea167SDimitry Andric } // namespace interp
28*a7dea167SDimitry Andric } // namespace clang
29*a7dea167SDimitry Andric 
30*a7dea167SDimitry Andric #endif
31