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