Rename SlotIndexes to match how they are used.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 13 Nov 2011 20:45:27 +0000 (20:45 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 13 Nov 2011 20:45:27 +0000 (20:45 +0000)
commit2debd48ca790ac01be6e12e094fdf4fdcadc8364
treeb229efbe610fd45979698760f5e86f06ef60cf86
parente6a6277d3683ef7aa9d799b32b5194a79eefde62
Rename SlotIndexes to match how they are used.

The old naming scheme (load/use/def/store) can be traced back to an old
linear scan article, but the names don't match how slots are actually
used.

The load and store slots are not needed after the deferred spill code
insertion framework was deleted.

The use and def slots don't make any sense because we are using
half-open intervals as is customary in C code, but the names suggest
closed intervals.  In reality, these slots were used to distinguish
early-clobber defs from normal defs.

The new naming scheme also has 4 slots, but the names match how the
slots are really used.  This is a purely mechanical renaming, but some
of the code makes a lot more sense now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144503 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/llvm/CodeGen/LiveInterval.h
include/llvm/CodeGen/SlotIndexes.h
lib/CodeGen/InlineSpiller.cpp
lib/CodeGen/LiveDebugVariables.cpp
lib/CodeGen/LiveInterval.cpp
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/LiveRangeEdit.cpp
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/RegisterCoalescer.cpp
lib/CodeGen/RenderMachineFunction.cpp
lib/CodeGen/SlotIndexes.cpp
lib/CodeGen/Spiller.cpp
lib/CodeGen/SplitKit.cpp
lib/CodeGen/Splitter.cpp
lib/CodeGen/StrongPHIElimination.cpp