]> granicus.if.org Git - llvm/commit
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)
commite7b2dc3c3a89320b9a792806643b9731efa7d29f
tree455ef375035dbbe5b34642c0ddd5a3fd76877734
parent473d951406163926637ec621337201bf470d5c77
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315812 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
test/MC/AMDGPU/elf-notes-verify-amdgcn.s [new file with mode: 0644]
test/MC/AMDGPU/elf-notes-verify-r600.s [new file with mode: 0644]