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