blob: 51319db55cebfb286d0147b229078808249f2540 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
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.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef VALUEMAPPER_H
16#define VALUEMAPPER_H
17
18#include "llvm/ADT/DenseMap.h"
19
20namespace llvm {
21 class Value;
22 class Instruction;
23 typedef DenseMap<const Value *, Value *> ValueMapTy;
24
25 Value *MapValue(const Value *V, ValueMapTy &VM);
26 void RemapInstruction(Instruction *I, ValueMapTy &VM);
27} // End llvm namespace
28
29#endif