We currently don't have a way to map to the equivalent intrinsic
opcode, so track immediate 0s in place of the address for the
selection to know to change the final opcode.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
3727–3731 | This no longer applies, does it? MIMGLZMappingTable contains L and LZ fields of type MIMGBaseOpcode now. |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
3727–3731 | This is still in terms of the machine opcode, not the intrinsic ID |
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | ||
---|---|---|
3727–3731 | How about doing a reverse lookup with a second index like def getImageDimInstrinsicByBaseOpcode : SearchIndex { let Table = ImageDimIntrinsicTable; let Key = ["BaseOpcode", "Dim"]; } which should auto-generate a C++ function with signature: const ImageDimIntrinsicInfo *getImageDimIntrinsicByBaseOpcode(unsigned BaseOpcode, MIMGDim Dim); |
Comment Actions
Actually this requires removing the operand, which ripples through all of the other patches. At this point I think this needs to be a follow up patch
This no longer applies, does it? MIMGLZMappingTable contains L and LZ fields of type MIMGBaseOpcode now.