LLVM: include/llvm/IR/PredIteratorCache.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#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
45 return Entry;
46 }
47
48
50 BlockToPredsMap.clear();
51 Memory.Reset();
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.
PredIteratorCache - This class is an extremely trivial cache for predecessor iterator queries.
Definition PredIteratorCache.h:27
size_t size(BasicBlock *BB)
Definition PredIteratorCache.h:35
void clear()
clear - Remove all information.
Definition PredIteratorCache.h:49
ArrayRef< BasicBlock * > get(BasicBlock *BB)
Definition PredIteratorCache.h:36
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
This is an optimization pass for GlobalISel generic memory operations.
FunctionAddr VTableAddr uintptr_t uintptr_t Data
ArrayRef(const T &OneElt) -> ArrayRef< T >
OutputIt copy(R &&Range, OutputIt Out)
auto predecessors(const MachineBasicBlock *BB)
BumpPtrAllocatorImpl<> BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.