[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Nov 22 05:08:01 PST 2002


Changes in directory llvm/lib/Target/X86:

InstSelectSimple.cpp updated: 1.36 -> 1.37

---
Log message:

lib/Target/X86/InstSelectSimple.cpp: Add visitCallInst, visitCastInst.


---
Diffs of the changes:

Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.36 llvm/lib/Target/X86/InstSelectSimple.cpp:1.37
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.36	Thu Nov 21 16:49:20 2002
+++ llvm/lib/Target/X86/InstSelectSimple.cpp	Fri Nov 22 05:07:01 2002
@@ -63,8 +63,11 @@
     // Visitation methods for various instructions.  These methods simply emit
     // fixed X86 code for each instruction.
     //
+
+    // Control flow operators
     void visitReturnInst(ReturnInst &RI);
     void visitBranchInst(BranchInst &BI);
+    void visitCallInst(CallInst &I);
 
     // Arithmetic operators
     void visitSimpleBinary(BinaryOperator &B, unsigned OpcodeClass);
@@ -97,6 +100,7 @@
     // Other operators
     void visitShiftInst(ShiftInst &I);
     void visitPHINode(PHINode &I);
+    void visitCastInst(CastInst &I);
 
     void visitInstruction(Instruction &I) {
       std::cerr << "Cannot instruction select: " << I;
@@ -359,6 +363,11 @@
     }
 }
 
+void
+ISel::visitCallInst (CallInst &CI)
+{
+  visitInstruction (CI);
+}
 
 /// visitSimpleBinary - Implement simple binary operators for integral types...
 /// OperatorClass is one of: 0 for Add, 1 for Sub, 2 for And, 3 for Or,
@@ -572,6 +581,11 @@
   }
 }
 
+void
+ISel::visitCastInst (CastInst &CI)
+{
+  visitInstruction (CI);
+}
 
 /// createSimpleX86InstructionSelector - This pass converts an LLVM function
 /// into a machine code representation is a very simple peep-hole fashion.  The





More information about the llvm-commits mailing list