CallSite.h (226633) | CallSite.h (234353) |
---|---|
1//===-- llvm/Support/CallSite.h - Abstract Call & Invoke instrs -*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 223 unchanged lines hidden (view full) --- 232 } 233 void setDoesNotThrow(bool doesNotThrow = true) { 234 CALLSITE_DELEGATE_SETTER(setDoesNotThrow(doesNotThrow)); 235 } 236 237#undef CALLSITE_DELEGATE_GETTER 238#undef CALLSITE_DELEGATE_SETTER 239 | 1//===-- llvm/Support/CallSite.h - Abstract Call & Invoke instrs -*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 223 unchanged lines hidden (view full) --- 232 } 233 void setDoesNotThrow(bool doesNotThrow = true) { 234 CALLSITE_DELEGATE_SETTER(setDoesNotThrow(doesNotThrow)); 235 } 236 237#undef CALLSITE_DELEGATE_GETTER 238#undef CALLSITE_DELEGATE_SETTER 239 |
240 /// @brief Determine whether this argument is not captured. 241 bool doesNotCapture(unsigned ArgNo) const { 242 return paramHasAttr(ArgNo + 1, Attribute::NoCapture); 243 } 244 245 /// @brief Determine whether this argument is passed by value. 246 bool isByValArgument(unsigned ArgNo) const { 247 return paramHasAttr(ArgNo + 1, Attribute::ByVal); 248 } 249 |
|
240 /// hasArgument - Returns true if this CallSite passes the given Value* as an 241 /// argument to the called function. 242 bool hasArgument(const Value *Arg) const { 243 for (arg_iterator AI = this->arg_begin(), E = this->arg_end(); AI != E; 244 ++AI) 245 if (AI->get() == Arg) 246 return true; 247 return false; --- 54 unchanged lines hidden --- | 250 /// hasArgument - Returns true if this CallSite passes the given Value* as an 251 /// argument to the called function. 252 bool hasArgument(const Value *Arg) const { 253 for (arg_iterator AI = this->arg_begin(), E = this->arg_end(); AI != E; 254 ++AI) 255 if (AI->get() == Arg) 256 return true; 257 return false; --- 54 unchanged lines hidden --- |