[llvm-commits] CVS: llvm/include/llvm/Support/InstVisitor.h

Reid Spencer reid at x10sys.com
Sun Nov 19 17:22:53 PST 2006



Changes in directory llvm/include/llvm/Support:

InstVisitor.h updated: 1.41 -> 1.42
---
Log message:

For PR950: http://llvm.org/PR950 :
First in a series of patches to convert SetCondInst into ICmpInst and 
FCmpInst using only two opcodes and having the instructions contain their
predicate value. Nothing uses these classes yet. More patches to follow.


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

 InstVisitor.h |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.41 llvm/include/llvm/Support/InstVisitor.h:1.42
--- llvm/include/llvm/Support/InstVisitor.h:1.41	Mon Oct  9 13:33:08 2006
+++ llvm/include/llvm/Support/InstVisitor.h	Sun Nov 19 19:22:35 2006
@@ -169,6 +169,8 @@
   RetTy visitUnwindInst(UnwindInst &I)              { DELEGATE(TerminatorInst);}
   RetTy visitUnreachableInst(UnreachableInst &I)    { DELEGATE(TerminatorInst);}
   RetTy visitSetCondInst(SetCondInst &I)            { DELEGATE(BinaryOperator);}
+  RetTy visitICmpInst(ICmpInst &I)                  { DELEGATE(CmpInst);}
+  RetTy visitFCmpInst(FCmpInst &I)                  { DELEGATE(CmpInst);}
   RetTy visitMallocInst(MallocInst &I)              { DELEGATE(AllocationInst);}
   RetTy visitAllocaInst(AllocaInst &I)              { DELEGATE(AllocationInst);}
   RetTy visitFreeInst(FreeInst     &I)              { DELEGATE(Instruction); }
@@ -192,6 +194,7 @@
   RetTy visitTerminatorInst(TerminatorInst &I) { DELEGATE(Instruction); }
   RetTy visitBinaryOperator(BinaryOperator &I) { DELEGATE(Instruction); }
   RetTy visitAllocationInst(AllocationInst &I) { DELEGATE(Instruction); }
+  RetTy visitCmpInst(CmpInst &I)               { DELEGATE(Instruction); }
 
   // If the user wants a 'default' case, they can choose to override this
   // function.  If this function is not overloaded in the users subclass, then






More information about the llvm-commits mailing list