OSDN Git Service

android: conditionally add LLVM_TARGET(AMDGPU) in device configs
[android-x86/external-llvm.git] / llvm-tblgen-rules.mk
index ba59471..c7e831f 100644 (file)
@@ -193,7 +193,14 @@ ifneq ($(filter %GenIntrinsics.inc,$(tblgen_gen_tables)),)
 $(generated_sources)/%GenIntrinsics.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
 $(generated_sources)/%GenIntrinsics.inc: $(tblgen_source_dir)/%.td \
                                      $(tblgen_td_deps) $(LLVM_TBLGEN)
-       $(call transform-td-to-out,tgt_intrinsics)
+       $(call transform-td-to-out,tgt-intrinsic)
+endif
+
+ifneq ($(filter %GenDFAPacketizer.inc,$(tblgen_gen_tables)),)
+$(generated_sources)/%GenDFAPacketizer.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
+$(generated_sources)/%GenDFAPacketizer.inc: $(tblgen_source_dir)/%.td \
+                                     $(tblgen_td_deps) | $(LLVM_TBLGEN)
+       $(call transform-td-to-out,dfa-packetizer)
 endif
 
 ifneq ($(findstring ARMGenDecoderTables.inc,$(tblgen_gen_tables)),)
@@ -203,6 +210,15 @@ $(generated_sources)/ARMGenDecoderTables.inc: $(tblgen_source_dir)/ARM.td \
        $(call transform-td-to-out,arm-decoder)
 endif
 
+ifneq ($(findstring Options.inc,$(tblgen_gen_tables)),)
+$(generated_sources)/Options.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
+$(generated_sources)/Options.inc: $(tblgen_source_dir)/Options.td \
+                                     $(tblgen_td_deps) \
+                                     $(LLVM_TBLGEN) \
+                                     $(LLVM_ROOT_PATH)/include/llvm/Option/OptParser.td
+       $(call transform-td-to-out,opt-parser-defs)
+endif
+
 # Reset local variables
 tblgen_td_deps :=