aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-09-15 19:23:07 -0700
committerGitHub <noreply@github.com>2025-09-15 19:23:07 -0700
commitb5e06b5ede8e29a3db34ce740b249bb22dbf76a1 (patch)
tree4245ba2f97e02aed86f92770cf65be6d1b73d880 /clang/lib/CodeGen/BackendUtil.cpp
parentdfa5bbeafaff2bbb211cde2980cc5f29906d8fac (diff)
downloadllvm-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/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions