2001-11-01 02:41:52 +00:00
|
|
|
//===-- LevelChange.h - Passes for raising/lowering llvm code ----*- C++ -*--=//
|
|
|
|
//
|
|
|
|
// This family of passes is useful for changing the 'level' of a module. This
|
|
|
|
// can either be raising (f.e. converting direct addressing to use getelementptr
|
|
|
|
// for structs and arrays), or lowering (for instruction selection).
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TRANSFORMS_LEVELCHANGE_H
|
|
|
|
#define LLVM_TRANSFORMS_LEVELCHANGE_H
|
|
|
|
|
2002-02-26 21:46:54 +00:00
|
|
|
class Pass;
|
2002-07-23 17:58:42 +00:00
|
|
|
class TargetData;
|
2001-11-01 02:41:52 +00:00
|
|
|
|
|
|
|
// RaisePointerReferences - Try to eliminate as many pointer arithmetic
|
|
|
|
// expressions as possible, by converting expressions to use getelementptr and
|
|
|
|
// friends.
|
|
|
|
//
|
2002-07-23 17:58:42 +00:00
|
|
|
Pass *createRaisePointerReferencesPass(const TargetData &TD);
|
2001-11-01 02:41:52 +00:00
|
|
|
|
|
|
|
#endif
|