mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
[PM] Lift the actual analyses used into the inferface rather than
accepting a Pass and querying it for analyses. This is necessary to allow the utilities to work both with the old and new pass managers, and I also think this makes the interface much more clear and helps the reader know what analyses the utility can actually handle. I plan to repeat this process iteratively to clean up all the pass utilities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
namespace llvm {
|
||||
|
||||
class AliasAnalysis;
|
||||
class MemoryDependenceAnalysis;
|
||||
class DominatorTree;
|
||||
class Instruction;
|
||||
class MDNode;
|
||||
@ -39,7 +40,8 @@ void DeleteDeadBlock(BasicBlock *BB);
|
||||
/// any single-entry PHI nodes in it, fold them away. This handles the case
|
||||
/// when all entries to the PHI nodes in a block are guaranteed equal, such as
|
||||
/// when the block has exactly one predecessor.
|
||||
void FoldSingleEntryPHINodes(BasicBlock *BB, Pass *P = nullptr);
|
||||
void FoldSingleEntryPHINodes(BasicBlock *BB, AliasAnalysis *AA = nullptr,
|
||||
MemoryDependenceAnalysis *MemDep = nullptr);
|
||||
|
||||
/// DeleteDeadPHIs - Examine each PHI in the given block and delete it if it
|
||||
/// is dead. Also recursively delete any operands that become dead as
|
||||
|
Reference in New Issue
Block a user