2002-11-20 21:47:41 +01:00
|
|
|
//===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
|
2005-04-22 01:48:37 +02:00
|
|
|
//
|
2003-10-21 17:17:13 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-22 01:48:37 +02:00
|
|
|
//
|
2003-10-21 17:17:13 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2002-11-20 21:47:41 +01:00
|
|
|
//
|
|
|
|
// This file defines the MapValue interface which is used by various parts of
|
|
|
|
// the Transforms/Utils library to implement cloning and linking facilities.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-05-19 11:08:12 +02:00
|
|
|
#ifndef VALUEMAPPER_H
|
|
|
|
#define VALUEMAPPER_H
|
2002-11-20 21:47:41 +01:00
|
|
|
|
|
|
|
#include <map>
|
2003-11-11 23:41:34 +01:00
|
|
|
|
|
|
|
namespace llvm {
|
2004-01-09 07:12:26 +01:00
|
|
|
class Value;
|
2004-05-19 11:08:12 +02:00
|
|
|
class Instruction;
|
|
|
|
typedef std::map<const Value *, Value *> ValueMapTy;
|
|
|
|
|
|
|
|
Value *MapValue(const Value *V, ValueMapTy &VM);
|
|
|
|
void RemapInstruction(Instruction *I, ValueMapTy &VM);
|
2003-11-11 23:41:34 +01:00
|
|
|
} // End llvm namespace
|
|
|
|
|
2002-11-20 21:47:41 +01:00
|
|
|
#endif
|