summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2016-02-02 13:52:43 +0000
committerOliver Stannard <oliver.stannard@arm.com>2016-02-02 13:52:43 +0000
commit7e7d983a878acc83e0aa424907286e8cd4e22960 (patch)
tree2927c11cc22432e748958e62e128d60cc85d20a9 /llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
parentd9e2dcdb424f761f7148db63d7ed9cd6ae40c2fe (diff)
downloadbcm5719-llvm-7e7d983a878acc83e0aa424907286e8cd4e22960.tar.gz
bcm5719-llvm-7e7d983a878acc83e0aa424907286e8cd4e22960.zip
Refactor backend diagnostics for unsupported features
Re-commit of r258951 after fixing layering violation. The BPF and WebAssembly backends had identical code for emitting errors for unsupported features, and AMDGPU had very similar code. This merges them all into one DiagnosticInfo subclass, that can be used by any backend. There should be minimal functional changes here, but some AMDGPU tests have been updated for the new format of errors (it used a slightly different format to BPF and WebAssembly). The AMDGPU error messages will now benefit from having precise source locations when debug info is available. llvm-svn: 259498
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll b/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
index f4409a0984a..580dc00f935 100644
--- a/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
+++ b/llvm/test/CodeGen/AMDGPU/dynamic_stackalloc.ll
@@ -2,7 +2,7 @@
; RUN: not llc -march=amdgcn -mcpu=tahiti -mattr=-promote-alloca -verify-machineinstrs < %s 2>&1 | FileCheck %s
; RUN: not llc -march=r600 -mcpu=cypress < %s 2>&1 | FileCheck %s
-; CHECK: error: unsupported dynamic alloca in test_dynamic_stackalloc
+; CHECK: in function test_dynamic_stackalloc{{.*}}: unsupported dynamic alloca
define void @test_dynamic_stackalloc(i32 addrspace(1)* %out, i32 %n) {
%alloca = alloca i32, i32 %n
OpenPOWER on IntegriCloud