DebugInfo.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // Copyright (c) 2017-2024 The Khronos Group Inc.
  2. //
  3. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4. // of this software and/or associated documentation files (the "Materials"),
  5. // to deal in the Materials without restriction, including without limitation
  6. // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  7. // and/or sell copies of the Materials, and to permit persons to whom the
  8. // Materials are furnished to do so, subject to the following conditions:
  9. //
  10. // The above copyright notice and this permission notice shall be included in
  11. // all copies or substantial portions of the Materials.
  12. //
  13. // MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
  14. // STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
  15. // HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
  16. //
  17. // THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. // FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
  23. // IN THE MATERIALS.
  24. #ifndef SPIRV_UNIFIED1_DebugInfo_H_
  25. #define SPIRV_UNIFIED1_DebugInfo_H_
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. enum {
  30. DebugInfoVersion = 100,
  31. DebugInfoVersion_BitWidthPadding = 0x7fffffff
  32. };
  33. enum {
  34. DebugInfoRevision = 1,
  35. DebugInfoRevision_BitWidthPadding = 0x7fffffff
  36. };
  37. enum DebugInfoInstructions {
  38. DebugInfoDebugInfoNone = 0,
  39. DebugInfoDebugCompilationUnit = 1,
  40. DebugInfoDebugTypeBasic = 2,
  41. DebugInfoDebugTypePointer = 3,
  42. DebugInfoDebugTypeQualifier = 4,
  43. DebugInfoDebugTypeArray = 5,
  44. DebugInfoDebugTypeVector = 6,
  45. DebugInfoDebugTypedef = 7,
  46. DebugInfoDebugTypeFunction = 8,
  47. DebugInfoDebugTypeEnum = 9,
  48. DebugInfoDebugTypeComposite = 10,
  49. DebugInfoDebugTypeMember = 11,
  50. DebugInfoDebugTypeInheritance = 12,
  51. DebugInfoDebugTypePtrToMember = 13,
  52. DebugInfoDebugTypeTemplate = 14,
  53. DebugInfoDebugTypeTemplateParameter = 15,
  54. DebugInfoDebugTypeTemplateTemplateParameter = 16,
  55. DebugInfoDebugTypeTemplateParameterPack = 17,
  56. DebugInfoDebugGlobalVariable = 18,
  57. DebugInfoDebugFunctionDeclaration = 19,
  58. DebugInfoDebugFunction = 20,
  59. DebugInfoDebugLexicalBlock = 21,
  60. DebugInfoDebugLexicalBlockDiscriminator = 22,
  61. DebugInfoDebugScope = 23,
  62. DebugInfoDebugNoScope = 24,
  63. DebugInfoDebugInlinedAt = 25,
  64. DebugInfoDebugLocalVariable = 26,
  65. DebugInfoDebugInlinedVariable = 27,
  66. DebugInfoDebugDeclare = 28,
  67. DebugInfoDebugValue = 29,
  68. DebugInfoDebugOperation = 30,
  69. DebugInfoDebugExpression = 31,
  70. DebugInfoDebugMacroDef = 32,
  71. DebugInfoDebugMacroUndef = 33,
  72. DebugInfoInstructionsMax = 0x7fffffff
  73. };
  74. enum DebugInfoDebugInfoFlags {
  75. DebugInfoNone = 0x0000,
  76. DebugInfoFlagIsProtected = 0x01,
  77. DebugInfoFlagIsPrivate = 0x02,
  78. DebugInfoFlagIsPublic = 0x03,
  79. DebugInfoFlagIsLocal = 0x04,
  80. DebugInfoFlagIsDefinition = 0x08,
  81. DebugInfoFlagFwdDecl = 0x10,
  82. DebugInfoFlagArtificial = 0x20,
  83. DebugInfoFlagExplicit = 0x40,
  84. DebugInfoFlagPrototyped = 0x80,
  85. DebugInfoFlagObjectPointer = 0x100,
  86. DebugInfoFlagStaticMember = 0x200,
  87. DebugInfoFlagIndirectVariable = 0x400,
  88. DebugInfoFlagLValueReference = 0x800,
  89. DebugInfoFlagRValueReference = 0x1000,
  90. DebugInfoFlagIsOptimized = 0x2000,
  91. DebugInfoDebugInfoFlagsMax = 0x7fffffff
  92. };
  93. enum DebugInfoDebugBaseTypeAttributeEncoding {
  94. DebugInfoUnspecified = 0,
  95. DebugInfoAddress = 1,
  96. DebugInfoBoolean = 2,
  97. DebugInfoFloat = 4,
  98. DebugInfoSigned = 5,
  99. DebugInfoSignedChar = 6,
  100. DebugInfoUnsigned = 7,
  101. DebugInfoUnsignedChar = 8,
  102. DebugInfoDebugBaseTypeAttributeEncodingMax = 0x7fffffff
  103. };
  104. enum DebugInfoDebugCompositeType {
  105. DebugInfoClass = 0,
  106. DebugInfoStructure = 1,
  107. DebugInfoUnion = 2,
  108. DebugInfoDebugCompositeTypeMax = 0x7fffffff
  109. };
  110. enum DebugInfoDebugTypeQualifier {
  111. DebugInfoConstType = 0,
  112. DebugInfoVolatileType = 1,
  113. DebugInfoRestrictType = 2,
  114. DebugInfoDebugTypeQualifierMax = 0x7fffffff
  115. };
  116. enum DebugInfoDebugOperation {
  117. DebugInfoDeref = 0,
  118. DebugInfoPlus = 1,
  119. DebugInfoMinus = 2,
  120. DebugInfoPlusUconst = 3,
  121. DebugInfoBitPiece = 4,
  122. DebugInfoSwap = 5,
  123. DebugInfoXderef = 6,
  124. DebugInfoStackValue = 7,
  125. DebugInfoConstu = 8,
  126. DebugInfoDebugOperationMax = 0x7fffffff
  127. };
  128. #ifdef __cplusplus
  129. }
  130. #endif
  131. #endif // SPIRV_UNIFIED1_DebugInfo_H_