Targets should depend on all the intrinsics.td files also, otherwise they
authorChris Lattner <sabre@nondot.org>
Tue, 24 Oct 2006 20:32:44 +0000 (20:32 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Oct 2006 20:32:44 +0000 (20:32 +0000)
will compute a locally wrong numbering for the intrinsics.  This fixes a
nasty issue where the x86 backend started miscompiling stuff in a 'cvs up'd
build after the altivec intrinsics were added.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31172 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index d83292d0de8e27b7090a36211770c51290a773c8..f9b1f3d22c06decde23cadf348d52cfc49924eca 100644 (file)
@@ -1129,7 +1129,8 @@ ifdef TARGET
 TDFiles := $(strip $(wildcard $(PROJ_SRC_DIR)/*.td) \
            $(LLVM_SRC_ROOT)/lib/Target/Target.td \
            $(LLVM_SRC_ROOT)/lib/Target/TargetSelectionDAG.td \
-           $(LLVM_SRC_ROOT)/include/llvm/CodeGen/ValueTypes.td)
+           $(LLVM_SRC_ROOT)/include/llvm/CodeGen/ValueTypes.td) \
+           $(wildcard $(LLVM_SRC_ROOT)/include/llvm/Intrinsics*.td)
 INCFiles := $(filter %.inc,$(BUILT_SOURCES))
 INCTMPFiles := $(INCFiles:%=$(ObjDir)/%.tmp)
 .PRECIOUS: $(INCTMPFiles) $(INCFiles)