llvm-gen-intrinsics.mk revision 28188e1c4986d9e4985f0f4a8ce268743eb94631
1# Only use this on the device or emulator. 2ifeq ($(TARGET_ARCH),arm) 3 4# We treat Intrinsics.td as a very special target just like what lib/VMCore/Makefile does 5INTRINSICTD := $(LLVM_ROOT_PATH)/include/llvm/Intrinsics.td 6INTRINSICTDS := $(wildcard $(dir $(INTRINSICTD))/Intrinsics*.td) 7 8LOCAL_SRC_FILES := $(INTRINSICTD) $(LOCAL_SRC_FILES) 9 10ifeq ($(LOCAL_MODULE_CLASS),) 11 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 12endif 13 14GENFILE := $(addprefix $(call local-intermediates-dir)/llvm/,Intrinsics.gen) 15LOCAL_GENERATED_SOURCES += $(GENFILE) 16$(GENFILE): $(INTRINSICTD) $(INTRINSICTDS) $(TBLGEN) 17ifeq ($(LOCAL_IS_HOST_MODULE),true) 18 $(call transform-host-td-to-out,intrinsic) 19else 20 $(call transform-device-td-to-out,intrinsic) 21endif 22 23endif 24