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

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_IR_PREDITERATORCACHE_H

14#define LLVM_IR_PREDITERATORCACHE_H

15

21

22namespace llvm {

23

24

25

26

28

30

31

33

34public:

38 if (Entry.data())

39 return Entry;

40

43 std::copy(PredCache.begin(), PredCache.end(), Data);

45 return Entry;

46 }

47

48

50 BlockToPredsMap.clear();

52 }

53};

54

55}

56

57#endif

This file defines the BumpPtrAllocator interface.

This file defines the DenseMap class.

This file provides various utilities for inspecting and working with the control flow graph in LLVM I...

This file defines the SmallVector class.

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...

LLVM Basic Block Representation.

Allocate memory in an ever growing pool, as if by bump-pointer.

PredIteratorCache - This class is an extremely trivial cache for predecessor iterator queries.

size_t size(BasicBlock *BB)

void clear()

clear - Remove all information.

ArrayRef< BasicBlock * > get(BasicBlock *BB)

This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.

This class provides various memory handling functions that manipulate MemoryBlock instances.

This is an optimization pass for GlobalISel generic memory operations.

auto predecessors(const MachineBasicBlock *BB)