OSDN Git Service

android: R600(AMDGPU)/AsmParser: fix tblgen related building errors marshmallow-x86 android-x86-6.0-r2 android-x86-6.0-r3
authorMauro Rossi <issor.oruam@gmail.com>
Wed, 4 Jan 2017 17:36:57 +0000 (18:36 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 6 Jan 2017 02:18:36 +0000 (10:18 +0800)
Fixes the building errors appeared after restructuring R600(AMDGPU)
static library in device shared libLLVM:

In file included from external/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp:10:
external/llvm/lib/Target/R600/AsmParser/../MCTargetDesc/AMDGPUMCTargetDesc.h:55:10: fatal error: 'AMDGPUGenInstrInfo.inc' file not found
         ^

In file included from external/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp:10:
external/llvm/lib/Target/R600/AsmParser/../MCTargetDesc/AMDGPUMCTargetDesc.h:52:10: fatal error: 'AMDGPUGenRegisterInfo.inc' file not found
         ^

In file included from external/llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp:10:
external/llvm/lib/Target/R600/AsmParser/../MCTargetDesc/AMDGPUMCTargetDesc.h:58:10: fatal error: 'AMDGPUGenSubtargetInfo.inc' file not found
         ^

lib/Target/R600/AsmParser/Android.mk

index f21dd27..0e0b1d3 100644 (file)
@@ -1,7 +1,10 @@
 LOCAL_PATH := $(call my-dir)
 
 AMDGPU_asmparser_TBLGEN_TABLES := \
-  AMDGPUGenAsmMatcher.inc
+  AMDGPUGenAsmMatcher.inc \
+  AMDGPUGenInstrInfo.inc \
+  AMDGPUGenRegisterInfo.inc \
+  AMDGPUGenSubtargetInfo.inc
 
 AMDGPU_asmparser_SRC_FILES := \
   AMDGPUAsmParser.cpp