BTF.def 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //===- BTF.def - BTF definitions --------------------------------*- 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. // Macros for BTF.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #if !defined(HANDLE_BTF_KIND)
  13. #error "Missing macro definition of HANDLE_BTF_*"
  14. #endif
  15. HANDLE_BTF_KIND(0, UNKN)
  16. HANDLE_BTF_KIND(1, INT)
  17. HANDLE_BTF_KIND(2, PTR)
  18. HANDLE_BTF_KIND(3, ARRAY)
  19. HANDLE_BTF_KIND(4, STRUCT)
  20. HANDLE_BTF_KIND(5, UNION)
  21. HANDLE_BTF_KIND(6, ENUM)
  22. HANDLE_BTF_KIND(7, FWD)
  23. HANDLE_BTF_KIND(8, TYPEDEF)
  24. HANDLE_BTF_KIND(9, VOLATILE)
  25. HANDLE_BTF_KIND(10, CONST)
  26. HANDLE_BTF_KIND(11, RESTRICT)
  27. HANDLE_BTF_KIND(12, FUNC)
  28. HANDLE_BTF_KIND(13, FUNC_PROTO)
  29. HANDLE_BTF_KIND(14, VAR)
  30. HANDLE_BTF_KIND(15, DATASEC)
  31. HANDLE_BTF_KIND(16, FLOAT)
  32. HANDLE_BTF_KIND(17, DECL_TAG)
  33. HANDLE_BTF_KIND(18, TYPE_TAG)
  34. #undef HANDLE_BTF_KIND