Helper class for promoting a collection of loads and stores into SSA Form using the SSAUpdater.
Synopsis
Declared in <llvm/Transforms/Utils/SSAUpdater.h>
class LoadAndStorePromoter;
Description
This handles complexities that SSAUpdater doesn't, such as multiple loads and stores in one block.
Clients of this class are expected to subclass this and implement the virtual methods.
Member Functions
Name |
Description |
|
Construct a promoter for the given loads and stores. |
|
Destroy the load/store promoter. |
|
This hook is invoked after all the stores are found and inserted as available values. |
|
Return the value to use at the alloca's position in the code. |
|
Called before each instruction is deleted. |
|
Clients can choose to implement this to get notified right before a load is RAUW'd another value. |
This does the promotion. |
|
|
Return false if a sub‐class wants to keep one of the loads/stores after the SSA construction. |
|
Called to update debug info associated with the instruction. |