llvm.org GIT mirror llvm / 18d083f
Make this header public git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43938 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 12 years ago
1 changed file(s) with 29 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 //===- ValueMapper.h - Interface shared by lib/Transforms/Utils -*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file was developed by the LLVM research group and is distributed under
5 // the University of Illinois Open Source License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines the MapValue interface which is used by various parts of
10 // the Transforms/Utils library to implement cloning and linking facilities.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef VALUEMAPPER_H
15 #define VALUEMAPPER_H
16
17 #include "llvm/ADT/DenseMap.h"
18
19 namespace llvm {
20 class Value;
21 class Instruction;
22 typedef DenseMap ValueMapTy;
23
24 Value *MapValue(const Value *V, ValueMapTy &VM);
25 void RemapInstruction(Instruction *I, ValueMapTy &VM);
26 } // End llvm namespace
27
28 #endif