@@ -360,53 +360,53 @@ enum TargetIndex {
360
360
// / a separate piece of memory that is unique from other
361
361
// / memory locations.
362
362
namespace AMDGPUAS {
363
- enum : unsigned {
364
- // The maximum value for flat, generic, local, private, constant and region.
365
- MAX_AMDGPU_ADDRESS = 7 ,
366
-
367
- FLAT_ADDRESS = 0 , // /< Address space for flat memory.
368
- GLOBAL_ADDRESS = 1 , // /< Address space for global memory (RAT0, VTX0).
369
- REGION_ADDRESS = 2 , // /< Address space for region memory. (GDS)
370
-
371
- CONSTANT_ADDRESS = 4 , // /< Address space for constant memory (VTX2).
372
- LOCAL_ADDRESS = 3 , // /< Address space for local memory.
373
- PRIVATE_ADDRESS = 5 , // /< Address space for private memory.
374
-
375
- CONSTANT_ADDRESS_32BIT = 6 , // /< Address space for 32-bit constant memory.
376
-
377
- BUFFER_FAT_POINTER = 7 , // /< Address space for 160-bit buffer fat pointers.
378
-
379
- // / Address space for direct addressable parameter memory (CONST0).
380
- PARAM_D_ADDRESS = 6 ,
381
- // / Address space for indirect addressable parameter memory (VTX1).
382
- PARAM_I_ADDRESS = 7 ,
383
-
384
- // Do not re-order the CONSTANT_BUFFER_* enums. Several places depend on
385
- // this order to be able to dynamically index a constant buffer, for
386
- // example:
387
- //
388
- // ConstantBufferAS = CONSTANT_BUFFER_0 + CBIdx
389
-
390
- CONSTANT_BUFFER_0 = 8 ,
391
- CONSTANT_BUFFER_1 = 9 ,
392
- CONSTANT_BUFFER_2 = 10 ,
393
- CONSTANT_BUFFER_3 = 11 ,
394
- CONSTANT_BUFFER_4 = 12 ,
395
- CONSTANT_BUFFER_5 = 13 ,
396
- CONSTANT_BUFFER_6 = 14 ,
397
- CONSTANT_BUFFER_7 = 15 ,
398
- CONSTANT_BUFFER_8 = 16 ,
399
- CONSTANT_BUFFER_9 = 17 ,
400
- CONSTANT_BUFFER_10 = 18 ,
401
- CONSTANT_BUFFER_11 = 19 ,
402
- CONSTANT_BUFFER_12 = 20 ,
403
- CONSTANT_BUFFER_13 = 21 ,
404
- CONSTANT_BUFFER_14 = 22 ,
405
- CONSTANT_BUFFER_15 = 23 ,
406
-
407
- // Some places use this if the address space can't be determined.
408
- UNKNOWN_ADDRESS_SPACE = ~0u ,
409
- };
363
+ enum : unsigned {
364
+ // The maximum value for flat, generic, local, private, constant and region.
365
+ MAX_AMDGPU_ADDRESS = 7 ,
366
+
367
+ FLAT_ADDRESS = 0 , // /< Address space for flat memory.
368
+ GLOBAL_ADDRESS = 1 , // /< Address space for global memory (RAT0, VTX0).
369
+ REGION_ADDRESS = 2 , // /< Address space for region memory. (GDS)
370
+
371
+ CONSTANT_ADDRESS = 4 , // /< Address space for constant memory (VTX2).
372
+ LOCAL_ADDRESS = 3 , // /< Address space for local memory.
373
+ PRIVATE_ADDRESS = 5 , // /< Address space for private memory.
374
+
375
+ CONSTANT_ADDRESS_32BIT = 6 , // /< Address space for 32-bit constant memory.
376
+
377
+ BUFFER_FAT_POINTER = 7 , // /< Address space for 160-bit buffer fat pointers.
378
+
379
+ // / Address space for direct addressable parameter memory (CONST0).
380
+ PARAM_D_ADDRESS = 6 ,
381
+ // / Address space for indirect addressable parameter memory (VTX1).
382
+ PARAM_I_ADDRESS = 7 ,
383
+
384
+ // Do not re-order the CONSTANT_BUFFER_* enums. Several places depend on
385
+ // this order to be able to dynamically index a constant buffer, for
386
+ // example:
387
+ //
388
+ // ConstantBufferAS = CONSTANT_BUFFER_0 + CBIdx
389
+
390
+ CONSTANT_BUFFER_0 = 8 ,
391
+ CONSTANT_BUFFER_1 = 9 ,
392
+ CONSTANT_BUFFER_2 = 10 ,
393
+ CONSTANT_BUFFER_3 = 11 ,
394
+ CONSTANT_BUFFER_4 = 12 ,
395
+ CONSTANT_BUFFER_5 = 13 ,
396
+ CONSTANT_BUFFER_6 = 14 ,
397
+ CONSTANT_BUFFER_7 = 15 ,
398
+ CONSTANT_BUFFER_8 = 16 ,
399
+ CONSTANT_BUFFER_9 = 17 ,
400
+ CONSTANT_BUFFER_10 = 18 ,
401
+ CONSTANT_BUFFER_11 = 19 ,
402
+ CONSTANT_BUFFER_12 = 20 ,
403
+ CONSTANT_BUFFER_13 = 21 ,
404
+ CONSTANT_BUFFER_14 = 22 ,
405
+ CONSTANT_BUFFER_15 = 23 ,
406
+
407
+ // Some places use this if the address space can't be determined.
408
+ UNKNOWN_ADDRESS_SPACE = ~0u ,
409
+ };
410
410
}
411
411
412
412
namespace AMDGPU {
0 commit comments