Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks OK for GFX11, I just wonder if there is a way to do this that will automatically work for future architectures too? Or will we just have to remember to update the list of opcodes in validateWaitCnt?
Unfortunately, I do not see how else we can detect these opcodes in the parser. They do not have any distinct feature flags we could use.
I can add a tablegenned function for opcode detection, but this will not automatically work for future architectures.
If we were able to convert MC opcodes to PSEUDO, this might work.
As an afterthought, I think this instruction will unlikely exist in future architectures (at least in the current form). I believe src0 will be either removed or repurposed.
Fix unexpected disassembler breakage caused by this change. Update disassembler tests.