1 //===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the MapValue interface which is used by various parts of
11 // the Transforms/Utils library to implement cloning and linking facilities.
13 //===----------------------------------------------------------------------===//
18 #include "llvm/ADT/ValueMap.h"
23 typedef ValueMap<const Value *, Value *> ValueToValueMapTy;
25 Value *MapValue(const Value *V, ValueToValueMapTy &VM);
26 void RemapInstruction(Instruction *I, ValueToValueMapTy &VM);
27 } // End llvm namespace