[PATCH] D134809: [AMDGPU][MC][GFX11] Disable non-null src0 for s_waitcnt_*cnt
Dmitry Preobrazhensky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 08:40:42 PDT 2022
dp added a comment.
In D134809#3820905 <https://reviews.llvm.org/D134809#3820905>, @foad wrote:
> 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.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134809/new/
https://reviews.llvm.org/D134809
More information about the llvm-commits
mailing list