[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/Cloning.h

Chris Lattner sabre at nondot.org
Tue Jan 30 15:22:56 PST 2007



Changes in directory llvm/include/llvm/Transforms/Utils:

Cloning.h updated: 1.20 -> 1.21
---
Log message:

The inliner/cloner can now optionally take TargetData info, which can be
used by constant folding.


---
Diffs of the changes:  (+6 -4)

 Cloning.h |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Transforms/Utils/Cloning.h
diff -u llvm/include/llvm/Transforms/Utils/Cloning.h:1.20 llvm/include/llvm/Transforms/Utils/Cloning.h:1.21
--- llvm/include/llvm/Transforms/Utils/Cloning.h:1.20	Fri May 26 20:21:50 2006
+++ llvm/include/llvm/Transforms/Utils/Cloning.h	Tue Jan 30 17:22:39 2007
@@ -33,6 +33,7 @@
 class CallSite;
 class Trace;
 class CallGraph;
+class TargetData;
 
 /// CloneModule - Return an exact copy of the specified module
 ///
@@ -141,7 +142,8 @@
                                std::map<const Value*, Value*> &ValueMap,
                                std::vector<ReturnInst*> &Returns,
                                const char *NameSuffix = "", 
-                               ClonedCodeInfo *CodeInfo = 0);
+                               ClonedCodeInfo *CodeInfo = 0,
+                               const TargetData *TD = 0);
 
 
 /// CloneTraceInto - Clone T into NewFunc. Original<->clone mapping is
@@ -170,9 +172,9 @@
 /// If a non-null callgraph pointer is provided, these functions update the
 /// CallGraph to represent the program after inlining.
 ///
-bool InlineFunction(CallInst *C, CallGraph *CG = 0);
-bool InlineFunction(InvokeInst *II, CallGraph *CG = 0);
-bool InlineFunction(CallSite CS, CallGraph *CG = 0);
+bool InlineFunction(CallInst *C, CallGraph *CG = 0, const TargetData *TD = 0);
+bool InlineFunction(InvokeInst *II, CallGraph *CG = 0, const TargetData *TD =0);
+bool InlineFunction(CallSite CS, CallGraph *CG = 0, const TargetData *TD = 0);
 
 } // End llvm namespace
 






More information about the llvm-commits mailing list