1 # We treat Intrinsics.td as a very special target just like what lib/VMCore/Makefile does 2 INTRINSICTD := $(LLVM_ROOT_PATH)/include/llvm/IR/Intrinsics.td 3 INTRINSICTDS := $(wildcard $(dir $(INTRINSICTD))/Intrinsics*.td) 4 5 ifeq ($(LOCAL_MODULE_CLASS),) 6 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 7 endif 8 9 GENFILE := $(addprefix $(call local-generated-sources-dir)/llvm/IR/,Intrinsics.gen) 10 LOCAL_GENERATED_SOURCES += $(GENFILE) 11 $(GENFILE): TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 12 $(GENFILE): $(INTRINSICTD) $(INTRINSICTDS) | $(LLVM_TBLGEN) 13 ifeq ($(LOCAL_IS_HOST_MODULE),true) 14 $(call transform-host-td-to-out,intrinsic) 15 else 16 $(call transform-device-td-to-out,intrinsic) 17 endif 18