This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Die gracefully when trying to output an LLVM alias.
ClosedPublic

Authored by jlebar on Jan 22 2016, 4:23 PM.

Details

Summary

Previously, we would just output "foo = bar" in the assembly, and then
ptxas would choke. Now we die before emitting any invalid code.

We could check for aliases much earlier, e.g. during doInitialization.
But I figure it's better to emit as much code as we can and only die at
the last minute.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 45765.Jan 22 2016, 4:23 PM
jlebar retitled this revision from to [CUDA] Die gracefully when trying to output an LLVM alias..
jlebar updated this object.
jlebar added a reviewer: tra.
jlebar added subscribers: echristo, jhen, llvm-commits.

Personally I'd go with doInitialization just so we know earlier. Fail faster :)

-eric

jlebar updated this revision to Diff 45804.Jan 23 2016, 1:03 PM

Die during doInitialization instead of doFinalization.

Personally I'd go with doInitialization just so we know earlier. Fail faster :)

Sure, done.

echristo accepted this revision.Jan 23 2016, 1:04 PM
echristo added a reviewer: echristo.

LGTM.

This revision is now accepted and ready to land.Jan 23 2016, 1:04 PM
This revision was automatically updated to reflect the committed changes.