aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
diff options
context:
space:
mode:
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>2022-11-07 11:54:18 +0000
committerPierre van Houtryve <pierre.vanhoutryve@amd.com>2022-11-08 07:57:21 +0000
commit7425077e31c9b505103a98299a728bc496bd933c (patch)
tree06e1a9ba13bc1a308beea287474a885ba6772b65 /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
parentb5f9972345f0305d6e71cc3cddbb1da65fd298d5 (diff)
downloadllvm-7425077e31c9b505103a98299a728bc496bd933c.zip
llvm-7425077e31c9b505103a98299a728bc496bd933c.tar.gz
llvm-7425077e31c9b505103a98299a728bc496bd933c.tar.bz2
[AMDGPU] Add & use `hasNamedOperand`, NFC
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. Reviewed By: arsenm, foad Differential Revision: https://reviews.llvm.org/D137540
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions