Opcode.h 817 B

123456789101112131415161718192021222324252627282930
  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. #ifndef LLVM_CLANG_AST_INTERP_OPCODE_H
  13. #define LLVM_CLANG_AST_INTERP_OPCODE_H
  14. #include <cstdint>
  15. namespace clang {
  16. namespace interp {
  17. enum Opcode : uint32_t {
  18. #define GET_OPCODE_NAMES
  19. #include "Opcodes.inc"
  20. #undef GET_OPCODE_NAMES
  21. };
  22. } // namespace interp
  23. } // namespace clang
  24. #endif