1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/include/llvm/Transforms/Scalar/PromoteMemoryToRegister.h
2002-02-12 17:16:22 +00:00

23 lines
747 B
C++

//===- PromoteMemoryToRegister.h - Convert memory refs to regs ---*- C++ -*--=//
//
// This pass is used to promote memory references to be register references. A
// simple example of the transformation performed by this pass is:
//
// FROM CODE TO CODE
// %X = alloca int, uint 1 ret int 42
// store int 42, int *%X
// %Y = load int* %X
// ret int %Y
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_SCALAR_PROMOTEMEMORYTOREGISTER_H
#define LLVM_TRANSFORMS_SCALAR_PROMOTEMEMORYTOREGISTER_H
class Pass;
// newPromoteMemoryToRegister - Return the pass to perform this transformation.
Pass *newPromoteMemoryToRegister();
#endif