OpenCLDebugInfo100.h 5.9 KB

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