llvm-project/llvm/lib/TableGen
Nico Weber f7cf1a1a73 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 [BinaryFormat, Option, TableGen] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-06-16 00:43:26 +00:00
StringMatcher.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
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
TableGenBackend.cpp