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

Reid Spencer reid at x10sys.com
Fri Dec 22 22:07:00 PST 2006



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

Local.h updated: 1.23 -> 1.24
---
Log message:

For PR950: http://llvm.org/PR950 :
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and 
been replaced with ICmpInst and FCmpInst.


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

 Local.h |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)


Index: llvm/include/llvm/Transforms/Utils/Local.h
diff -u llvm/include/llvm/Transforms/Utils/Local.h:1.23 llvm/include/llvm/Transforms/Utils/Local.h:1.24
--- llvm/include/llvm/Transforms/Utils/Local.h:1.23	Fri May 26 20:17:40 2006
+++ llvm/include/llvm/Transforms/Utils/Local.h	Sat Dec 23 00:05:40 2006
@@ -49,13 +49,15 @@
 Constant *ConstantFoldInstruction(Instruction *I);
 
 /// ConstantFoldInstOperands - Attempt to constant fold an instruction with the
-/// specified opcode and operands.  If successful, the constant result is
-/// returned, if not, null is returned.  Note that this function can fail when
-/// attempting to fold instructions like loads and stores, which have no
-/// constant expression form.
-///
-Constant *ConstantFoldInstOperands(unsigned Opc, const Type *DestTy,
-                                   const std::vector<Constant*> &Ops);
+/// specified operands.  If successful, the constant result is returned, if not,
+/// null is returned.  Note that this function can fail when attempting to 
+/// fold instructions like loads and stores, which have no constant expression 
+/// form.
+///
+Constant *ConstantFoldInstOperands(
+  const Instruction *I, ///< The model instruction
+  const std::vector<Constant*> &Ops ///< The constant operands to use.
+);
 
 
 /// ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a






More information about the llvm-commits mailing list