diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-09-15 19:23:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-15 19:23:07 -0700 |
commit | b5e06b5ede8e29a3db34ce740b249bb22dbf76a1 (patch) | |
tree | 4245ba2f97e02aed86f92770cf65be6d1b73d880 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | dfa5bbeafaff2bbb211cde2980cc5f29906d8fac (diff) | |
download | llvm-b5e06b5ede8e29a3db34ce740b249bb22dbf76a1.zip llvm-b5e06b5ede8e29a3db34ce740b249bb22dbf76a1.tar.gz llvm-b5e06b5ede8e29a3db34ce740b249bb22dbf76a1.tar.bz2 |
[NFC][DecoderEmitter] Predicate generation code cleanup (#158140)
Eliminate `doesOpcodeNeedPredicate` and instead have
`emitPredicateMatch` return true if any predicates were generated.
Delegate actual predicate generation in `emitPredicateMatch` to
`SubtargetFeatureInfo::emitMCPredicateCheck`. Additionally, remove the
redundant parenthesis around the predicate conditions in the generated
`checkDecoderPredicate` function.
Note that for ARM/AMDGPU this reduces the total # of predicates
generated by a few. It seems the old code would sometimes generate
duplicate predicates which were identical in semantics but one had an
extra pair of parentheses (i..e, `X` and `(X)`). `emitMCPredicateCheck`
does not seems to have that issue.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions