1ATTRIBUTETD := $(LLVM_ROOT_PATH)/include/llvm/IR/Attributes.td 2 3ifeq ($(LOCAL_MODULE_CLASS),) 4 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 5endif 6 7GENFILE := $(addprefix $(call local-generated-sources-dir)/llvm/IR/,Attributes.inc) 8LOCAL_GENERATED_SOURCES += $(GENFILE) 9$(GENFILE): TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 10$(GENFILE): $(ATTRIBUTETD) | $(LLVM_TBLGEN) 11ifeq ($(LOCAL_IS_HOST_MODULE),true) 12 $(call transform-host-td-to-out,attrs) 13else 14 $(call transform-device-td-to-out,attrs) 15endif 16$(call include-depfile, $(GENFILE).d, $(GENFILE)) 17