diff options
| author | Matthias Braun <matze@braunis.de> | 2023-10-05 11:40:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-05 11:40:17 -0700 |
| commit | 5181156b3743df29dc840e15990d9202b3501f60 (patch) | |
| tree | fd52778d4b80a77887cb856ab7ec85436512abc6 /llvm/unittests/Analysis/ValueTrackingTest.cpp | |
| parent | ea2036e1e56b720d7da8d46f62263ba46c126522 (diff) | |
| download | llvm-5181156b3743df29dc840e15990d9202b3501f60.zip llvm-5181156b3743df29dc840e15990d9202b3501f60.tar.gz llvm-5181156b3743df29dc840e15990d9202b3501f60.tar.bz2 | |
Use BlockFrequency type in more places (NFC) (#68266)
The `BlockFrequency` class abstracts `uint64_t` frequency values. Use it
more consistently in various APIs and disable implicit conversion to
make usage more consistent and explicit.
- Use `BlockFrequency Freq` parameter for `setBlockFreq`,
`getProfileCountFromFreq` and `setBlockFreqAndScale` functions.
- Return `BlockFrequency` in `getEntryFreq()` functions.
- While on it change some `const BlockFrequency& Freq` parameters to
plain `BlockFreqency Freq`.
- Mark `BlockFrequency(uint64_t)` constructor as explicit.
- Add missing `BlockFrequency::operator!=`.
- Remove `uint64_t BlockFreqency::getMaxFrequency()`.
- Add `BlockFrequency BlockFrequency::max()` function.
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
0 files changed, 0 insertions, 0 deletions
