This is an archive of the discontinued LLVM Phabricator instance.

CUDA/HIP: Change device-use-host-var.cu's NOT "external" check to include "addrspace"
ClosedPublic

Authored by kzhuravl on Jun 3 2021, 4:31 PM.

Details

Summary

Otherwise it is causing one of our build jobs to fail, it is using "external" as directory, and NOT is failing because "external" is found in ModuleID.

Diff Detail

Event Timeline

kzhuravl requested review of this revision.Jun 3 2021, 4:31 PM
kzhuravl created this revision.
tra added a subscriber: tra.Jun 3 2021, 5:03 PM
tra added inline comments.
clang/test/CodeGenCUDA/device-use-host-var.cu
68

This may be too specific. What if we end up generating a variable in generic AS which does not have addrspace.
Considering that we went to make sure we don't create references to external variables, we want something like this instead:

NEG-NOT: {{^}}@{{.*}} = external
kzhuravl updated this revision to Diff 349732.Jun 3 2021, 5:24 PM
kzhuravl marked an inline comment as done.

Address review feedback.

tra accepted this revision.Jun 3 2021, 5:28 PM
This revision is now accepted and ready to land.Jun 3 2021, 5:28 PM
yaxunl accepted this revision.Jun 3 2021, 5:45 PM

LGTM. thanks

Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2021, 10:10 AM