説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DiagnosticId.cs 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. namespace Unity.Burst
  2. {
  3. /// <summary>
  4. /// Specifies the possible diagnostic IDs.
  5. /// </summary>
  6. #if BURST_COMPILER_SHARED
  7. public
  8. #else
  9. internal
  10. #endif
  11. enum DiagnosticId
  12. {
  13. // General
  14. ERR_InternalCompilerErrorInBackend = 100,
  15. ERR_InternalCompilerErrorInFunction = 101,
  16. ERR_InternalCompilerErrorInInstruction = 102,
  17. // ILBuilder
  18. ERR_OnlyStaticMethodsAllowed = 1000,
  19. ERR_UnableToAccessManagedMethod = 1001,
  20. ERR_UnableToFindInterfaceMethod = 1002,
  21. // ILCompiler
  22. ERR_UnexpectedEmptyMethodBody = 1003,
  23. ERR_ManagedArgumentsNotSupported = 1004,
  24. // ERR_TryConstructionNotSupported = 1005, // not used anymore
  25. ERR_CatchConstructionNotSupported = 1006,
  26. ERR_CatchAndFilterConstructionNotSupported = 1007,
  27. ERR_LdfldaWithFixedArrayExpected = 1008,
  28. ERR_PointerExpected = 1009,
  29. ERR_LoadingFieldFromManagedObjectNotSupported = 1010,
  30. ERR_LoadingFieldWithManagedTypeNotSupported = 1011,
  31. ERR_LoadingArgumentWithManagedTypeNotSupported = 1012,
  32. ERR_CallingBurstDiscardMethodWithReturnValueNotSupported = 1015,
  33. ERR_CallingManagedMethodNotSupported = 1016,
  34. //ERR_BinaryPointerOperationNotSupported = 1017,
  35. //ERR_AddingPointersWithNonPointerResultNotSupported = 1018,
  36. ERR_InstructionUnboxNotSupported = 1019,
  37. ERR_InstructionBoxNotSupported = 1020,
  38. ERR_InstructionNewobjWithManagedTypeNotSupported = 1021,
  39. ERR_AccessingManagedArrayNotSupported = 1022,
  40. ERR_InstructionLdtokenFieldNotSupported = 1023,
  41. ERR_InstructionLdtokenMethodNotSupported = 1024,
  42. ERR_InstructionLdtokenTypeNotSupported = 1025,
  43. ERR_InstructionLdtokenNotSupported = 1026,
  44. ERR_InstructionLdvirtftnNotSupported = 1027,
  45. ERR_InstructionNewarrNotSupported = 1028,
  46. ERR_InstructionRethrowNotSupported = 1029,
  47. ERR_InstructionCastclassNotSupported = 1030,
  48. //ERR_InstructionIsinstNotSupported = 1031,
  49. ERR_InstructionLdftnNotSupported = 1032,
  50. ERR_InstructionLdstrNotSupported = 1033,
  51. ERR_InstructionStsfldNotSupported = 1034,
  52. ERR_InstructionEndfilterNotSupported = 1035,
  53. ERR_InstructionEndfinallyNotSupported = 1036,
  54. ERR_InstructionLeaveNotSupported = 1037,
  55. ERR_InstructionNotSupported = 1038,
  56. ERR_LoadingFromStaticFieldNotSupported = 1039,
  57. ERR_LoadingFromNonReadonlyStaticFieldNotSupported = 1040,
  58. ERR_LoadingFromManagedStaticFieldNotSupported = 1041,
  59. ERR_LoadingFromManagedNonReadonlyStaticFieldNotSupported = 1042,
  60. ERR_InstructionStfldToManagedObjectNotSupported = 1043,
  61. ERR_InstructionLdlenNonConstantLengthNotSupported = 1044,
  62. ERR_StructWithAutoLayoutNotSupported = 1045,
  63. //ERR_StructWithPackNotSupported = 1046,
  64. ERR_StructWithGenericParametersAndExplicitLayoutNotSupported = 1047,
  65. ERR_StructSizeNotSupported = 1048,
  66. ERR_StructZeroSizeNotSupported = 1049,
  67. ERR_MarshalAsOnFieldNotSupported = 1050,
  68. ERR_TypeNotSupported = 1051,
  69. ERR_RequiredTypeModifierNotSupported = 1052,
  70. ERR_ErrorWhileProcessingVariable = 1053,
  71. // CecilExtensions
  72. ERR_UnableToResolveType = 1054,
  73. // ILFunctionReference
  74. ERR_UnableToResolveMethod = 1055,
  75. ERR_ConstructorNotSupported = 1056,
  76. ERR_FunctionPointerMethodMissingBurstCompileAttribute = 1057,
  77. ERR_FunctionPointerTypeMissingBurstCompileAttribute = 1058,
  78. ERR_FunctionPointerMethodAndTypeMissingBurstCompileAttribute = 1059,
  79. INF_FunctionPointerMethodAndTypeMissingMonoPInvokeCallbackAttribute = 10590,
  80. // ILVisitor
  81. // ERR_EntryPointFunctionCannotBeCalledInternally = 1060, // no longer used
  82. // ExternalFunctionParameterChecks
  83. ERR_MarshalAsOnParameterNotSupported = 1061,
  84. ERR_MarshalAsOnReturnTypeNotSupported = 1062,
  85. ERR_TypeNotBlittableForFunctionPointer = 1063,
  86. ERR_StructByValueNotSupported = 1064,
  87. ERR_StructsWithNonUnicodeCharsNotSupported = 1066,
  88. ERR_VectorsByValueNotSupported = 1067,
  89. // JitCompiler
  90. ERR_MissingExternBindings = 1068,
  91. // More ExternalFunctionParameterChecks
  92. ERR_MarshalAsNativeTypeOnReturnTypeNotSupported = 1069,
  93. // AssertProcessor
  94. ERR_AssertTypeNotSupported = 1071,
  95. // ReadOnlyProcessor
  96. ERR_StoringToReadOnlyFieldNotAllowed = 1072,
  97. ERR_StoringToFieldInReadOnlyParameterNotAllowed = 1073,
  98. ERR_StoringToReadOnlyParameterNotAllowed = 1074,
  99. // TypeManagerProcessor
  100. ERR_TypeManagerStaticFieldNotCompatible = 1075,
  101. ERR_UnableToFindTypeIndexForTypeManagerType = 1076,
  102. ERR_UnableToFindFieldForTypeManager = 1077,
  103. // Deprecated NoAliasAnalyzer
  104. // WRN_DisablingNoaliasUnsupportedLdobjImplicitNativeContainer = 1078,
  105. // WRN_DisablingNoaliasLoadingDirectlyFromFieldOfNativeArray = 1079,
  106. // WRN_DisablingNoaliasWritingDirectlyToFieldOfNativeArray = 1080,
  107. // WRN_DisablingNoaliasStoringImplicitNativeContainerToField = 1081,
  108. // WRN_DisablingNoaliasStoringImplicitNativeContainerToLocalVariable = 1082,
  109. // WRN_DisablingNoaliasStoringImplicitNativeContainerToPointer = 1083,
  110. // WRN_DisablingNoaliasCannotLoadNativeContainerAsBothArgumentAndField = 1084,
  111. // WRN_DisablingNoaliasSameArgumentPath = 1085,
  112. // WRN_DisablingNoaliasCannotPassMultipleNativeContainersConcurrently = 1086,
  113. // WRN_DisablingNoaliasUnsupportedNativeArrayUnsafeUtilityMethod = 1087,
  114. // WRN_DisablingNoaliasUnsupportedNativeArrayMethod = 1088,
  115. // WRN_DisablingNoaliasUnsupportedThisArgument = 1089,
  116. // StaticFieldAccessTransform
  117. ERR_CircularStaticConstructorUsage = 1090,
  118. ERR_ExternalInternalCallsInStaticConstructorsNotSupported = 1091,
  119. // AotCompiler
  120. ERR_PlatformNotSupported = 1092,
  121. ERR_InitModuleVerificationError = 1093,
  122. // NativeCompiler
  123. ERR_ModuleVerificationError = 1094,
  124. // TypeManagerProcessor
  125. ERR_UnableToFindTypeRequiredForTypeManager = 1095,
  126. // ILBuilder
  127. ERR_UnexpectedIntegerTypesForBinaryOperation = 1096,
  128. ERR_BinaryOperationNotSupported = 1097,
  129. ERR_CalliWithThisNotSupported = 1098,
  130. ERR_CalliNonCCallingConventionNotSupported = 1099,
  131. ERR_StringLiteralTooBig = 1100,
  132. ERR_LdftnNonCCallingConventionNotSupported = 1101,
  133. ERR_UnableToCallMethodOnInterfaceObject = 1102,
  134. // CheckIntrinsicUsageTransform
  135. ERR_UnsupportedCpuDependentBranch = 1199,
  136. ERR_InstructionTargetCpuFeatureNotAllowedInThisBlock = 1200,
  137. // AssumeRange
  138. ERR_AssumeRangeTypeMustBeInteger = 1201,
  139. ERR_AssumeRangeTypeMustBeSameSign = 1202,
  140. // LdfldaTransform
  141. ERR_UnsupportedSpillTransform = 1300,
  142. ERR_UnsupportedSpillTransformTooManyUsers = 1301,
  143. // Intrinsics
  144. ERR_MethodNotSupported = 1302,
  145. ERR_VectorsLoadFieldIsAddress = 1303,
  146. ERR_ConstantExpressionRequired = 1304,
  147. // UBAA
  148. ERR_PointerArgumentsUnexpectedAliasing = 1310,
  149. // Loop intrinsics
  150. ERR_LoopIntrinsicMustBeCalledInsideLoop = 1320,
  151. ERR_LoopUnexpectedAutoVectorization = 1321,
  152. WRN_LoopIntrinsicCalledButLoopOptimizedAway = 1322,
  153. // AssertProcessor
  154. ERR_AssertArgTypesDiffer = 1330,
  155. // StringUsageTransform
  156. ERR_StringInternalCompilerFixedStringTooManyUsers = 1340,
  157. ERR_StringInvalidFormatMissingClosingBrace = 1341,
  158. ERR_StringInvalidIntegerForArgumentIndex = 1342,
  159. ERR_StringInvalidFormatForArgument = 1343,
  160. ERR_StringArgumentIndexOutOfRange = 1344,
  161. ERR_StringInvalidArgumentType = 1345,
  162. ERR_DebugLogNotSupported = 1346,
  163. ERR_StringInvalidNonLiteralFormat = 1347,
  164. ERR_StringInvalidStringFormatMethod = 1348,
  165. ERR_StringInvalidArgument = 1349,
  166. ERR_StringArrayInvalidArrayCreation = 1350,
  167. ERR_StringArrayInvalidArraySize = 1351,
  168. ERR_StringArrayInvalidControlFlow = 1352,
  169. ERR_StringArrayInvalidArrayIndex = 1353,
  170. ERR_StringArrayInvalidArrayIndexOutOfRange = 1354,
  171. ERR_UnmanagedStringMethodMissing = 1355,
  172. ERR_UnmanagedStringMethodInvalid = 1356,
  173. // Static constructor
  174. ERR_ManagedStaticConstructor = 1360,
  175. ERR_StaticConstantArrayInStaticConstructor = 1361,
  176. // Safety check warning
  177. WRN_ExceptionThrownInNonSafetyCheckGuardedFunction = 1370,
  178. // Discarded method warning
  179. WRN_ACallToMethodHasBeenDiscarded = 1371,
  180. // Accessing a nested managed array is not supported
  181. ERR_AccessingNestedManagedArrayNotSupported = 1380,
  182. // Loading from a non-pointer / non-reference is not supported
  183. ERR_LdobjFromANonPointerNonReference = 1381,
  184. ERR_StringLiteralRequired = 1382,
  185. ERR_MultiDimensionalArrayUnsupported = 1383,
  186. ERR_NonBlittableAndNonManagedSequentialStructNotSupported = 1384,
  187. ERR_VarArgFunctionNotSupported = 1385,
  188. }
  189. }