Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIR][driver] Forward -fno-clangir-direct-lowering option to cc1 #822

Conversation

keryell
Copy link
Contributor

@keryell keryell commented Sep 4, 2024

Allow from the clang driver the use of lowering from CIR to MLIR standard dialect.
Update the test to match the real output when
-fno-clangir-direct-lowering is used, or with a combination of both -fclangir-direct-lowering and -fno-clangir-direct-lowering.

Copy link
Collaborator

@smeenai smeenai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is straightforward enough, I'm just requesting changes because of the missing : in the RUN lines.

clang/lib/Driver/ToolChains/Clang.cpp Outdated Show resolved Hide resolved
clang/test/CIR/driver.c Outdated Show resolved Hide resolved
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changing RUN lines

@keryell
Copy link
Contributor Author

keryell commented Sep 10, 2024

Yes, back on it...

@bcardosolopes
Copy link
Member

I tried applying a suggestion but missed a semicolon:

/Users/runner/work/clangir/clangir/clang/lib/Driver/ToolChains/Clang.cpp:4975:111: error: expected ';' after expression
  Args.addOptOutFlag(CmdArgs, options::OPT_fclangir_direct_lowering, options::OPT_fno_clangir_direct_lowering)
                                                                                                              ^
                                                                                                              ;

Please include that in your updates so that the tests can pass

@keryell
Copy link
Contributor Author

keryell commented Sep 10, 2024

Please include that in your updates so that the tests can pass

Of course. 😄

keryell and others added 4 commits September 10, 2024 13:12
Allow from the clang driver the use of lowering from CIR to MLIR
standard dialect.
Update the test to match the real output when
-fno-clangir-direct-lowering is used.
Co-authored-by: Shoaib Meenai <shoaib.meenai@gmail.com>
@keryell keryell force-pushed the ronan/forward-fno-clangir-direct-lowering-to-cc1 branch from 8132aa7 to f373200 Compare September 10, 2024 20:12
@bcardosolopes
Copy link
Member

Note the ubuntu error is unrelated to this PR: #829, waiting for windows results to merge

@bcardosolopes bcardosolopes merged commit c324d34 into llvm:main Sep 10, 2024
5 of 6 checks passed
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
…m#822)

Allow from the clang driver the use of lowering from CIR to MLIR
standard dialect.
Update the test to match the real output when
`-fno-clangir-direct-lowering` is used, or with a combination of both
`-fclangir-direct-lowering` and `-fno-clangir-direct-lowering`.

---------

Co-authored-by: Bruno Cardoso Lopes <bcardosolopes@users.noreply.github.com>
Co-authored-by: Shoaib Meenai <shoaib.meenai@gmail.com>
smeenai added a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…m#822)

Allow from the clang driver the use of lowering from CIR to MLIR
standard dialect.
Update the test to match the real output when
`-fno-clangir-direct-lowering` is used, or with a combination of both
`-fclangir-direct-lowering` and `-fno-clangir-direct-lowering`.

---------

Co-authored-by: Bruno Cardoso Lopes <bcardosolopes@users.noreply.github.com>
Co-authored-by: Shoaib Meenai <shoaib.meenai@gmail.com>
smeenai added a commit to smeenai/clangir that referenced this pull request Oct 9, 2024
…m#822)

Allow from the clang driver the use of lowering from CIR to MLIR
standard dialect.
Update the test to match the real output when
`-fno-clangir-direct-lowering` is used, or with a combination of both
`-fclangir-direct-lowering` and `-fno-clangir-direct-lowering`.

---------

Co-authored-by: Bruno Cardoso Lopes <bcardosolopes@users.noreply.github.com>
Co-authored-by: Shoaib Meenai <shoaib.meenai@gmail.com>
keryell added a commit to keryell/clangir that referenced this pull request Oct 19, 2024
…m#822)

Allow from the clang driver the use of lowering from CIR to MLIR
standard dialect.
Update the test to match the real output when
`-fno-clangir-direct-lowering` is used, or with a combination of both
`-fclangir-direct-lowering` and `-fno-clangir-direct-lowering`.

---------

Co-authored-by: Bruno Cardoso Lopes <bcardosolopes@users.noreply.github.com>
Co-authored-by: Shoaib Meenai <shoaib.meenai@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants