forked from OSchip/llvm-project
Merge the contents of ChangeAllocations.h into Scalar.h
llvm-svn: 3028
This commit is contained in:
parent
570c6a6114
commit
b1b12d1aaa
|
@ -1,19 +0,0 @@
|
||||||
//===- llvm/Transforms/ChangeAllocations.h -----------------------*- C++ -*--=//
|
|
||||||
//
|
|
||||||
// This file defines two passes that convert malloc and free instructions to
|
|
||||||
// calls to and from %malloc & %free function calls. The LowerAllocations
|
|
||||||
// transformation is a target dependant tranformation because it depends on the
|
|
||||||
// size of data types and alignment constraints.
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
#ifndef LLVM_TRANSFORMS_CHANGEALLOCATIONS_H
|
|
||||||
#define LLVM_TRANSFORMS_CHANGEALLOCATIONS_H
|
|
||||||
|
|
||||||
class Pass;
|
|
||||||
class TargetData;
|
|
||||||
|
|
||||||
Pass *createLowerAllocationsPass(const TargetData &TD);
|
|
||||||
Pass *createRaiseAllocationsPass();
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -9,6 +9,7 @@
|
||||||
#define LLVM_TRANSFORMS_SCALAR_H
|
#define LLVM_TRANSFORMS_SCALAR_H
|
||||||
|
|
||||||
class Pass;
|
class Pass;
|
||||||
|
class TargetData;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
|
@ -159,6 +160,16 @@ Pass *createReassociatePass();
|
||||||
Pass *createCFGSimplificationPass();
|
Pass *createCFGSimplificationPass();
|
||||||
|
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// These two passes convert malloc and free instructions to and from %malloc &
|
||||||
|
// %free function calls. The LowerAllocations transformation is a target
|
||||||
|
// dependant tranformation because it depends on the size of data types and
|
||||||
|
// alignment constraints.
|
||||||
|
//
|
||||||
|
Pass *createLowerAllocationsPass(const TargetData &TD);
|
||||||
|
Pass *createRaiseAllocationsPass();
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// These functions removes symbols from functions and modules.
|
// These functions removes symbols from functions and modules.
|
||||||
|
|
Loading…
Reference in New Issue