In a lot of places, we were just calling getNamedOperandIdx to check if the result was != or == to -1.
This is fine in itself, but it's verbose and doesn't make the intention clear, IMHO. I added a hasNamedOperand and replaced all cases I could find with regexes and manually.
Details
Details
- Reviewers
arsenm foad - Commits
- rG7425077e31c9: [AMDGPU] Add & use `hasNamedOperand`, NFC
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo