LLVM: lib/CodeGen/MachineDomTreeUpdater.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

18

19namespace llvm {

20

23

27 &MF);

28

35

36bool MachineDomTreeUpdater::forceFlushDeletedBB() {

38 return false;

39

42 BB->eraseFromParent();

43 }

45 return true;

46}

47

48

49

50

51

52

54 validateDeleteBB(DelBB);

55 if (Strategy == UpdateStrategy::Lazy) {

57 return;

58 }

59

62}

63

64void MachineDomTreeUpdater::validateDeleteBB(MachineBasicBlock *DelBB) {

65 assert(DelBB && "Invalid push_back of nullptr DelBB.");

66 assert(DelBB->pred_empty() && "DelBB has one or more predecessors.");

67}

68

69}

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

#define LLVM_EXPORT_TEMPLATE

SmallPtrSet< BasicBlockT *, 8 > DeletedBBs

void eraseDelBBNode(BasicBlockT *DelBB)

const UpdateStrategy Strategy

LLVM_ABI void eraseFromParent()

This method unlinks 'this' from the containing function and deletes it.

LLVM_ABI void deleteBB(MachineBasicBlock *DelBB)

Delete DelBB.

Definition MachineDomTreeUpdater.cpp:53

DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...

MachinePostDominatorTree - an analysis pass wrapper for DominatorTree used to compute the post-domina...

This is an optimization pass for GlobalISel generic memory operations.