Truncates the APInt if the bit width is greater than the width specified,
otherwise do nothing
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D91445
[APInt] Add the truncOrSelf resizing operator to APInt ClosedPublic Authored by kmclaughlin on Nov 13 2020, 10:41 AM.
Details Summary Truncates the APInt if the bit width is greater than the width specified,
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 14 2020, 9:06 AM This revision was landed with ongoing or failed builds.Nov 23 2020, 3:40 AM Closed by commit rGd3a0f9b9ec88: [APInt] Add the truncOrSelf resizing operator to APInt (authored by kmclaughlin). · Explain Why This revision was automatically updated to reflect the committed changes. kmclaughlin marked 2 inline comments as done.
Revision Contents
Diff 307030 llvm/include/llvm/ADT/APInt.h
llvm/lib/Support/APInt.cpp
llvm/unittests/ADT/APIntTest.cpp
|
Maybe move this down to be next to zextOrSelf/sextOrSelf?