[polly] Fix NPM unittests after D121566.
Reland "Load pass plugins during option processing, so that plugin options are registered and live."Fix Polly failures.Reviewed By: mehdi_amini, MeinersburDifferential Revision: https://reviews
Reland "Load pass plugins during option processing, so that plugin options are registered and live."Fix Polly failures.Reviewed By: mehdi_amini, MeinersburDifferential Revision: https://reviews.llvm.org/D121566
show more ...
[Polly] Dissolve Isl test directory. NFC.All tests use ISL, integrate its subfolder into the components theybelong to.
[Polly] Fix dumpfunction.ll test.
[Polly] Don't prune non-external function itself from dump.
[Polly] Add support for -polly-dump-before/after with NPM.The new pass manager does not allow adding module passes at the-polly-position=before-vectorizer extension point. Introduce aDumpFunction
[Polly] Add support for -polly-dump-before/after with NPM.The new pass manager does not allow adding module passes at the-polly-position=before-vectorizer extension point. Introduce aDumpFunctionPass that dumps only current function. In contrast to thelegacy pass manager's -polly-dump-before, each function will be dumpedinto its own file. -polly-dump-before-file is still not supported.The DumpFunctionPass uses llvm::CloneModule to copy the current functioninto a new module and then write it into a file.
[Polly] Add support for -polly-dump-after(-file) with the NPM.For the same reason as with -polly-dump-before, it is only supportedwith -polly-position=early.
[Polly] Add support for -polly-dump-before(-file) with the NPM.Only supported with -polly-position=early. Unfortunately, theextension point callpack for VectorizerStart only passes aFunctionPassM
[Polly] Add support for -polly-dump-before(-file) with the NPM.Only supported with -polly-position=early. Unfortunately, theextension point callpack for VectorizerStart only passes aFunctionPassManager, making it impossible to add a module pass.
[Polly] Add support for -polly-position=early with the NPM.This required support for the canonicalization passes, inlcudingporting RewriteByReferenceParams to the NPM.For some reason, the legacy
[Polly] Add support for -polly-position=early with the NPM.This required support for the canonicalization passes, inlcudingporting RewriteByReferenceParams to the NPM.For some reason, the legacy pass pipeline with -polly-position=early didnot run the CodePreparation pass. This was fixed as well.
[Polly] Test all optimization levels.
[Polly] Added dedicated test for working -O3 pipeline.Test the NewPM as well as the legacy PM.
[NewPM] Update pass registration for the LLVM plugin interfaceSummary:As of rL329273, LLVM has a mechanism to load new-pm plugins in opt. Usethis API in Polly.Reviewers: grosser, Meinersbur, bo
[NewPM] Update pass registration for the LLVM plugin interfaceSummary:As of rL329273, LLVM has a mechanism to load new-pm plugins in opt. Usethis API in Polly.Reviewers: grosser, Meinersbur, bolluReviewed By: grosser, MeinersburSubscribers: lksbhm, bollu, pollydev, llvm-commitsDifferential Revision: https://reviews.llvm.org/D45484llvm-svn: 330181