diff options
author | Shih-wei Liao <sliao@google.com> | 2010-04-07 12:21:42 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-04-07 12:21:42 -0700 |
commit | e4454320b3cfffe926a487c33fbeb454366de2f8 (patch) | |
tree | 133c05da684edf4a3b2529bcacfa996298c455f6 /llvm-gen-intrinsics.mk | |
parent | 20570085304f0a4ab4f112a01d77958bbd2827a1 (diff) | |
download | external_llvm-e4454320b3cfffe926a487c33fbeb454366de2f8.zip external_llvm-e4454320b3cfffe926a487c33fbeb454366de2f8.tar.gz external_llvm-e4454320b3cfffe926a487c33fbeb454366de2f8.tar.bz2 |
libbcc
Change-Id: Ieaa3ebd5a38f370752495549f8870b534eeedfc5
Diffstat (limited to 'llvm-gen-intrinsics.mk')
-rw-r--r-- | llvm-gen-intrinsics.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm-gen-intrinsics.mk b/llvm-gen-intrinsics.mk new file mode 100644 index 0000000..decccdd --- /dev/null +++ b/llvm-gen-intrinsics.mk @@ -0,0 +1,18 @@ +# We treat Intrinsics.td as a very special target just like what lib/VMCore/Makefile does +INTRINSICTD := $(LLVM_ROOT_PATH)/include/llvm/Intrinsics.td +INTRINSICTDS := $(wildcard $(dir $(INTRINSICTD))/Intrinsics*.td) + +LOCAL_SRC_FILES := $(INTRINSICTD) $(LOCAL_SRC_FILES) + +ifeq ($(LOCAL_MODULE_CLASS),) + LOCAL_MODULE_CLASS := STATIC_LIBRARIES +endif + +GENFILE := $(addprefix $(call local-intermediates-dir)/llvm/,Intrinsics.gen) +LOCAL_GENERATED_SOURCES += $(GENFILE) +$(GENFILE): $(INTRINSICTD) $(INTRINSICTDS) $(TBLGEN) +ifeq ($(LOCAL_IS_HOST_MODULE),true) + $(call transform-host-td-to-out,intrinsic) +else + $(call transform-device-td-to-out,intrinsic) +endif |