This is an archive of the discontinued LLVM Phabricator instance.

[clang] fix TranslateXarchArgs to support -Xarch_device -O*
Needs ReviewPublic

Authored by chenguang on Jun 3 2023, 4:31 AM.

Details

Reviewers
yaxunl
awarzynski
Summary

Origin code: when passed -Xarch_device -O1, TranslateXarchArgs will parse -O1 as a CLFlag, which has flags NoXarchOption , and then report error. Now: TranslateXarchArgs parse -O1 as O_Group

Diff Detail

Event Timeline

chenguang created this revision.Jun 3 2023, 4:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2023, 4:31 AM
chenguang requested review of this revision.Jun 3 2023, 4:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2023, 4:31 AM
chenguang retitled this revision from [clang] fix TranslateXarchArgs to support -Xarch_device -O* Origin code: when passed -Xarch_device -O1, TranslateXarchArgs will parse -O1 as a CLFlag, which has flags NoXarchOption , and then report error. Now: TranslateXarchArgs parse -O1 as O_Group to [clang] fix TranslateXarchArgs to support -Xarch_device -O* .Jun 3 2023, 4:34 AM
chenguang edited the summary of this revision. (Show Details)
chenguang added reviewers: yaxunl, awarzynski.