|
LLVM
3.7.0
|
#include <CallSite.h>
Public Types | |
| typedef IterTy | arg_iterator |
| arg_iterator - The type of iterator to use when looping over actual arguments at this call site. More... | |
Public Member Functions | |
| bool | isCall () const |
| isCall - true if a CallInst is enclosed. More... | |
| bool | isInvoke () const |
| isInvoke - true if a InvokeInst is enclosed. More... | |
| InstrTy * | getInstruction () const |
| InstrTy * | operator-> () const |
| operator bool () const | |
| BBTy * | getParent () const |
| Get the basic block containing the call site. More... | |
| ValTy * | getCalledValue () const |
| getCalledValue - Return the pointer to function that is being called. More... | |
| FunTy * | getCalledFunction () const |
| getCalledFunction - Return the function being called if this is a direct call, otherwise return null (if it's an indirect call). More... | |
| void | setCalledFunction (Value *V) |
| setCalledFunction - Set the callee to the specified value. More... | |
| bool | isCallee (Value::const_user_iterator UI) const |
| isCallee - Determine whether the passed iterator points to the callee operand's Use. More... | |
| bool | isCallee (const Use *U) const |
| Determine whether this Use is the callee operand's Use. More... | |
| ValTy * | getArgument (unsigned ArgNo) const |
| void | setArgument (unsigned ArgNo, Value *newVal) |
| unsigned | getArgumentNo (Value::const_user_iterator I) const |
| Given a value use iterator, returns the argument that corresponds to it. More... | |
| unsigned | getArgumentNo (const Use *U) const |
| Given a use for an argument, get the argument number that corresponds to it. More... | |
| IterTy | arg_begin () const |
| arg_begin/arg_end - Return iterators corresponding to the actual argument list for a call site. More... | |
| IterTy | arg_end () const |
| iterator_range< IterTy > | args () const |
| bool | arg_empty () const |
| unsigned | arg_size () const |
| Type * | getType () const |
| getType - Return the type of the instruction that generated this call site More... | |
| FunTy * | getCaller () const |
| getCaller - Return the caller function for this call site More... | |
| bool | isMustTailCall () const |
| Tests if this call site must be tail call optimized. More... | |
| bool | isTailCall () const |
| Tests if this call site is marked as a tail call. More... | |
| unsigned | getNumArgOperands () const |
| ValTy * | getArgOperand (unsigned i) const |
| bool | isInlineAsm () const |
| CallingConv::ID | getCallingConv () const |
| getCallingConv/setCallingConv - get or set the calling convention of the call. More... | |
| void | setCallingConv (CallingConv::ID CC) |
| FunctionType * | getFunctionType () const |
| void | mutateFunctionType (FunctionType *Ty) const |
| const AttributeSet & | getAttributes () const |
| getAttributes/setAttributes - get or set the parameter attributes of the call. More... | |
| void | setAttributes (const AttributeSet &PAL) |
| bool | hasFnAttr (Attribute::AttrKind A) const |
| Return true if this function has the given attribute. More... | |
| bool | paramHasAttr (unsigned i, Attribute::AttrKind A) const |
| Return true if the call or the callee has the given attribute. More... | |
| uint16_t | getParamAlignment (uint16_t i) const |
| Extract the alignment for a call or parameter (0=unknown). More... | |
| uint64_t | getDereferenceableBytes (uint16_t i) const |
| Extract the number of dereferenceable bytes for a call or parameter (0=unknown). More... | |
| uint64_t | getDereferenceableOrNullBytes (uint16_t i) const |
| Extract the number of dereferenceable_or_null bytes for a call or parameter (0=unknown). More... | |
| bool | isNoBuiltin () const |
| Return true if the call should not be treated as a call to a builtin. More... | |
| bool | isNoInline () const |
| Return true if the call should not be inlined. More... | |
| void | setIsNoInline (bool Value=true) |
| bool | doesNotAccessMemory () const |
| Determine if the call does not access memory. More... | |
| void | setDoesNotAccessMemory () |
| bool | onlyReadsMemory () const |
| Determine if the call does not access or only reads memory. More... | |
| void | setOnlyReadsMemory () |
| bool | onlyAccessesArgMemory () const |
| Determine if the call can access memmory only using pointers based on its arguments. More... | |
| void | setOnlyAccessesArgMemory () |
| bool | doesNotReturn () const |
| Determine if the call cannot return. More... | |
| void | setDoesNotReturn () |
| bool | doesNotThrow () const |
| Determine if the call cannot unwind. More... | |
| void | setDoesNotThrow () |
| bool | doesNotCapture (unsigned ArgNo) const |
| Determine whether this argument is not captured. More... | |
| bool | isByValArgument (unsigned ArgNo) const |
| Determine whether this argument is passed by value. More... | |
| bool | isInAllocaArgument (unsigned ArgNo) const |
| Determine whether this argument is passed in an alloca. More... | |
| bool | isByValOrInAllocaArgument (unsigned ArgNo) const |
| Determine whether this argument is passed by value or in an alloca. More... | |
| bool | hasInAllocaArgument () const |
| Determine if there are is an inalloca argument. More... | |
| bool | doesNotAccessMemory (unsigned ArgNo) const |
| bool | onlyReadsMemory (unsigned ArgNo) const |
| bool | isReturnNonNull () const |
| Return true if the return value is known to be not null. More... | |
| bool | hasArgument (const Value *Arg) const |
| hasArgument - Returns true if this CallSite passes the given Value* as an argument to the called function. More... | |
Protected Member Functions | |
| CallSiteBase () | |
| CallSiteBase (CallTy *CI) | |
| CallSiteBase (InvokeTy *II) | |
| CallSiteBase (ValTy *II) | |
Protected Attributes | |
| PointerIntPair< InstrTy *, 1, bool > | I |
Definition at line 48 of file CallSite.h.
| typedef IterTy llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::arg_iterator |
arg_iterator - The type of iterator to use when looping over actual arguments at this call site.
Definition at line 147 of file CallSite.h.
|
inlineprotected |
Definition at line 52 of file CallSite.h.
|
inlineprotected |
Definition at line 53 of file CallSite.h.
|
inlineprotected |
Definition at line 54 of file CallSite.h.
|
inlineexplicitprotected |
Definition at line 55 of file CallSite.h.
|
inline |
arg_begin/arg_end - Return iterators corresponding to the actual argument list for a call site.
Definition at line 151 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::arg_empty(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::arg_size(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::args(), llvm::AliasAnalysis::callCapturesBefore(), llvm::objcarc::CanAlterRefCount(), determinePointerReadAttrs(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getArgument(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getArgumentNo(), llvm::GCRelocateOperands::getBasePtr(), llvm::objcarc::GetCallSiteClass(), llvm::GCRelocateOperands::getDerivedPtr(), llvm::AliasAnalysis::getModRefInfo(), HandleCallsInBlockInlinedThroughInvoke(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::hasArgument(), llvm::InlineFunction(), llvm::FastISel::lowerCall(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::IntrinsicLowering::LowerIntrinsicCall(), makeStatepointExplicitImpl(), llvm::PointerMayBeCaptured(), ReplaceFPIntrinsicWithCall(), ReplaceWithStatepoint(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setArgument(), llvm::SimplifyInstruction(), and llvm::Interpreter::visitCallSite().
|
inline |
Definition at line 161 of file CallSite.h.
|
inline |
Definition at line 157 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::arg_empty(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::arg_size(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::args(), llvm::AliasAnalysis::callCapturesBefore(), llvm::objcarc::CanAlterRefCount(), determinePointerReadAttrs(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getArgument(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getArgumentNo(), llvm::objcarc::GetCallSiteClass(), llvm::AliasAnalysis::getModRefInfo(), HandleCallsInBlockInlinedThroughInvoke(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::hasArgument(), llvm::FastISel::lowerCall(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::IntrinsicLowering::LowerIntrinsicCall(), makeStatepointExplicitImpl(), llvm::PointerMayBeCaptured(), ReplaceFPIntrinsicWithCall(), ReplaceWithStatepoint(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setArgument(), llvm::SimplifyInstruction(), and llvm::Interpreter::visitCallSite().
|
inline |
Definition at line 162 of file CallSite.h.
Referenced by addStackMapLiveVars(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::hasInAllocaArgument(), llvm::InlineFunction(), llvm::FastISel::lowerCall(), llvm::SelectionDAGBuilder::LowerCallTo(), matchOutlinedFinallyCall(), OptimizeAwayTrappingUsesOfValue(), and llvm::Interpreter::visitCallSite().
|
inline |
Definition at line 158 of file CallSite.h.
|
inline |
Determine if the call does not access memory.
Definition at line 278 of file CallSite.h.
Referenced by llvm::AliasAnalysis::callCapturesBefore(), determinePointerReadAttrs(), and llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::doesNotAccessMemory().
|
inline |
Definition at line 348 of file CallSite.h.
|
inline |
Determine whether this argument is not captured.
Definition at line 322 of file CallSite.h.
Referenced by llvm::AliasAnalysis::callCapturesBefore(), determinePointerReadAttrs(), and llvm::PointerMayBeCaptured().
|
inline |
Determine if the call cannot return.
Definition at line 303 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::doesNotReturn(), llvm::FastISel::CallLoweringInfo::setCallee(), and llvm::TargetLowering::CallLoweringInfo::setCallee().
|
inline |
Determine if the call cannot unwind.
Definition at line 311 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::doesNotThrow(), llvm::InlineFunction(), and llvm::PointerMayBeCaptured().
|
inline |
Definition at line 200 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getArgOperand().
|
inline |
Definition at line 119 of file CallSite.h.
Referenced by AddAlignmentAssumptions(), addStackMapLiveVars(), AllCallersPassInValidPointerForArgument(), llvm::GCRelocateOperands::getBasePtrIndex(), llvm::GCRelocateOperands::getDerivedPtrIndex(), llvm::MemoryLocation::getForArgument(), llvm::GCRelocateOperands::getStatepoint(), getStoredPointerOperand(), llvm::GCRelocateOperands::isTiedToInvoke(), llvm::PatternMatch::Argument_match< Opnd_t >::match(), matchOutlinedFinallyCall(), OptimizeAwayTrappingUsesOfValue(), llvm::TargetLowering::ParseConstraints(), llvm::ObjectSizeOffsetVisitor::visitCallSite(), and llvm::ObjectSizeOffsetEvaluator::visitCallSite().
|
inline |
Given a value use iterator, returns the argument that corresponds to it.
Iterator must actually correspond to an argument.
Definition at line 132 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getArgumentNo().
|
inline |
Given a use for an argument, get the argument number that corresponds to it.
Definition at line 138 of file CallSite.h.
|
inline |
getAttributes/setAttributes - get or set the parameter attributes of the call.
Definition at line 229 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getAttributes(), LLVMAddInstrAttribute(), LLVMRemoveInstrAttribute(), LLVMSetInstrParamAlignment(), RemoveNestAttribute(), and ReplaceWithStatepoint().
|
inline |
getCalledFunction - Return the function being called if this is a direct call, otherwise return null (if it's an indirect call).
Definition at line 99 of file CallSite.h.
Referenced by AddAliasScopeMetadata(), AddAlignmentAssumptions(), llvm::CallGraphNode::addCalledFunction(), llvm::CodeMetrics::analyzeBasicBlock(), CloneAliasScopeMetadata(), determinePointerReadAttrs(), getCalledFunction(), llvm::MemoryLocation::getForArgument(), llvm::InlineCostAnalysis::getInlineCost(), llvm::Inliner::getInlineThreshold(), llvm::AliasAnalysis::getModRefBehavior(), llvm::LibCallAliasAnalysis::getModRefInfo(), llvm::NVPTXTargetLowering::getPrototype(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getUnrollingPreferences(), InlineCallIfPossible(), llvm::InlineFunction(), llvm::InlineCostAnalysis::isInlineViable(), llvm::isStatepoint(), makeStatepointExplicitImpl(), llvm::Inliner::runOnSCC(), UpdateCallGraphAfterInlining(), and llvm::Interpreter::visitCallSite().
|
inline |
getCalledValue - Return the pointer to function that is being called.
Definition at line 91 of file CallSite.h.
Referenced by llvm::CodeMetrics::analyzeBasicBlock(), analyzeParsePointLiveness(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getCalledFunction(), llvm::FastISel::lowerCall(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), OptimizeAwayTrappingUsesOfValue(), llvm::TargetLowering::ParseConstraints(), PrepareCall(), ReplaceWithStatepoint(), llvm::FunctionLoweringInfo::set(), llvm::FastISel::CallLoweringInfo::setCallee(), llvm::SimplifyInstruction(), and llvm::Interpreter::visitCallSite().
|
inline |
getCaller - Return the caller function for this call site
Definition at line 170 of file CallSite.h.
Referenced by AddAlignmentAssumptions(), emitAnalysis(), llvm::InlineCostAnalysis::getInlineCost(), llvm::Inliner::getInlineThreshold(), InlineCallIfPossible(), and llvm::Inliner::runOnSCC().
|
inline |
getCallingConv/setCallingConv - get or set the calling convention of the call.
Definition at line 212 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getCallingConv(), llvm::SelectionDAGBuilder::lowerCallOperands(), llvm::FastISel::CallLoweringInfo::setCallee(), and llvm::TargetLowering::CallLoweringInfo::setCallee().
|
inline |
Extract the number of dereferenceable bytes for a call or parameter (0=unknown).
Definition at line 253 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getDereferenceableBytes(), and llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isReturnNonNull().
|
inline |
Extract the number of dereferenceable_or_null bytes for a call or parameter (0=unknown).
Definition at line 259 of file CallSite.h.
|
inline |
Definition at line 219 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getFunctionType().
|
inline |
Definition at line 82 of file CallSite.h.
Referenced by AddAlignmentAssumptions(), llvm::CallGraphNode::addCalledFunction(), analyzeParsePointLiveness(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::arg_begin(), llvm::AliasAnalysis::callCapturesBefore(), CloneAliasScopeMetadata(), doesNotRequireEntrySafepointBefore(), emitAnalysis(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getArgumentNo(), getCalledFunction(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getCalledValue(), llvm::MemoryLocation::getForArgument(), llvm::MemoryDependenceAnalysis::getNonLocalCallDependency(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getParent(), llvm::NVPTXTargetLowering::getPrototype(), llvm::InlineFunction(), insertParsePoints(), insertUseHolderAfter(), isAssumeIntrinsic(), llvm::isGCRelocate(), llvm::isGCResult(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isInlineAsm(), llvm::InlineCostAnalysis::isInlineViable(), llvm::isInTailCallPosition(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isInvoke(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isMustTailCall(), llvm::isStatepoint(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isTailCall(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::TargetLowering::LowerCallTo(), lowerStatepointMetaArgs(), makeStatepointExplicit(), makeStatepointExplicitImpl(), needsStatepoint(), llvm::CallSite::operator<(), PrintModRefResults(), recomputeLiveInValues(), rematerializeLiveValues(), llvm::CallGraphNode::removeCallEdgeFor(), llvm::CallGraphNode::replaceCallEdge(), ReplaceWithStatepoint(), llvm::Inliner::runOnSCC(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setArgument(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setCalledFunction(), llvm::FastISel::CallLoweringInfo::setCallee(), llvm::TargetLowering::CallLoweringInfo::setCallee(), UpdateCallGraphAfterInlining(), llvm::Interpreter::visitCallSite(), llvm::ObjectSizeOffsetVisitor::visitCallSite(), llvm::InstVisitor< ObjectSizeOffsetVisitor, SizeOffsetType >::visitCallSite(), llvm::ObjectSizeOffsetEvaluator::visitCallSite(), and llvm::PtrUseVisitor< SliceBuilder >::visitCallSite().
|
inline |
Definition at line 196 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getNumArgOperands().
|
inline |
Extract the alignment for a call or parameter (0=unknown).
Definition at line 247 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getParamAlignment(), llvm::FastISel::ArgListEntry::setAttributes(), and llvm::TargetLowering::ArgListEntry::setAttributes().
|
inline |
Get the basic block containing the call site.
Definition at line 87 of file CallSite.h.
|
inline |
getType - Return the type of the instruction that generated this call site
Definition at line 166 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isReturnNonNull(), llvm::TargetLowering::ParseConstraints(), and ReplaceWithStatepoint().
|
inline |
hasArgument - Returns true if this CallSite passes the given Value* as an argument to the called function.
Definition at line 372 of file CallSite.h.
|
inline |
Return true if this function has the given attribute.
Definition at line 237 of file CallSite.h.
Referenced by llvm::Function::callsFunctionThatReturnsTwice(), llvm::InlineCostAnalysis::getInlineCost(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::hasFnAttr(), and hasReturnsTwiceAttr().
|
inline |
Determine if there are is an inalloca argument.
Only the last argument can have the inalloca attribute.
Definition at line 344 of file CallSite.h.
|
inline |
Determine whether this argument is passed by value.
Definition at line 327 of file CallSite.h.
Referenced by llvm::AliasAnalysis::callCapturesBefore(), and llvm::InlineFunction().
|
inline |
Determine whether this argument is passed by value or in an alloca.
Definition at line 337 of file CallSite.h.
Referenced by isSafeToEliminateVarargsCast().
|
inline |
isCall - true if a CallInst is enclosed.
Note that !isCall() does not mean it is an InvokeInst enclosed, it also could signify a NULL Instruction pointer.
Definition at line 76 of file CallSite.h.
Referenced by insertUseHolderAfter(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isInlineAsm(), llvm::InlineCostAnalysis::isInlineViable(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isMustTailCall(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isTailCall(), makeStatepointExplicitImpl(), llvm::PatternMatch::Argument_match< Opnd_t >::match(), needsStatepoint(), rematerializeLiveValues(), ReplaceWithStatepoint(), and llvm::InstVisitor< ObjectSizeOffsetVisitor, SizeOffsetType >::visitCallSite().
|
inline |
isCallee - Determine whether the passed iterator points to the callee operand's Use.
Definition at line 112 of file CallSite.h.
Referenced by AddressIsTaken(), and llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isCallee().
|
inline |
Determine whether this Use is the callee operand's Use.
Definition at line 117 of file CallSite.h.
|
inline |
Determine whether this argument is passed in an alloca.
Definition at line 332 of file CallSite.h.
|
inline |
Definition at line 204 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isInlineAsm().
|
inline |
isInvoke - true if a InvokeInst is enclosed.
Definition at line 80 of file CallSite.h.
Referenced by lowerStatepointMetaArgs(), rematerializeLiveValues(), ReplaceWithStatepoint(), and llvm::InstVisitor< ObjectSizeOffsetVisitor, SizeOffsetType >::visitCallSite().
|
inline |
Tests if this call site must be tail call optimized.
Only a CallInst can be tail call optimized.
Definition at line 174 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isMustTailCall().
|
inline |
Return true if the call should not be treated as a call to a builtin.
Definition at line 265 of file CallSite.h.
Referenced by getCalledFunction(), and llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isNoBuiltin().
|
inline |
Return true if the call should not be inlined.
Definition at line 270 of file CallSite.h.
Referenced by llvm::CodeMetrics::analyzeBasicBlock(), llvm::InlineCostAnalysis::getInlineCost(), and llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isNoInline().
|
inline |
Return true if the return value is known to be not null.
This may be because it has the nonnull attribute, or because at least one byte is dereferenceable and the pointer is in addrspace(0).
Definition at line 360 of file CallSite.h.
|
inline |
Tests if this call site is marked as a tail call.
Definition at line 179 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isTailCall().
|
inline |
Definition at line 223 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::mutateFunctionType().
|
inline |
Determine if the call can access memmory only using pointers based on its arguments.
Definition at line 295 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::onlyAccessesArgMemory().
|
inline |
Determine if the call does not access or only reads memory.
Definition at line 286 of file CallSite.h.
Referenced by llvm::AliasAnalysis::callCapturesBefore(), determinePointerReadAttrs(), llvm::objcarc::GetCallSiteClass(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::onlyReadsMemory(), and llvm::PointerMayBeCaptured().
|
inline |
Definition at line 352 of file CallSite.h.
|
inlineexplicit |
Definition at line 84 of file CallSite.h.
|
inline |
Definition at line 83 of file CallSite.h.
|
inline |
Return true if the call or the callee has the given attribute.
Definition at line 242 of file CallSite.h.
Referenced by computeBytesPoppedByCallee(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::doesNotAccessMemory(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::doesNotCapture(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::hasInAllocaArgument(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isByValArgument(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isByValOrInAllocaArgument(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isInAllocaArgument(), llvm::isNoAliasCall(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isReturnNonNull(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::onlyReadsMemory(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::paramHasAttr(), llvm::FastISel::ArgListEntry::setAttributes(), llvm::TargetLowering::ArgListEntry::setAttributes(), llvm::FastISel::CallLoweringInfo::setCallee(), and llvm::TargetLowering::CallLoweringInfo::setCallee().
|
inline |
Definition at line 124 of file CallSite.h.
Referenced by OptimizeAwayTrappingUsesOfValue().
|
inline |
|
inline |
setCalledFunction - Set the callee to the specified value.
Definition at line 105 of file CallSite.h.
Referenced by OptimizeAwayTrappingUsesOfValue().
|
inline |
Definition at line 215 of file CallSite.h.
Referenced by ChangeCalleesToFastCall(), and llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setCallingConv().
|
inline |
Definition at line 281 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setDoesNotAccessMemory().
|
inline |
Definition at line 306 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setDoesNotReturn().
|
inline |
Definition at line 314 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setDoesNotThrow().
|
inline |
Definition at line 273 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setIsNoInline().
|
inline |
Definition at line 298 of file CallSite.h.
|
inline |
Definition at line 289 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::setOnlyReadsMemory().
|
protected |
Definition at line 50 of file CallSite.h.
Referenced by llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getInstruction(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isCall(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::isInvoke(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::operator bool(), llvm::CallSite::operator!=(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::operator->(), and llvm::CallSite::operator==().
1.8.6