Create a pass that promotes memory references to register references.

Synopsis

Declared in <llvm/Transforms/Utils.h>

FunctionPass*
createPromoteMemoryToRegisterPass();

Description

A simple example of the transformation performed by this pass is:

FROM CODE TO CODE %X = alloca i32, i32 1 ret i32 42 store i32 42, i32 *%X %Y = load i32* %X ret i32 %Y

Return Value

An owning pointer to the newly created FunctionPass.

Created with MrDocs