DebugInfo.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // Copyright (c) 2017 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_EXTINST_DebugInfo_H_
  25. #define SPIRV_EXTINST_DebugInfo_H_
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. enum { DebugInfoVersion = 100, DebugInfoVersion_BitWidthPadding = 0x7fffffff };
  30. enum { DebugInfoRevision = 1, DebugInfoRevision_BitWidthPadding = 0x7fffffff };
  31. enum DebugInfoInstructions {
  32. DebugInfoDebugInfoNone = 0,
  33. DebugInfoDebugCompilationUnit = 1,
  34. DebugInfoDebugTypeBasic = 2,
  35. DebugInfoDebugTypePointer = 3,
  36. DebugInfoDebugTypeQualifier = 4,
  37. DebugInfoDebugTypeArray = 5,
  38. DebugInfoDebugTypeVector = 6,
  39. DebugInfoDebugTypedef = 7,
  40. DebugInfoDebugTypeFunction = 8,
  41. DebugInfoDebugTypeEnum = 9,
  42. DebugInfoDebugTypeComposite = 10,
  43. DebugInfoDebugTypeMember = 11,
  44. DebugInfoDebugTypeInheritance = 12,
  45. DebugInfoDebugTypePtrToMember = 13,
  46. DebugInfoDebugTypeTemplate = 14,
  47. DebugInfoDebugTypeTemplateParameter = 15,
  48. DebugInfoDebugTypeTemplateTemplateParameter = 16,
  49. DebugInfoDebugTypeTemplateParameterPack = 17,
  50. DebugInfoDebugGlobalVariable = 18,
  51. DebugInfoDebugFunctionDeclaration = 19,
  52. DebugInfoDebugFunction = 20,
  53. DebugInfoDebugLexicalBlock = 21,
  54. DebugInfoDebugLexicalBlockDiscriminator = 22,
  55. DebugInfoDebugScope = 23,
  56. DebugInfoDebugNoScope = 24,
  57. DebugInfoDebugInlinedAt = 25,
  58. DebugInfoDebugLocalVariable = 26,
  59. DebugInfoDebugInlinedVariable = 27,
  60. DebugInfoDebugDeclare = 28,
  61. DebugInfoDebugValue = 29,
  62. DebugInfoDebugOperation = 30,
  63. DebugInfoDebugExpression = 31,
  64. DebugInfoDebugMacroDef = 32,
  65. DebugInfoDebugMacroUndef = 33,
  66. DebugInfoInstructionsMax = 0x7ffffff
  67. };
  68. enum DebugInfoDebugInfoFlags {
  69. DebugInfoFlagIsProtected = 0x01,
  70. DebugInfoFlagIsPrivate = 0x02,
  71. DebugInfoFlagIsPublic = 0x03,
  72. DebugInfoFlagIsLocal = 0x04,
  73. DebugInfoFlagIsDefinition = 0x08,
  74. DebugInfoFlagFwdDecl = 0x10,
  75. DebugInfoFlagArtificial = 0x20,
  76. DebugInfoFlagExplicit = 0x40,
  77. DebugInfoFlagPrototyped = 0x80,
  78. DebugInfoFlagObjectPointer = 0x100,
  79. DebugInfoFlagStaticMember = 0x200,
  80. DebugInfoFlagIndirectVariable = 0x400,
  81. DebugInfoFlagLValueReference = 0x800,
  82. DebugInfoFlagRValueReference = 0x1000,
  83. DebugInfoFlagIsOptimized = 0x2000,
  84. DebugInfoDebugInfoFlagsMax = 0x7ffffff
  85. };
  86. enum DebugInfoDebugBaseTypeAttributeEncoding {
  87. DebugInfoUnspecified = 0,
  88. DebugInfoAddress = 1,
  89. DebugInfoBoolean = 2,
  90. DebugInfoFloat = 4,
  91. DebugInfoSigned = 5,
  92. DebugInfoSignedChar = 6,
  93. DebugInfoUnsigned = 7,
  94. DebugInfoUnsignedChar = 8,
  95. DebugInfoDebugBaseTypeAttributeEncodingMax = 0x7ffffff
  96. };
  97. enum DebugInfoDebugCompositeType {
  98. DebugInfoClass = 0,
  99. DebugInfoStructure = 1,
  100. DebugInfoUnion = 2,
  101. DebugInfoDebugCompositeTypeMax = 0x7ffffff
  102. };
  103. enum DebugInfoDebugTypeQualifier {
  104. DebugInfoConstType = 0,
  105. DebugInfoVolatileType = 1,
  106. DebugInfoRestrictType = 2,
  107. DebugInfoDebugTypeQualifierMax = 0x7ffffff
  108. };
  109. enum DebugInfoDebugOperation {
  110. DebugInfoDeref = 0,
  111. DebugInfoPlus = 1,
  112. DebugInfoMinus = 2,
  113. DebugInfoPlusUconst = 3,
  114. DebugInfoBitPiece = 4,
  115. DebugInfoSwap = 5,
  116. DebugInfoXderef = 6,
  117. DebugInfoStackValue = 7,
  118. DebugInfoConstu = 8,
  119. DebugInfoDebugOperationMax = 0x7ffffff
  120. };
  121. #ifdef __cplusplus
  122. }
  123. #endif
  124. #endif // SPIRV_EXTINST_DebugInfo_H_