This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Fix device stub name for Windows
ClosedPublic

Authored by yaxunl on Nov 9 2021, 8:27 AM.

Details

Summary

This is a follow up of https://reviews.llvm.org/D68578
where device stub name is changed for Itanium
mangling but not Microsoft mangling.

Diff Detail

Event Timeline

yaxunl requested review of this revision.Nov 9 2021, 8:27 AM
yaxunl created this revision.
tra accepted this revision.Nov 9 2021, 10:42 AM

LGTM in general.

clang/lib/AST/MicrosoftMangle.cpp
975–976

Can we just use (llvm::Twine("__device_stub__") + II->getName()).str()? Or std::string("__device__stub") + II->getName().str() ?

std::string should be convertible to StringRef and using a temporary variable here is fine.

This revision is now accepted and ready to land.Nov 9 2021, 10:42 AM
yaxunl marked an inline comment as done.Nov 9 2021, 1:35 PM
yaxunl added inline comments.
clang/lib/AST/MicrosoftMangle.cpp
975–976

I will use (llvm::Twine("device_stub") + II->getName()).str()

This revision was landed with ongoing or failed builds.Nov 23 2021, 9:04 AM
This revision was automatically updated to reflect the committed changes.
yaxunl marked an inline comment as done.
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2021, 9:04 AM