[PATCH] D12451: AMDGPU/SI: Re-order PreloadedValue enum and number entries based on init order
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 15:32:30 PDT 2015
tstellarAMD created this revision.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.
http://reviews.llvm.org/D12451
Files:
lib/Target/AMDGPU/SIRegisterInfo.h
Index: lib/Target/AMDGPU/SIRegisterInfo.h
===================================================================
--- lib/Target/AMDGPU/SIRegisterInfo.h
+++ lib/Target/AMDGPU/SIRegisterInfo.h
@@ -95,15 +95,16 @@
bool opCanUseInlineConstant(unsigned OpType) const;
enum PreloadedValue {
- TGID_X,
- TGID_Y,
- TGID_Z,
- SCRATCH_WAVE_OFFSET,
- SCRATCH_PTR,
- INPUT_PTR,
- TIDIG_X,
- TIDIG_Y,
- TIDIG_Z
+ SCRATCH_PTR = 0,
+ INPUT_PTR = 3,
+ TGID_X = 10,
+ TGID_Y = 11,
+ TGID_Z = 12,
+ SCRATCH_WAVE_OFFSET = 14,
+ FIRST_VGPR_VALUE = 15,
+ TIDIG_X = FIRST_VGPR_VALUE,
+ TIDIG_Y = 16,
+ TIDIG_Z = 17,
};
/// \brief Returns the physical register that \p Value is stored in.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12451.33481.patch
Type: text/x-patch
Size: 834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150828/72b360e8/attachment.bin>
More information about the llvm-commits
mailing list