This is an archive of the discontinued LLVM Phabricator instance.

[AIX] Emitting diagnostics error for profile options
ClosedPublic

Authored by Whitney on Jun 23 2021, 11:26 AM.

Details

Summary

Only LLVM-based instrumentation profile is supported on AIX.
And it currently must be used with full LTO.

Diff Detail

Event Timeline

Whitney requested review of this revision.Jun 23 2021, 11:26 AM
Whitney created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2021, 11:26 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
clang/test/Driver/unsupported-option.c
14

Worthwhile to use the 64-bit triple for one of the cases.

Whitney updated this revision to Diff 354096.Jun 23 2021, 3:56 PM
Whitney marked an inline comment as done.

Updated one of the test cases to use --target=powerpc64-ibm-aix.

clang/lib/Driver/ToolChains/Clang.cpp
786

Isn't this block of code a bit too early? The adjustment to consider the "no" form as equivalent to not having any ProfileGenerateArg is later in the function. I think it makes sense to move this to after the group of blocks that deal with more "fundamental" option conflicts.

Whitney updated this revision to Diff 354108.Jun 23 2021, 4:36 PM

move code later

Whitney marked an inline comment as done.Jun 23 2021, 4:36 PM
This revision is now accepted and ready to land.Jun 23 2021, 4:40 PM
This revision was automatically updated to reflect the committed changes.