common_debug_info.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Copyright (c) 2021 The Khronos Group Inc.
  2. // Copyright (c) 2021 Valve Corporation
  3. // Copyright (c) 2021 LunarG Inc.
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #ifndef SOURCE_COMMON_DEBUG_INFO_HEADER_H_
  17. #define SOURCE_COMMON_DEBUG_INFO_HEADER_H_
  18. // This enum defines the known common set of instructions that are the same
  19. // between OpenCL.DebugInfo.100 and NonSemantic.Shader.DebugInfo.100.
  20. // Note that NonSemantic.Shader.* instructions can still have slightly
  21. // different encoding, as it does not use literals anywhere and only constants.
  22. enum CommonDebugInfoInstructions {
  23. CommonDebugInfoDebugInfoNone = 0,
  24. CommonDebugInfoDebugCompilationUnit = 1,
  25. CommonDebugInfoDebugTypeBasic = 2,
  26. CommonDebugInfoDebugTypePointer = 3,
  27. CommonDebugInfoDebugTypeQualifier = 4,
  28. CommonDebugInfoDebugTypeArray = 5,
  29. CommonDebugInfoDebugTypeVector = 6,
  30. CommonDebugInfoDebugTypedef = 7,
  31. CommonDebugInfoDebugTypeFunction = 8,
  32. CommonDebugInfoDebugTypeEnum = 9,
  33. CommonDebugInfoDebugTypeComposite = 10,
  34. CommonDebugInfoDebugTypeMember = 11,
  35. CommonDebugInfoDebugTypeInheritance = 12,
  36. CommonDebugInfoDebugTypePtrToMember = 13,
  37. CommonDebugInfoDebugTypeTemplate = 14,
  38. CommonDebugInfoDebugTypeTemplateParameter = 15,
  39. CommonDebugInfoDebugTypeTemplateTemplateParameter = 16,
  40. CommonDebugInfoDebugTypeTemplateParameterPack = 17,
  41. CommonDebugInfoDebugGlobalVariable = 18,
  42. CommonDebugInfoDebugFunctionDeclaration = 19,
  43. CommonDebugInfoDebugFunction = 20,
  44. CommonDebugInfoDebugLexicalBlock = 21,
  45. CommonDebugInfoDebugLexicalBlockDiscriminator = 22,
  46. CommonDebugInfoDebugScope = 23,
  47. CommonDebugInfoDebugNoScope = 24,
  48. CommonDebugInfoDebugInlinedAt = 25,
  49. CommonDebugInfoDebugLocalVariable = 26,
  50. CommonDebugInfoDebugInlinedVariable = 27,
  51. CommonDebugInfoDebugDeclare = 28,
  52. CommonDebugInfoDebugValue = 29,
  53. CommonDebugInfoDebugOperation = 30,
  54. CommonDebugInfoDebugExpression = 31,
  55. CommonDebugInfoDebugMacroDef = 32,
  56. CommonDebugInfoDebugMacroUndef = 33,
  57. CommonDebugInfoDebugImportedEntity = 34,
  58. CommonDebugInfoDebugSource = 35,
  59. CommonDebugInfoInstructionsMax = 0x7ffffff
  60. };
  61. #endif // SOURCE_COMMON_DEBUG_INFO_HEADER_H_