1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/utils/TableGen
Alkis Evlogimenos 74568bc9d4 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
}

llvm-svn: 8960
2003-10-08 05:20:08 +00:00
..
CodeEmitterGen.cpp Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
CodeEmitterGen.h Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
CodeGenWrappers.cpp Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
CodeGenWrappers.h Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
FileLexer.l Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
FileParser.y Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
InstrInfoEmitter.cpp Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs 2003-10-08 05:20:08 +00:00
InstrInfoEmitter.h Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
InstrSelectorEmitter.cpp Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
InstrSelectorEmitter.h Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
Makefile Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
Record.cpp Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
Record.h Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
RegisterInfoEmitter.cpp Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs 2003-10-08 05:20:08 +00:00
RegisterInfoEmitter.h Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
TableGen.cpp Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
TableGenBackend.cpp Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00
TableGenBackend.h Move support/tools/* back into utils 2003-10-05 19:27:59 +00:00