llvm-project/llvm/lib/Transforms
Craig Topper 0e718443c7 [SimplifyIndVar] Use enum class for ExtendKind. NFC
I happened to notice a two places where the enum was being pass
directly to the bool IsSigned argument of createExtendInst. This
was functionally ok since SignExtended in the enum has value
of 1, but the code shouldn't rely on that.

Using an enum class prevents the enum from being convertible to bool,
but does make writing the enum values more verbose. Since we now
have to write ExtendKind:: in front of them, I've shortened the
names of ZeroExtended and SignExtended.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D129733
2022-07-14 10:03:58 -07:00
..
AggressiveInstCombine [AggressiveInstcombine] Conditionally fold saturated fptosi to llvm.fptosi.sat 2022-06-10 09:36:09 +01:00
CFGuard [CFG] Handle calls with funclet bundle 2021-12-03 10:51:10 -08:00
Coroutines [NFC] [Coroutines] Update the comments for lowering coro.save 2022-07-07 14:57:41 +08:00
Hello
IPO [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
InstCombine [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Instrumentation [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
ObjCARC Cleanup includes: final pass 2022-03-29 09:00:21 +02:00
Scalar [Reassociate] Cleanup minor missed optimizations 2022-07-14 08:21:04 -07:00
Utils [SimplifyIndVar] Use enum class for ExtendKind. NFC 2022-07-14 10:03:58 -07:00
Vectorize [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
CMakeLists.txt