This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] fix builtin constraints for PTX 7.2
ClosedPublic

Authored by tra on Feb 18 2021, 4:39 PM.

Details

Summary

This fixes build issues w/ CUDA-11 introduced by https://reviews.llvm.org/D95974

Diff Detail

Event Timeline

tra created this revision.Feb 18 2021, 4:39 PM
tra requested review of this revision.Feb 18 2021, 4:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 4:39 PM
tra updated this revision to Diff 324812.Feb 18 2021, 4:44 PM
tra edited the summary of this revision. (Show Details)

Updated the test.

yaxunl added inline comments.Feb 18 2021, 5:39 PM
clang/include/clang/Basic/BuiltinsNVPTX.def
744–745

need to pop PTX72 ?

tra updated this revision to Diff 324829.Feb 18 2021, 5:51 PM

pop the macro

tra marked an inline comment as done.Feb 18 2021, 5:51 PM
tra added inline comments.
clang/include/clang/Basic/BuiltinsNVPTX.def
744–745

Good catch. Done.

yaxunl accepted this revision.Feb 18 2021, 5:52 PM

LGTM. Thanks.

This revision is now accepted and ready to land.Feb 18 2021, 5:52 PM

This fixes a build error we're seeing, so I'd like to land this in a bit if that's OK.

This revision was automatically updated to reflect the committed changes.