[PrintPipeline] Handle CoroConditionalWrapper and add more verification
authorArthur Eubanks <aeubanks@google.com>
Tue, 11 Oct 2022 18:14:53 +0000 (11:14 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 12 Oct 2022 16:36:45 +0000 (09:36 -0700)
commitf59e1bcc22717b9cce22848e5b2defb0bfd51b7c
tree791c563875471096c18a5f234ca2bc53848641e0
parentf628d6c3e865d319f828bd69bb22500fffe1ea0b
[PrintPipeline] Handle CoroConditionalWrapper and add more verification

Add a check (can be disabled via a flag) that the pipeline we generate is actually parsable.
Can be disabled because we don't expect to handle every pass in -print-pipeline-passes.

Fixes #58280.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D135703
llvm/include/llvm/Transforms/Coroutines/CoroConditionalWrapper.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/Coroutines/CoroConditionalWrapper.cpp
llvm/test/Other/new-pm-print-pipeline.ll
llvm/tools/opt/NewPMDriver.cpp