OSDN Git Service

android: fix AMDGPU asm parser build
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 9 Apr 2017 09:28:27 +0000 (11:28 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 10 Apr 2017 01:37:31 +0000 (09:37 +0800)
commit704fc3b3e263e68fb07395559212c2143479b5d6
tree03abc8ad7ae1faebd13d690e8d72b46e94612242
parentea6f4381adcfe07978a9f4f7ee66c80c048d2647
android: fix AMDGPU asm parser build

With mesa commit 24d4fbe "radeonsi: strengthen emit_optimization_barrier"
AMDGPU asm parser is used and its initialization causes mesa build error:

external/mesa/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c:130:
error: undefined reference to 'LLVMInitializeAMDGPUAsmParser'

In nougat-x86 branch (llvm 3.8) AMDGPU asm parser Android.mk,
source and tblgen variables need an underscore, to fix a typo,
and tblgen list is updated to avoid the following build errors:

external/llvm/lib/Target/AMDGPU/AsmParser/../MCTargetDesc/AMDGPUMCTargetDesc.h:
fatal error: 'AMDGPUGenRegisterInfo.inc' file not found
fatal error: 'AMDGPUGenInstrInfo.inc' file not found
fatal error: 'AMDGPUGenSubtargetInfo.inc' file not found

Fixes: f223f03 "android: enable support for AMDGPU targets for radeonsi"
lib/Target/AMDGPU/AsmParser/Android.mk