1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/lib/Target/Mips
Chandler Carruth a571c5d5d3 Clean up a pile of hacks in our CMake build relating to TableGen.
The first problem to fix is to stop creating synthetic *Table_gen
targets next to all of the LLVM libraries. These had no real effect as
CMake specifies that add_custom_command(OUTPUT ...) directives (what the
'tablegen(...)' stuff expands to) are implicitly added as dependencies
to all the rules in that CMakeLists.txt.

These synthetic rules started to cause problems as we started more and
more heavily using tablegen files from *subdirectories* of the one where
they were generated. Within those directories, the set of tablegen
outputs was still available and so these synthetic rules added them as
dependencies of those subdirectories. However, they were no longer
properly associated with the custom command to generate them. Most of
the time this "just worked" because something would get to the parent
directory first, and run tablegen there. Once run, the files existed and
the build proceeded happily. However, as more and more subdirectories
have started using this, the probability of this failing to happen has
increased. Recently with the MC refactorings, it became quite common for
me when touching a large enough number of targets.

To add insult to injury, several of the backends *tried* to fix this by
adding explicit dependencies back to the parent directory's tablegen
rules, but those dependencies didn't work as expected -- they weren't
forming a linear chain, they were adding another thread in the race.

This patch removes these synthetic rules completely, and adds a much
simpler function to declare explicitly that a collection of tablegen'ed
files are referenced by other libraries. From that, we can add explicit
dependencies from the smaller libraries (such as every architectures
Desc library) on this and correctly form a linear sequence. All of the
backends are updated to use it, sometimes replacing the existing attempt
at adding a dependency, sometimes adding a previously missing dependency
edge.

Please let me know if this causes any problems, but it fixes a rather
persistent and problematic source of build flakiness on our end.

llvm-svn: 136023
2011-07-26 00:09:08 +00:00
..
InstPrinter Clean up a pile of hacks in our CMake build relating to TableGen. 2011-07-26 00:09:08 +00:00
MCTargetDesc Clean up a pile of hacks in our CMake build relating to TableGen. 2011-07-26 00:09:08 +00:00
TargetInfo Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
CMakeLists.txt Clean up a pile of hacks in our CMake build relating to TableGen. 2011-07-26 00:09:08 +00:00
Makefile Next round of MC refactoring. This patch factor MC table instantiations, MC 2011-07-14 20:59:42 +00:00
Mips.h Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
Mips.td Lower MachineInstr to MC Inst and print to .s files. 2011-07-07 23:56:50 +00:00
MipsAsmPrinter.cpp Separate MCInstPrinter registration from AsmPrinter registration. 2011-07-25 21:20:24 +00:00
MipsAsmPrinter.h Lower MachineInstr to MC Inst and print to .s files. 2011-07-07 23:56:50 +00:00
MipsCallingConv.td Add A0 and A1 to the list of registers used for returning a value in order to 2011-06-21 01:28:11 +00:00
MipsCodeEmitter.cpp Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
MipsDelaySlotFiller.cpp - Rename TargetInstrDesc, TargetOperandInfo to MCInstrDesc and MCOperandInfo and 2011-06-28 19:10:37 +00:00
MipsEmitGPRestore.cpp Reverse order of operands of address operand mem so that the base operand comes 2011-07-07 18:57:00 +00:00
MipsExpandPseudo.cpp - Rename TargetInstrDesc, TargetOperandInfo to MCInstrDesc and MCOperandInfo and 2011-06-28 19:10:37 +00:00
MipsFrameLowering.cpp Move getInitialFrameState from TargetFrameInfo to MCAsmInfo (suggestions for 2011-07-18 22:29:13 +00:00
MipsFrameLowering.h Move getInitialFrameState from TargetFrameInfo to MCAsmInfo (suggestions for 2011-07-18 22:29:13 +00:00
MipsInstrFormats.td Fix td file comments for Mips. 2011-05-09 18:16:46 +00:00
MipsInstrFPU.td Use tabs to separate opcode and operand strings. 2011-06-07 18:16:51 +00:00
MipsInstrInfo.cpp Next round of MC refactoring. This patch factor MC table instantiations, MC 2011-07-14 20:59:42 +00:00
MipsInstrInfo.h Lower MachineInstr to MC Inst and print to .s files. 2011-07-07 23:56:50 +00:00
MipsInstrInfo.td Change name of class. 2011-07-20 00:53:09 +00:00
MipsISelDAGToDAG.cpp Reverse order of operands of address operand mem so that the base operand comes 2011-07-07 18:57:00 +00:00
MipsISelLowering.cpp Lower memory barriers to sync instructions. 2011-07-19 23:30:50 +00:00
MipsISelLowering.h Lower memory barriers to sync instructions. 2011-07-19 23:30:50 +00:00
MipsJITInfo.cpp Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
MipsJITInfo.h Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
MipsMachineFunction.h Set mayLoad or mayStore flags for SC and LL in order to prevent LICM from 2011-07-18 18:52:12 +00:00
MipsMCInstLower.cpp Raise assertion when MachineOperand has unexpected target flag. 2011-07-08 00:42:35 +00:00
MipsMCInstLower.h Define class MipsMCInstLower. 2011-07-07 20:24:54 +00:00
MipsMCSymbolRefExpr.cpp Define class MipsMCSymbolRefExpr. 2011-07-07 19:27:22 +00:00
MipsMCSymbolRefExpr.h Define class MipsMCSymbolRefExpr. 2011-07-07 19:27:22 +00:00
MipsRegisterInfo.cpp Move getInitialFrameState from TargetFrameInfo to MCAsmInfo (suggestions for 2011-07-18 22:29:13 +00:00
MipsRegisterInfo.h Sink getDwarfRegNum, getLLVMRegNum, getSEHRegNum from TargetRegisterInfo down 2011-07-18 20:57:22 +00:00
MipsRegisterInfo.td Use set operations instead of plain lists to enumerate register classes. 2011-06-15 23:28:14 +00:00
MipsRelocations.h Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
MipsSchedule.td Reverse unnecessary changes made in r129606 and r129608. There is no change in functionality. 2011-04-15 21:51:11 +00:00
MipsSelectionDAGInfo.cpp Reverse unnecessary changes made in r129606 and r129608. There is no change in functionality. 2011-04-15 21:51:11 +00:00
MipsSelectionDAGInfo.h Reverse unnecessary changes made in r129606 and r129608. There is no change in functionality. 2011-04-15 21:51:11 +00:00
MipsSubtarget.cpp Next round of MC refactoring. This patch factor MC table instantiations, MC 2011-07-14 20:59:42 +00:00
MipsSubtarget.h Compute feature bits at time of MCSubtargetInfo initialization. 2011-07-07 07:07:08 +00:00
MipsTargetMachine.cpp Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
MipsTargetMachine.h Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir 2011-07-21 16:28:51 +00:00
MipsTargetObjectFile.cpp land David Blaikie's patch to de-constify Type, with a few tweaks. 2011-07-18 04:54:35 +00:00
MipsTargetObjectFile.h Reverse unnecessary changes made in r129606 and r129608. There is no change in functionality. 2011-04-15 21:51:11 +00:00