OpenCLDebugInfo100.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. // Copyright (c) 2018-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_OpenCLDebugInfo100_H_
  25. #define SPIRV_UNIFIED1_OpenCLDebugInfo100_H_
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. enum {
  30. OpenCLDebugInfo100Version = 200,
  31. OpenCLDebugInfo100Version_BitWidthPadding = 0x7fffffff
  32. };
  33. enum {
  34. OpenCLDebugInfo100Revision = 2,
  35. OpenCLDebugInfo100Revision_BitWidthPadding = 0x7fffffff
  36. };
  37. enum OpenCLDebugInfo100Instructions {
  38. OpenCLDebugInfo100DebugInfoNone = 0,
  39. OpenCLDebugInfo100DebugCompilationUnit = 1,
  40. OpenCLDebugInfo100DebugTypeBasic = 2,
  41. OpenCLDebugInfo100DebugTypePointer = 3,
  42. OpenCLDebugInfo100DebugTypeQualifier = 4,
  43. OpenCLDebugInfo100DebugTypeArray = 5,
  44. OpenCLDebugInfo100DebugTypeVector = 6,
  45. OpenCLDebugInfo100DebugTypedef = 7,
  46. OpenCLDebugInfo100DebugTypeFunction = 8,
  47. OpenCLDebugInfo100DebugTypeEnum = 9,
  48. OpenCLDebugInfo100DebugTypeComposite = 10,
  49. OpenCLDebugInfo100DebugTypeMember = 11,
  50. OpenCLDebugInfo100DebugTypeInheritance = 12,
  51. OpenCLDebugInfo100DebugTypePtrToMember = 13,
  52. OpenCLDebugInfo100DebugTypeTemplate = 14,
  53. OpenCLDebugInfo100DebugTypeTemplateParameter = 15,
  54. OpenCLDebugInfo100DebugTypeTemplateTemplateParameter = 16,
  55. OpenCLDebugInfo100DebugTypeTemplateParameterPack = 17,
  56. OpenCLDebugInfo100DebugGlobalVariable = 18,
  57. OpenCLDebugInfo100DebugFunctionDeclaration = 19,
  58. OpenCLDebugInfo100DebugFunction = 20,
  59. OpenCLDebugInfo100DebugLexicalBlock = 21,
  60. OpenCLDebugInfo100DebugLexicalBlockDiscriminator = 22,
  61. OpenCLDebugInfo100DebugScope = 23,
  62. OpenCLDebugInfo100DebugNoScope = 24,
  63. OpenCLDebugInfo100DebugInlinedAt = 25,
  64. OpenCLDebugInfo100DebugLocalVariable = 26,
  65. OpenCLDebugInfo100DebugInlinedVariable = 27,
  66. OpenCLDebugInfo100DebugDeclare = 28,
  67. OpenCLDebugInfo100DebugValue = 29,
  68. OpenCLDebugInfo100DebugOperation = 30,
  69. OpenCLDebugInfo100DebugExpression = 31,
  70. OpenCLDebugInfo100DebugMacroDef = 32,
  71. OpenCLDebugInfo100DebugMacroUndef = 33,
  72. OpenCLDebugInfo100DebugImportedEntity = 34,
  73. OpenCLDebugInfo100DebugSource = 35,
  74. OpenCLDebugInfo100DebugModuleINTEL = 36,
  75. OpenCLDebugInfo100InstructionsMax = 0x7fffffff
  76. };
  77. enum OpenCLDebugInfo100DebugInfoFlags {
  78. OpenCLDebugInfo100None = 0x0000,
  79. OpenCLDebugInfo100FlagIsProtected = 0x01,
  80. OpenCLDebugInfo100FlagIsPrivate = 0x02,
  81. OpenCLDebugInfo100FlagIsPublic = 0x03,
  82. OpenCLDebugInfo100FlagIsLocal = 0x04,
  83. OpenCLDebugInfo100FlagIsDefinition = 0x08,
  84. OpenCLDebugInfo100FlagFwdDecl = 0x10,
  85. OpenCLDebugInfo100FlagArtificial = 0x20,
  86. OpenCLDebugInfo100FlagExplicit = 0x40,
  87. OpenCLDebugInfo100FlagPrototyped = 0x80,
  88. OpenCLDebugInfo100FlagObjectPointer = 0x100,
  89. OpenCLDebugInfo100FlagStaticMember = 0x200,
  90. OpenCLDebugInfo100FlagIndirectVariable = 0x400,
  91. OpenCLDebugInfo100FlagLValueReference = 0x800,
  92. OpenCLDebugInfo100FlagRValueReference = 0x1000,
  93. OpenCLDebugInfo100FlagIsOptimized = 0x2000,
  94. OpenCLDebugInfo100FlagIsEnumClass = 0x4000,
  95. OpenCLDebugInfo100FlagTypePassByValue = 0x8000,
  96. OpenCLDebugInfo100FlagTypePassByReference = 0x10000,
  97. OpenCLDebugInfo100DebugInfoFlagsMax = 0x7fffffff
  98. };
  99. enum OpenCLDebugInfo100DebugBaseTypeAttributeEncoding {
  100. OpenCLDebugInfo100Unspecified = 0,
  101. OpenCLDebugInfo100Address = 1,
  102. OpenCLDebugInfo100Boolean = 2,
  103. OpenCLDebugInfo100Float = 3,
  104. OpenCLDebugInfo100Signed = 4,
  105. OpenCLDebugInfo100SignedChar = 5,
  106. OpenCLDebugInfo100Unsigned = 6,
  107. OpenCLDebugInfo100UnsignedChar = 7,
  108. OpenCLDebugInfo100DebugBaseTypeAttributeEncodingMax = 0x7fffffff
  109. };
  110. enum OpenCLDebugInfo100DebugCompositeType {
  111. OpenCLDebugInfo100Class = 0,
  112. OpenCLDebugInfo100Structure = 1,
  113. OpenCLDebugInfo100Union = 2,
  114. OpenCLDebugInfo100DebugCompositeTypeMax = 0x7fffffff
  115. };
  116. enum OpenCLDebugInfo100DebugTypeQualifier {
  117. OpenCLDebugInfo100ConstType = 0,
  118. OpenCLDebugInfo100VolatileType = 1,
  119. OpenCLDebugInfo100RestrictType = 2,
  120. OpenCLDebugInfo100AtomicType = 3,
  121. OpenCLDebugInfo100DebugTypeQualifierMax = 0x7fffffff
  122. };
  123. enum OpenCLDebugInfo100DebugOperation {
  124. OpenCLDebugInfo100Deref = 0,
  125. OpenCLDebugInfo100Plus = 1,
  126. OpenCLDebugInfo100Minus = 2,
  127. OpenCLDebugInfo100PlusUconst = 3,
  128. OpenCLDebugInfo100BitPiece = 4,
  129. OpenCLDebugInfo100Swap = 5,
  130. OpenCLDebugInfo100Xderef = 6,
  131. OpenCLDebugInfo100StackValue = 7,
  132. OpenCLDebugInfo100Constu = 8,
  133. OpenCLDebugInfo100Fragment = 9,
  134. OpenCLDebugInfo100DebugOperationMax = 0x7fffffff
  135. };
  136. enum OpenCLDebugInfo100DebugImportedEntity {
  137. OpenCLDebugInfo100ImportedModule = 0,
  138. OpenCLDebugInfo100ImportedDeclaration = 1,
  139. OpenCLDebugInfo100DebugImportedEntityMax = 0x7fffffff
  140. };
  141. #ifdef __cplusplus
  142. }
  143. #endif
  144. #endif // SPIRV_UNIFIED1_OpenCLDebugInfo100_H_