llvm-6502/lib/CodeGen
Alkis Evlogimenos 73ff5120eb Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs
and TargetInstrDescriptor::ImplicitUses to always point to a null
terminated array and never be null. So there is no need to check for
pointer validity when iterating over those sets. Code that looked
like:

if (const unsigned* AS = TID.ImplicitDefs) {
  for (int i = 0; AS[i]; ++i) {
    // use AS[i]
  }
}

was changed to:

for (const unsigned* AS = TID.ImplicitDefs; *AS; ++AS) {
  // use *AS
}


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8960 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-08 05:20:08 +00:00
..
InstrSched Fixed spelling. 2003-09-17 21:34:23 +00:00
InstrSelection Fixed spelling. 2003-09-17 21:34:23 +00:00
ModuloScheduling Removing README 2003-08-28 17:17:59 +00:00
RegAlloc include passes.h which defines the interface this file exposes 2003-09-30 20:13:59 +00:00
SelectionDAG rename selection directory and library to SelectionDAG 2003-08-15 04:55:22 +00:00
LiveVariables.cpp Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs 2003-10-08 05:20:08 +00:00
MachineCodeEmitter.cpp
MachineCodeForInstruction.cpp
MachineFunction.cpp Factory methods for FunctionPasses now return type FunctionPass *. 2003-08-13 18:18:15 +00:00
MachineInstr.cpp Fixed spelling. 2003-09-17 21:34:23 +00:00
MachineInstrAnnot.cpp Values stored in CallArgsDescriptor cannot be const. 2003-07-10 19:46:15 +00:00
Makefile Don't build dead directories 2003-09-01 20:34:15 +00:00
Passes.cpp Moved enum and command-line option in separate file. Also added function that returns the user selected register allocator to the caller. 2003-10-02 16:57:49 +00:00
PHIElimination.cpp Const correctness fixes 2003-07-26 23:24:56 +00:00
PrologEpilogInserter.cpp Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs 2003-10-08 05:20:08 +00:00
RegAllocLocal.cpp Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs 2003-10-08 05:20:08 +00:00
RegAllocSimple.cpp Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs 2003-10-08 05:20:08 +00:00