Sink DI metadata usage out of MachineInstr.h and MachineInstrBuilder.h
authorReid Kleckner <rnk@google.com>
Thu, 14 Apr 2016 18:29:59 +0000 (18:29 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 14 Apr 2016 18:29:59 +0000 (18:29 +0000)
commit28865809fe44a471c5418bf0c8fcdb742ea64efa
treea55c64a24618aa605ca87880a066833891ac5df9
parent96d2a1c603a92b9bfdf6d866f078be20487d4229
Sink DI metadata usage out of MachineInstr.h and MachineInstrBuilder.h

MachineInstr.h and MachineInstrBuilder.h are very popular headers,
widely included across all LLVM backends. It turns out that there only a
handful of TUs that actually care about DI operands on MachineInstrs.

After this change, touching DebugInfoMetadata.h and rebuilding llc only
needs 112 actions instead of 542.

llvm-svn: 266351
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/include/llvm/CodeGen/MachineInstrBuilder.h
llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
llvm/lib/CodeGen/InlineSpiller.cpp
llvm/lib/CodeGen/LiveDebugValues.cpp
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/lib/CodeGen/MachineInstr.cpp
llvm/lib/CodeGen/RegAllocFast.cpp
llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
llvm/lib/Target/X86/X86FastISel.cpp