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 3 4ifeq ($(LOCAL_MODULE_CLASS),) 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6endif 7 8GENFILE := $(addprefix $(call local-generated-sources-dir)/llvm/IR/,Intrinsics.gen) 9LOCAL_GENERATED_SOURCES += $(GENFILE) 10$(GENFILE): TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 11$(GENFILE): $(INTRINSICTD) | $(LLVM_TBLGEN) 12ifeq ($(LOCAL_IS_HOST_MODULE),true) 13 $(call transform-host-td-to-out,intrinsic) 14else 15 $(call transform-device-td-to-out,intrinsic) 16endif 17$(call include-depfile, $(GENFILE).d, $(GENFILE)) 18