15 #ifndef LLVM_TRANSFORMS_UTILS_CODEEXTRACTOR_H
16 #define LLVM_TRANSFORMS_UTILS_CODEEXTRACTOR_H
21 template <
typename T>
class ArrayRef;
24 class BlockFrequencyInfo;
25 class BranchProbabilityInfo;
53 const bool AggregateArgs;
59 unsigned NumExitBlocks;
108 const ValueSet &Allocas)
const;
123 void findAllocas(ValueSet &SinkCands, ValueSet &HoistCands,
138 void splitReturnBlocks();
140 Function *constructFunction(
const ValueSet &inputs,
141 const ValueSet &outputs,
146 void moveCodeToFunction(
Function *newFunction);
148 void calculateNewCallTerminatorWeights(
153 void emitCallAndSwitchStatement(
Function *newFunction,
A Module instance is used to store all the information related to an LLVM module. ...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
LLVM Basic Block Representation.
The instances of the Type class are immutable: once they are created, they are never changed...
Analysis providing branch probability information.
Represents a single loop in the control flow graph.