diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-06 04:55:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-06 04:55:48 +0000 |
commit | 46f55527d848bcc7cff1210137caff29bbf1b010 (patch) | |
tree | b3fdb7408d7bf99860c1bad4889147c748b0f234 /Makefile.rules | |
parent | d752593b0b407e89220209e10be715a1cf455a52 (diff) |
Generalize tblgen's dag parsing logic to handle arbitrary expressions
as the operator of the dag. Specifically, this allows parsing things
like (F.x 4) in addition to just (a 4).
Unfortunately, this runs afoul of an idiom being used by llvmc. It
is using dags like (foo [1,2,3]) to represent a list of stuff being
passed into foo. With this change, this is parsed as a [1,2,3]
subscript on foo instead of being the first argument to the dag.
Cope with this in the short term by requiring a "-llvmc-temp-hack"
argument to tblgen to get the old parsing behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 261578f35f..62718b73f7 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1779,7 +1779,7 @@ $(INCTMPFiles) : $(TBLGEN) $(TDFiles) $(ObjDir)/%.inc.tmp: %.td $(ObjDir)/.dir $(Echo) "Building LLVMC compilation graph description with tblgen" - $(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $< + $(Verb) $(TableGen) -gen-llvmc -llvmc-temp-hack -o $(call SYSPATH, $@) $< clean-local:: -$(Verb) $(RM) -f $(INCFiles) |