2002-11-21 04:47:41 +08:00
|
|
|
//===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
|
2005-04-22 07:48:37 +08:00
|
|
|
//
|
2003-10-21 23:17:13 +08: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 07:48:37 +08:00
|
|
|
//
|
2003-10-21 23:17:13 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2002-11-21 04:47:41 +08: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 17:08:12 +08:00
|
|
|
#ifndef VALUEMAPPER_H
|
|
|
|
#define VALUEMAPPER_H
|
2002-11-21 04:47:41 +08:00
|
|
|
|
|
|
|
#include <map>
|
2003-11-12 06:41:34 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
2004-01-09 14:12:26 +08:00
|
|
|
class Value;
|
2004-05-19 17:08:12 +08: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-12 06:41:34 +08:00
|
|
|
} // End llvm namespace
|
|
|
|
|
2002-11-21 04:47:41 +08:00
|
|
|
#endif
|