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

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 13 14:29:06 PDT 2004


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

Local.h updated: 1.16 -> 1.17

---
Log message:

Add new interfaces


---
Diffs of the changes:  (+9 -0)

Index: llvm/include/llvm/Transforms/Utils/Local.h
diff -u llvm/include/llvm/Transforms/Utils/Local.h:1.16 llvm/include/llvm/Transforms/Utils/Local.h:1.17
--- llvm/include/llvm/Transforms/Utils/Local.h:1.16	Tue Mar 16 19:29:36 2004
+++ llvm/include/llvm/Transforms/Utils/Local.h	Tue Apr 13 14:28:32 2004
@@ -47,6 +47,15 @@
 Constant *ConstantFoldInstruction(Instruction *I);
 
 
+/// canConstantFoldCallTo - Return true if its even possible to fold a call to
+/// the specified function.
+bool canConstantFoldCallTo(Function *F);
+
+/// ConstantFoldCall - Attempt to constant fold a call to the specified function
+/// with the specified arguments, returning null if unsuccessful.
+Constant *ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands);
+
+
 //===----------------------------------------------------------------------===//
 //  Local dead code elimination...
 //





More information about the llvm-commits mailing list