Pass that promotes memory allocas to SSA registers via PromoteMemToReg.
Declared in <llvm/Transforms/Utils/Mem2Reg.h>
class PromotePass
: public OptionalPassInfoMixin<PromotePass>
This is a simple pass wrapper around the PromoteMemToReg function call exposed by the Utils library.
| Name | Description |
|---|---|
OptionalPassInfoMixin<PromotePass> | A CRTP mix-in for passes that can be skipped. |
| Name | Description |
|---|---|
run | Run the mem2reg pass over the function. |
| Name | Description |
|---|---|
isRequired | Return false; optional passes may be skipped. |