1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/lib/TableGen
Nico Weber 60a32e805a Let TableGen write output only if it changed, instead of doing so in cmake, attempt 2
This relands r330742:
"""
Let TableGen write output only if it changed, instead of doing so in cmake.

Removes one subprocess and one temp file from the build for each tablegen
invocation.

No intended behavior change.
"""

In particular, if you see rebuilds after this change that you didn't see
before this change, that's unintended and it's fine to revert this change
again (but let me know).

r330742 got reverted because some people reported that llvm-tblgen ran on every
build after it.  This could happen if the depfile output got deleted without
deleting the main .inc output. To fix, make TableGen always write the depfile,
but keep writing the main .inc output only if it has changed. This matches what
we did in cmake before.

Differential Revision: https://reviews.llvm.org/D55842

llvm-svn: 349624
2018-12-19 13:35:53 +00:00
..
CMakeLists.txt [TableGen] Add a general-purpose JSON backend. 2018-07-11 08:40:19 +00:00
Error.cpp [TableGen] Use WithColor for printing errors/warnings 2018-06-23 16:48:03 +00:00
JSONBackend.cpp [TableGen] Add missing std::moves to fix build failure. 2018-07-11 08:57:56 +00:00
LLVMBuild.txt
Main.cpp Let TableGen write output only if it changed, instead of doing so in cmake, attempt 2 2018-12-19 13:35:53 +00:00
Record.cpp [TableGen] fix assert in !cast when used out of definition in a multiclass 2018-10-10 10:52:57 +00:00
SetTheory.cpp
StringMatcher.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
TableGenBackend.cpp
TGLexer.cpp [TableGen] Preprocessing support 2018-11-27 18:57:43 +00:00
TGLexer.h [TableGen] Preprocessing support 2018-11-27 18:57:43 +00:00
TGParser.cpp TableGen: Allow foreach in multiclass to depend on template args 2018-06-21 13:35:44 +00:00
TGParser.h [TableGen] Preprocessing support 2018-11-27 18:57:43 +00:00