[AMDGPU] Use tablegen for argument indices
Use tablegen generic tables to get the index of image intrinsic arguments. Before, the computation of which image intrinsic argument is at which index was scattered in a few places, tablegen, the SDag instruction selection and GlobalISel. This patch changes that, so only tablegen contains code to compute indices and the ImageDimIntrinsicInfo table provides these information. Differential Revision: https://reviews.llvm.org/D86270
Showing
- llvm/include/llvm/IR/IntrinsicsAMDGPU.td 9 additions, 5 deletionsllvm/include/llvm/IR/IntrinsicsAMDGPU.td
- llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h 0 additions, 31 deletionsllvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
- llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.h 22 additions, 5 deletionsllvm/lib/Target/AMDGPU/AMDGPUInstrInfo.h
- llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp 22 additions, 29 deletionsllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
- llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp 53 additions, 58 deletionsllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
- llvm/lib/Target/AMDGPU/MIMGInstructions.td 20 additions, 1 deletionllvm/lib/Target/AMDGPU/MIMGInstructions.td
- llvm/lib/Target/AMDGPU/SIISelLowering.cpp 35 additions, 48 deletionsllvm/lib/Target/AMDGPU/SIISelLowering.cpp
- llvm/lib/Target/AMDGPU/SIISelLowering.h 1 addition, 1 deletionllvm/lib/Target/AMDGPU/SIISelLowering.h
Loading
Please register or sign in to comment