llvm-project/llvm/unittests/CodeGen
Chris Lattner 735f46715d [APInt] Normalize naming on keep constructors / predicate methods.
This renames the primary methods for creating a zero value to `getZero`
instead of `getNullValue` and renames predicates like `isAllOnesValue`
to simply `isAllOnes`.  This achieves two things:

1) This starts standardizing predicates across the LLVM codebase,
   following (in this case) ConstantInt.  The word "Value" doesn't
   convey anything of merit, and is missing in some of the other things.

2) Calling an integer "null" doesn't make any sense.  The original sin
   here is mine and I've regretted it for years.  This moves us to calling
   it "zero" instead, which is correct!

APInt is widely used and I don't think anyone is keen to take massive source
breakage on anything so core, at least not all in one go.  As such, this
doesn't actually delete any entrypoints, it "soft deprecates" them with a
comment.

Included in this patch are changes to a bunch of the codebase, but there are
more.  We should normalize SelectionDAG and other APIs as well, which would
make the API change more mechanical.

Differential Revision: https://reviews.llvm.org/D109483
2021-09-09 09:50:24 -07:00
..
GlobalISel [APInt] Normalize naming on keep constructors / predicate methods. 2021-09-09 09:50:24 -07:00
AArch64SelectionDAGTest.cpp [CostModel] Return an invalid cost for memory ops with unsupported types 2021-06-08 12:07:36 +01:00
AllocationOrderTest.cpp [NFC][regalloc] Separate iteration from AllocationOrder 2020-10-05 16:13:18 -07:00
AsmPrinterDwarfTest.cpp [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() 2021-05-21 13:39:52 +07:00
CMakeLists.txt [MIRPrinter] Add machine metadata support. 2021-06-19 12:48:08 -04:00
DIEHashTest.cpp [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() 2021-05-21 13:39:52 +07:00
DIETest.cpp [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() 2021-05-21 13:39:52 +07:00
LexicalScopesTest.cpp [LexicalScopesTest] Add missing IRBuilder.h include (NFC) 2021-06-06 16:29:50 +02:00
LowLevelTypeTest.cpp Add support for zero-sized Scalars as a LowLevelType 2021-07-22 13:47:19 +02:00
MFCommon.inc [X86][MC][Target] Initial backend support a tune CPU to support -mtune 2020-08-14 15:31:50 -07:00
MachineInstrBundleIteratorTest.cpp
MachineInstrTest.cpp [MC] Refactor MCObjectFileInfo initialization and allow targets to create MCObjectFileInfo 2021-05-23 14:15:23 -07:00
MachineOperandTest.cpp [MC] Refactor MCObjectFileInfo initialization and allow targets to create MCObjectFileInfo 2021-05-23 14:15:23 -07:00
PassManagerTest.cpp [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() 2021-05-21 13:39:52 +07:00
ScalableVectorMVTsTest.cpp [llvm] Add enum iteration to Sequence 2021-07-21 12:48:53 +00:00
SelectionDAGAddressAnalysisTest.cpp [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() 2021-05-21 13:39:52 +07:00
TargetOptionsTest.cpp [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() 2021-05-21 13:39:52 +07:00
TestAsmPrinter.cpp [MC] Refactor MCObjectFileInfo initialization and allow targets to create MCObjectFileInfo 2021-05-23 14:15:23 -07:00
TestAsmPrinter.h [debug-info] refactor emitDwarfUnitLength 2021-02-25 21:00:25 -05:00
TypeTraitsTest.cpp Switch from llvm::is_trivially_copyable to std::is_trivially_copyable 2020-12-02 22:02:48 -08:00