stores and free's have sideeffects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170
91177308-0d34-0410-b5e6-
96231b3b80d8
//
inline const BasicBlock *getParent() const { return Parent; }
inline BasicBlock *getParent() { return Parent; }
//
inline const BasicBlock *getParent() const { return Parent; }
inline BasicBlock *getParent() { return Parent; }
- bool hasSideEffects() const { return false; } // Memory & Call insts = true
+ virtual bool hasSideEffects() const { return false; } // Memory & Call insts
// ---------------------------------------------------------------------------
// Subclass classification... getInstType() returns a member of
// ---------------------------------------------------------------------------
// Subclass classification... getInstType() returns a member of
virtual Instruction *clone() const { return new FreeInst(Operands[0]); }
virtual const char *getOpcodeName() const { return "free"; }
virtual Instruction *clone() const { return new FreeInst(Operands[0]); }
virtual const char *getOpcodeName() const { return "free"; }
+
+ virtual bool hasSideEffects() const { return true; }
const string &Name = "");
virtual Instruction *clone() const { return new StoreInst(*this); }
virtual const char *getOpcodeName() const { return "store"; }
const string &Name = "");
virtual Instruction *clone() const { return new StoreInst(*this); }
virtual const char *getOpcodeName() const { return "store"; }
+
+ virtual bool hasSideEffects() const { return true; }