This is an archive of the discontinued LLVM Phabricator instance.

[AIX] Don't pass no-integrated-as by default
ClosedPublic

Authored by jsji on Jul 6 2021, 1:58 PM.

Details

Reviewers
shchenz
Group Reviewers
Restricted Project
Commits
rG31d10ea10ee1: [AIX] Don't pass no-integrated-as by default
Summary

D105314 added the abibility choose to use AsmParser for parsing inline
asm. -no-intergrated-as will override this default if specified
explicitly.

If toolchain choose to use MCAsmParser for inline asm, don't pass
the option to disable integrated-as explictly unless set by user.

Diff Detail

Event Timeline

jsji requested review of this revision.Jul 6 2021, 1:58 PM
jsji created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2021, 1:58 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
shchenz added a comment.EditedJul 7 2021, 6:47 AM

I think it is ok to not passing -no-integrated-as to cc1 by default as the default value for backend for XCOFF is no integrated assembler. Can we make the logic be simpler here?

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

Do we need a new virtual function parseInlineAsmUsingAsmParser() in the tool chain file? Maybe we can use isOSAIX() and Args.hasFlag( here to change the behaviour for AIX. inline assembly parser sounds like not a toolchain level flag?

jsji added inline comments.Jul 7 2021, 6:53 AM
clang/lib/Driver/ToolChains/Clang.cpp
5043

I think we should avoid adding os specific code here. The new abstraction virtual function is designed to be usable by any target, just that aix is the only one for now.

shchenz accepted this revision.Jul 7 2021, 6:12 PM

LGTM. Thanks

This revision is now accepted and ready to land.Jul 7 2021, 6:12 PM
This revision was automatically updated to reflect the committed changes.