diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2025-11-10 14:04:01 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-10 22:04:01 +0000 |
| commit | a1934ee500dc0bc7f4ad6f989a83eaec90b09597 (patch) | |
| tree | 597c34353c614be8708c3a86841432fbc395845a /llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp | |
| parent | 0767c640437a8ff02e431a350168a13cb9056428 (diff) | |
| download | llvm-a1934ee500dc0bc7f4ad6f989a83eaec90b09597.zip llvm-a1934ee500dc0bc7f4ad6f989a83eaec90b09597.tar.gz llvm-a1934ee500dc0bc7f4ad6f989a83eaec90b09597.tar.bz2 | |
[NFC][SpecialCaseList] Replace callback with return value (#165943)
This commit introduces `SpecialCaseList::Match`, a small struct to hold
the matched rule and its line number. This simplifies the `match`
methods by allowing them to return a single value instead of using a
callback.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp')
0 files changed, 0 insertions, 0 deletions
