[opaque pointer types] Push the passing of value types up from Function/GlobalVariabl...
[oota-llvm.git] / include / llvm / IR / CallSite.h
index edbce8eaa97d5c2201e11b5a11006cc20900271c..2841781e8a9e93cbb4970462bf7ae5f29b2cac68 100644 (file)
@@ -197,7 +197,7 @@ public:
     CALLSITE_DELEGATE_GETTER(getNumArgOperands());
   }
 
-  Value *getArgOperand(unsigned i) const { 
+  ValTy *getArgOperand(unsigned i) const { 
     CALLSITE_DELEGATE_GETTER(getArgOperand(i));
   }
 
@@ -290,6 +290,15 @@ public:
     CALLSITE_DELEGATE_SETTER(setOnlyReadsMemory());
   }
 
+  /// @brief Determine if the call can access memmory only using pointers based
+  /// on its arguments.
+  bool onlyAccessesArgMemory() const {
+    CALLSITE_DELEGATE_GETTER(onlyAccessesArgMemory());
+  }
+  void setOnlyAccessesArgMemory() {
+    CALLSITE_DELEGATE_SETTER(setOnlyAccessesArgMemory());
+  }
+
   /// @brief Determine if the call cannot return.
   bool doesNotReturn() const {
     CALLSITE_DELEGATE_GETTER(doesNotReturn());