AMDGPU/SI: Assembler: improvements to support trap handlers.
authorNikolay Haustov <Nikolay.Haustov@amd.com>
Wed, 20 Apr 2016 09:34:48 +0000 (09:34 +0000)
committerNikolay Haustov <Nikolay.Haustov@amd.com>
Wed, 20 Apr 2016 09:34:48 +0000 (09:34 +0000)
commitfb5c307ccd47efe97876454e38b6bf8cd2af667b
treed997cf87d639bb8305f759d74159989a503ce855
parenta204c0ad180b27281985a9fd38b39f328cd1683b
AMDGPU/SI: Assembler: improvements to support trap handlers.

Add ParseAMDGPURegister which can be invoked recursively for parsing lists.
Rename getRegForName to getSpecialRegForName.
Support legacy SP3 register list syntax: [s2,s3,s4,s5] or [flat_scratch_lo,flat_scratch_hi].
Add 64-bit registers TBA, TMA where missing.
Add some tests.

Differential Revision: http://reviews.llvm.org/D19163

llvm-svn: 266865
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.td
llvm/test/MC/AMDGPU/trap.s