Skip to content

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

@llvmbot

Description

@llvmbot
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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'confirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions