As a follow up to D103672, we should allow vaddr to be larger than
required when assembling GFX10 MIMG instructions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think this needs some rationale in a comment explaining why the assembler is tolerant in this particular way.
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
3459 | To preserve backward compatibility with existing code it would be sufficient to allow size=8 when 5 is required. I'm not sure if we need to enable other cases. As a minor note I think the code would be more readable if we do the following change: VAddrSize -> ActualAddrSize AddrSize -> ExpectedAddrSize |
To preserve backward compatibility with existing code it would be sufficient to allow size=8 when 5 is required. I'm not sure if we need to enable other cases.
As a minor note I think the code would be more readable if we do the following change: