aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachinePassManager.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-08-21[NewPM][PassInstrumentation] Add PreservedAnalyses parameter to AfterPass* ↵Yevgeny Rouban1-1/+1
callbacks Both AfterPass and AfterPassInvalidated pass instrumentation callbacks get additional parameter of type PreservedAnalyses. This patch was created by @fedor.sergeev. I have just slightly changed it. Reviewers: fedor.sergeev Differential Revision: https://reviews.llvm.org/D81555
2020-08-13[NewPM][CodeGen] Add machine code verification callbackYuanfang Chen1-0/+17
D83608 need this. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D85916
2020-08-07Reland "Revert "[NewPM][CodeGen] Introduce machine pass and machine pass ↵Yuanfang Chen1-0/+104
manager"" This relands commit 320eab2d558fde0b61437e9b9075bfd301c2c474. The test failed because it was looking for x86-linux target unconditionally. Now it gets the default target.
2020-08-07Revert "[NewPM][CodeGen] Introduce machine pass and machine pass manager"Yuanfang Chen1-103/+0
This reverts commit 911565d1085d9447363fe8ad041817436c4998fe. Broke some non-Linux bots.
2020-08-07[NewPM][CodeGen] Introduce machine pass and machine pass managerYuanfang Chen1-0/+103
machine pass could define four methods: - `PreservedAnalyses run(MachineFunction &, MachineFunctionAnalysisManager &)` - `Error doInitialization(Module &, MachineFunctionAnalysisManager &)` - `Error doFinalization(Module &, MachineFunctionAnalysisManager &)` - `Error run(Module &, MachineFunctionAnalysisManager &)` machine pass manger: - MachineFunctionAnalysisManager: Basically an AnalysisManager<MachineFunction> augmented with the ability to register and query IR analyses - MachineFunctionPassManager: support only two methods, `addPass` and `run` Reviewed By: arsenm, asbirlea, aeubanks Differential Revision: https://reviews.llvm.org/D67687