This is an archive of the discontinued LLVM Phabricator instance.

[NFCi] Switch ordering of ParseLangArgs and ParseCodeGenArgs.
Needs ReviewPublic

Authored by plotfi on May 11 2020, 10:56 AM.

Details

Reviewers
rjmccall
ab
Summary

After speaking with @ab and @rjmccall on https://reviews.llvm.org/D72841#2027740 and https://github.com/apple/llvm-project/pull/1202.

it sounds like code-gen option parsing should depend on language-option parsing, not the other way around. Apple Clang llvm-project master does this in the right order but upstream llvm.org does it in the opposite order.

This patch changes the order to the way apple-master does it, which we think is the correct order. At the moment D72841 causes some bot failures on apple-master (only on tests added in D72841). I think D72841 should be reverted, and then reapplied after _this_ patch is landed.

Diff Detail

Event Timeline

plotfi created this revision.May 11 2020, 10:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2020, 10:56 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

I don't think the reversion is necessary; it's being fixed to remove the dependency. This is a good change, though.

I don't think the reversion is necessary; it's being fixed to remove the dependency. This is a good change, though.

Should I still try to land this diff so that it matches the behavior on Apple master? Might catch any future dependency issues.

I think it makes sense; if nothing else, we're trying to upstream all that work.

I think it makes sense; if nothing else, we're trying to upstream all that work.

@rjmccall Should I still try to land this or should this stuff get pushed in as part of the apple/master upstreaming effort @dexonsmith mentioned on the llvm list? I can abandon this diff if thats the plan.

Either way, I think.

plotfi updated this revision to Diff 278064.Jul 14 2020, 9:37 PM

Update for harbormaster.