aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/ChangeAllocations.h
blob: 1b837419bd59a515a27d53e79d2d6378d987093e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//===- 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