1 //===- llvm/Transforms/ChangeAllocations.h -----------------------*- C++ -*--=//
3 // This file defines two passes that convert malloc and free instructions to
4 // calls to and from %malloc & %free function calls. The LowerAllocations
5 // transformation is a target dependant tranformation because it depends on the
6 // size of data types and alignment constraints.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TRANSFORMS_CHANGEALLOCATIONS_H
11 #define LLVM_TRANSFORMS_CHANGEALLOCATIONS_H
16 Pass *createLowerAllocationsPass(const TargetData &TD);
17 Pass *createRaiseAllocationsPass();