[AMDGPU] Simplify exp target parsing
authorJay Foad <jay.foad@amd.com>
Fri, 6 Nov 2020 15:25:43 +0000 (15:25 +0000)
committerJay Foad <jay.foad@amd.com>
Fri, 6 Nov 2020 16:09:34 +0000 (16:09 +0000)
commitd61f2cfb9fc3286e615d8473452981efa6bfcbd9
tree67ccb6e7f0ad46f18a393e28019e5f2cf47dec41
parentaa0dc1c3b8628bed8c8b91a75258d13eefa88dfe
[AMDGPU] Simplify exp target parsing

Treat any identifier as a potential exp target and diagnose them all the
same way as "invalid exp target"s.

Differential Revision: https://reviews.llvm.org/D90947
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/test/MC/AMDGPU/exp-err.s
llvm/test/MC/AMDGPU/exp-gfx10.s