LLVM: include/llvm/CodeGen/LazyMachineBlockFrequencyInfo.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16#ifndef LLVM_CODEGEN_LAZYMACHINEBLOCKFREQUENCYINFO_H

17#define LLVM_CODEGEN_LAZYMACHINEBLOCKFREQUENCYINFO_H

18

23

24namespace llvm {

25

26

27

28

29

30

31

32

33

34

35

36

38private:

39

40 mutable std::unique_ptr OwnedMBFI;

41

42

43 mutable std::unique_ptr OwnedMLI;

44

45

46 mutable std::unique_ptr OwnedMDT;

47

48

50

51

52

54

55public:

56 static char ID;

57

59

60

62

63

65 return calculateIfNotAvailable();

66 }

67

69

72};

73}

74#endif

Represent the analysis usage information of a pass.

static char ID

Definition LazyMachineBlockFrequencyInfo.h:56

void getAnalysisUsage(AnalysisUsage &AU) const override

getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...

MachineBlockFrequencyInfo & getBFI()

Compute and return the block frequencies.

Definition LazyMachineBlockFrequencyInfo.h:61

const MachineBlockFrequencyInfo & getBFI() const

Compute and return the block frequencies.

Definition LazyMachineBlockFrequencyInfo.h:64

LazyMachineBlockFrequencyInfoPass()

void releaseMemory() override

releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...

bool runOnMachineFunction(MachineFunction &F) override

runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...

MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic b...

MachineFunctionPass(char &ID)

This is an optimization pass for GlobalISel generic memory operations.