Changes in directory llvm/include/llvm:

Instruction.h updated: 1.80 -> 1.81
Instructions.h updated: 1.60 -> 1.61
---
Log message:

make mayWriteToMemory a non-virtual function


---
Diffs of the changes:  (+2 -18)

 Instruction.h  |    2 +-
 Instructions.h |   18 +-----------------
 2 files changed, 2 insertions(+), 18 deletions(-)


Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.80 
llvm/include/llvm/Instruction.h:1.81
--- llvm/include/llvm/Instruction.h:1.80        Tue Feb 13 01:54:42 2007
+++ llvm/include/llvm/Instruction.h     Thu Feb 15 17:15:00 2007
@@ -54,7 +54,7 @@
   
   /// mayWriteToMemory - Return true if this instruction may modify memory.
   ///
-  virtual bool mayWriteToMemory() const { return false; }
+  bool mayWriteToMemory() const;
 
   /// clone() - Create a copy of 'this' instruction that is identical in all
   /// ways except the following:


Index: llvm/include/llvm/Instructions.h
diff -u llvm/include/llvm/Instructions.h:1.60 
llvm/include/llvm/Instructions.h:1.61
--- llvm/include/llvm/Instructions.h:1.60       Wed Feb 14 21:39:17 2007
+++ llvm/include/llvm/Instructions.h    Thu Feb 15 17:15:00 2007
@@ -189,8 +189,6 @@
 
   virtual FreeInst *clone() const;
 
-  virtual bool mayWriteToMemory() const { return true; }
-
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const FreeInst *) { return true; }
   static inline bool classof(const Instruction *I) {
@@ -245,8 +243,6 @@
 
   virtual LoadInst *clone() const;
 
-  virtual bool mayWriteToMemory() const { return isVolatile(); }
-
   Value *getPointerOperand() { return getOperand(0); }
   const Value *getPointerOperand() const { return getOperand(0); }
   static unsigned getPointerOperandIndex() { return 0U; }
@@ -310,8 +306,6 @@
 
   virtual StoreInst *clone() const;
 
-  virtual bool mayWriteToMemory() const { return true; }
-
   Value *getPointerOperand() { return getOperand(1); }
   const Value *getPointerOperand() const { return getOperand(1); }
   static unsigned getPointerOperandIndex() { return 1U; }
@@ -722,8 +716,7 @@
   ~CallInst();
 
   virtual CallInst *clone() const;
-  bool mayWriteToMemory() const { return true; }
-
+  
   bool isTailCall() const           { return SubclassData & 1; }
   void setTailCall(bool isTailCall = true) {
     SubclassData = (SubclassData & ~1) | unsigned(isTailCall);
@@ -845,7 +838,6 @@
   }
 
   virtual VAArgInst *clone() const;
-  bool mayWriteToMemory() const { return true; }
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const VAArgInst *) { return true; }
@@ -888,8 +880,6 @@
 
   virtual ExtractElementInst *clone() const;
 
-  virtual bool mayWriteToMemory() const { return false; }
-
   /// Transparently provide more efficient getOperand methods.
   Value *getOperand(unsigned i) const {
     assert(i < 2 && "getOperand() out of range!");
@@ -938,8 +928,6 @@
 
   virtual InsertElementInst *clone() const;
 
-  virtual bool mayWriteToMemory() const { return false; }
-
   /// getType - Overload to return most specific vector type.
   ///
   inline const VectorType *getType() const {
@@ -990,8 +978,6 @@
 
   virtual ShuffleVectorInst *clone() const;
 
-  virtual bool mayWriteToMemory() const { return false; }
-
   /// getType - Overload to return most specific vector type.
   ///
   inline const VectorType *getType() const {
@@ -1499,8 +1485,6 @@
 
   virtual InvokeInst *clone() const;
 
-  bool mayWriteToMemory() const { return true; }
-
   /// getCallingConv/setCallingConv - Get or set the calling convention of this
   /// function call.
   unsigned getCallingConv() const { return SubclassData; }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to