2002-01-22 00:13:51 +00:00
|
|
|
//===- llvm/Transforms/ChangeAllocations.h -----------------------*- C++ -*--=//
|
2001-10-15 17:31:51 +00:00
|
|
|
//
|
2002-01-22 00:13:51 +00:00
|
|
|
// 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.
|
2001-10-15 17:31:51 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2002-01-22 00:13:51 +00:00
|
|
|
#ifndef LLVM_TRANSFORMS_CHANGEALLOCATIONS_H
|
|
|
|
#define LLVM_TRANSFORMS_CHANGEALLOCATIONS_H
|
2001-10-15 17:31:51 +00:00
|
|
|
|
2002-02-26 21:46:54 +00:00
|
|
|
class Pass;
|
2001-10-15 17:31:51 +00:00
|
|
|
class TargetData;
|
|
|
|
|
2002-02-26 21:46:54 +00:00
|
|
|
Pass *createLowerAllocationsPass(const TargetData &TD);
|
|
|
|
Pass *createRaiseAllocationsPass();
|
2002-01-22 00:13:51 +00:00
|
|
|
|
2001-10-15 17:31:51 +00:00
|
|
|
#endif
|