[PATCH] D108298: [NPM] Print '-passes' compatible string for built pipeline.

Markus Lavin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 30 03:27:11 PDT 2021


markus added inline comments.


================
Comment at: llvm/test/Other/new-pm-print-pipeline.ll:14
+; RUN: opt -o /dev/null /dev/null -print-pipeline-passes -passes='function(mem2reg)' | FileCheck %s --match-full-lines --check-prefixes=CHECK-3
+; CHECK-3: verify,function(mem2reg),verify,BitcodeWriterPass
----------------
It is tempting to add an additional test as follows as that would verify that an O3 pipeline is properly printed. May very well be that this only works on certain targets though so in that case the test needs to be moved to a target specific directory. 
```
; RUN: opt -S /dev/null -passes=$(opt -O3 -S /dev/null -o /dev/null -print-pipeline-passes)
```


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108298/new/

https://reviews.llvm.org/D108298



More information about the llvm-commits mailing list