[llvm-commits] [llvm] r106969 - /llvm/trunk/include/llvm/Instructions.h
Chris Lattner
sabre at nondot.org
Sat Jun 26 16:26:37 PDT 2010
Author: lattner
Date: Sat Jun 26 18:26:37 2010
New Revision: 106969
URL: http://llvm.org/viewvc/llvm-project?rev=106969&view=rev
Log:
add some named accessors for StoreInst
Modified:
llvm/trunk/include/llvm/Instructions.h
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=106969&r1=106968&r2=106969&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Sat Jun 26 18:26:37 2010
@@ -235,6 +235,9 @@
void setAlignment(unsigned Align);
+ Value *getValueOperand() { return getOperand(0); }
+ const Value *getValueOperand() const { return getOperand(0); }
+
Value *getPointerOperand() { return getOperand(1); }
const Value *getPointerOperand() const { return getOperand(1); }
static unsigned getPointerOperandIndex() { return 1U; }
More information about the llvm-commits
mailing list