AMDGPU: Improve note directive verification in assembler
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Sat, 14 Oct 2017 16:15:28 +0000 (16:15 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Sat, 14 Oct 2017 16:15:28 +0000 (16:15 +0000)
commit219066bab87870160be2563298794b8cbe2e29f7
tree8c1619109c6d4620e0e06eb731d3c243e8f2df48
parent2b8ad7312d6f0ebcd990ff9881659f4a77484896
AMDGPU: Improve note directive verification in assembler

  - Do not allow amd_amdgpu_isa directives on non-amdgcn architectures
  - Do not allow amd_amdgpu_hsa_metadata on non-amdhsa OSes
  - Do not allow amd_amdgpu_pal_metadata on non-amdpal OSes

Differential Revision: https://reviews.llvm.org/D38750

llvm-svn: 315812
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/test/MC/AMDGPU/elf-notes-verify-amdgcn.s [new file with mode: 0644]
llvm/test/MC/AMDGPU/elf-notes-verify-r600.s [new file with mode: 0644]