-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CUDA] Die gracefully when trying to output an LLVM alias.
Summary: Previously, we would just output "foo = bar" in the assembly, and then ptxas would choke. Now we die before emitting any invalid code. Reviewers: echristo Subscribers: jholewinski, llvm-commits, jhen, tra Differential Revision: http://reviews.llvm.org/D16490 llvm-svn: 258638
- Loading branch information
Justin Lebar
committed
Jan 23, 2016
1 parent
2a161f9
commit 3a5f579
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s | ||
|
||
; Check that llc dies gracefully when given an alias. | ||
|
||
define i32 @a() { ret i32 0 } | ||
; CHECK: ERROR: Module has aliases | ||
@b = internal alias i32 (), i32 ()* @a |