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

"-mllvm -print-before=<pass_name>" not working when invoked with clang #30010

Closed
llvmbot opened this issue Oct 11, 2016 · 3 comments
Closed

"-mllvm -print-before=<pass_name>" not working when invoked with clang #30010

llvmbot opened this issue Oct 11, 2016 · 3 comments
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' confirmed Verified by a second party

Comments

@llvmbot
Copy link
Member

llvmbot commented Oct 11, 2016

Bugzilla Link 30662
Version 10.0
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @MaskRay,@nabeelomer,@VictorYing,@yuanfang-chen

Extended Description

$ touch /tmp/test.c && ./bin/clang -mllvm -print-before=verify -c -emit-llvm /tmp/1.c

clang (LLVM option parsing): for the -print-before option: Cannot find option named 'verify'!

Looks like the passes were not registered by the time we parse the command line when invoked with clang. However, the option works perfectly fine with "llc". FYI, same is the case with "-mllvm print-after=<pass_name>

@nabeelomer
Copy link
Mannequin

nabeelomer mannequin commented Sep 30, 2020

This bug exists in Clang-10, Clang-11 and Clang master.

@MaskRay
Copy link
Member

MaskRay commented Oct 15, 2020

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@llvmbot llvmbot added the confirmed Verified by a second party label Jan 26, 2022
@JOE1994
Copy link
Member

JOE1994 commented Mar 22, 2025

With recent clang (at commit 052a4b54a75364f13ea5001bba00691da4d8c239 , from March 21 2025) ,
running the command from the ticket description (with both -print-before & -print-after) no longer fails with the error.

Closing as Done, but please re-open if necessary.

@JOE1994 JOE1994 closed this as completed Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' confirmed Verified by a second party
Projects
None yet
Development

No branches or pull requests

3 participants