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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16#ifndef LLVM_PASSREGISTRY_H

17#define LLVM_PASSREGISTRY_H

18

24#include

25#include

26

27namespace llvm {

28

31

32

33

34

35

36

37

40

41

43 MapType PassInfoMap;

44

46 StringMapType PassInfoStringMap;

47

48 std::vector<std::unique_ptr> ToFree;

49 std::vector<PassRegistrationListener *> Listeners;

50

51public:

54

55

56

57

59

60

61

63

64

65

67

68

69

71

72

73

75

76

77

79

80

81

83};

84

85}

86

87#endif

This file defines the StringMap class.

This file defines the DenseMap class.

PassInfo class - An instance of this class exists for every pass known by the system,...

static LLVM_ABI PassRegistry * getPassRegistry()

getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...

LLVM_ABI void addRegistrationListener(PassRegistrationListener *L)

addRegistrationListener - Register the given PassRegistrationListener to receive passRegistered() cal...

LLVM_ABI void removeRegistrationListener(PassRegistrationListener *L)

removeRegistrationListener - Unregister a PassRegistrationListener so that it no longer receives pass...

LLVM_ABI void registerPass(const PassInfo &PI, bool ShouldFree=false)

registerPass - Register a pass (by means of its PassInfo) with the registry.

LLVM_ABI void enumerateWith(PassRegistrationListener *L)

enumerateWith - Enumerate the registered passes, calling the provided PassRegistrationListener's pass...

LLVM_ABI const PassInfo * getPassInfo(const void *TI) const

getPassInfo - Look up a pass' corresponding PassInfo, indexed by the pass' type identifier (&MyPass::...

StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...

StringRef - Represent a constant reference to a string, i.e.

SmartMutex - An R/W mutex with a compile time constant parameter that indicates whether this mutex sh...

This is an optimization pass for GlobalISel generic memory operations.

PassRegistrationListener class - This class is meant to be derived from by clients that are intereste...