blob: 6a16784fd20305e7b8a65c76f5089bdd6b3793b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//===- 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
|