Use isIntrinsic() instead of checking for "llvm."
[oota-llvm.git] / lib / IR / Makefile
1 ##===- lib/IR/Makefile -------------------------------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9 LEVEL = ../..
10 LIBRARYNAME = LLVMCore
11 BUILD_ARCHIVE = 1
12
13 BUILT_SOURCES = $(PROJ_OBJ_ROOT)/include/llvm/IR/Intrinsics.gen
14
15 include $(LEVEL)/Makefile.common
16
17 GENFILE:=$(PROJ_OBJ_ROOT)/include/llvm/IR/Intrinsics.gen
18
19 INTRINSICTD  := $(PROJ_SRC_ROOT)/include/llvm/IR/Intrinsics.td
20 INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/IR/Intrinsics*.td)
21
22 $(ObjDir)/Intrinsics.gen.tmp: $(ObjDir)/.dir $(INTRINSICTDS) $(LLVM_TBLGEN)
23         $(Echo) Building Intrinsics.gen.tmp from Intrinsics.td
24         $(Verb) $(LLVMTableGen) $(call SYSPATH, $(INTRINSICTD)) -o $(call SYSPATH, $@) -gen-intrinsic
25
26 $(GENFILE): $(ObjDir)/Intrinsics.gen.tmp $(PROJ_OBJ_ROOT)/include/llvm/IR/.dir
27         $(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \
28           $(EchoCmd) Updated Intrinsics.gen because Intrinsics.gen.tmp \
29             changed significantly. )
30
31 install-local:: $(GENFILE)
32         $(Echo) Installing $(DESTDIR)$(PROJ_includedir)/llvm/IR/Intrinsics.gen
33         $(Verb) $(DataInstall) $(GENFILE) $(DESTDIR)$(PROJ_includedir)/llvm/IR/Intrinsics.gen