2007-11-09 13:16:58 +01:00
|
|
|
//===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:59:42 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-11-09 13:16:58 +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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef VALUEMAPPER_H
|
|
|
|
#define VALUEMAPPER_H
|
|
|
|
|
2010-06-24 02:33:28 +02:00
|
|
|
#include "llvm/ADT/ValueMap.h"
|
2007-11-09 13:16:58 +01:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class Value;
|
|
|
|
class Instruction;
|
2010-06-24 02:33:28 +02:00
|
|
|
typedef ValueMap<const Value *, Value *> ValueToValueMapTy;
|
2007-11-09 13:16:58 +01:00
|
|
|
|
2010-04-21 00:24:18 +02:00
|
|
|
Value *MapValue(const Value *V, ValueToValueMapTy &VM);
|
|
|
|
void RemapInstruction(Instruction *I, ValueToValueMapTy &VM);
|
2007-11-09 13:16:58 +01:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|