|
LLVM
10.0.0
|
#include "llvm/IR/CallSite.h"
Public Types | |
| using | arg_iterator = IterTy |
| The type of iterator to use when looping over actual arguments at this call site. More... | |
| using | data_operand_iterator = IterTy |
| Type of iterator to use when looping over data operands at this call site (see below). More... | |
Public Member Functions | |
| bool | isCall () const |
| Return true if a CallInst is enclosed. More... | |
| bool | isInvoke () const |
| Return true if a InvokeInst is enclosed. More... | |
| bool | isCallBr () const |
| Return true if a CallBrInst 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 |
| Return the pointer to function that is being called. More... | |
| FunTy * | getCalledFunction () const |
| Return the function being called if this is a direct call, otherwise return null (if it's an indirect call). More... | |
| bool | isIndirectCall () const |
| Return true if the callsite is an indirect call. More... | |
| void | setCalledFunction (Value *V) |
| Set the callee to the specified value. More... | |
| Intrinsic::ID | getIntrinsicID () const |
| Return the intrinsic ID of the intrinsic called by this CallSite, or Intrinsic::not_intrinsic if the called function is not an intrinsic, or if this CallSite is an indirect call. More... | |
| bool | isCallee (Value::const_user_iterator UI) const |
| 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... | |
| bool | isArgOperand (Value::const_user_iterator UI) const |
| Determine whether the passed iterator points to an argument operand. More... | |
| bool | isArgOperand (const Use *U) const |
| Determine whether the passed use points to an argument operand. More... | |
| bool | isBundleOperand (Value::const_user_iterator UI) const |
| Determine whether the passed iterator points to a bundle operand. More... | |
| bool | isBundleOperand (const Use *U) const |
| Determine whether the passed use points to a bundle operand. More... | |
| bool | isDataOperand (Value::const_user_iterator UI) const |
| Determine whether the passed iterator points to a data operand. More... | |
| bool | isDataOperand (const Use *U) const |
| Determine whether the passed use points to a data operand. 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... | |
| iterator_range< IterTy > | args () const |
| bool | arg_empty () const |
| unsigned | arg_size () const |
| unsigned | getDataOperandNo (Value::const_user_iterator UI) const |
| Given a value use iterator, return the data operand corresponding to it. More... | |
| unsigned | getDataOperandNo (const Use *U) const |
| Given a use for a data operand, get the data operand number that corresponds to it. More... | |
| IterTy | data_operands_begin () const |
| data_operands_begin/data_operands_end - Return iterators iterating over the call / invoke / callbr argument list and bundle operands. More... | |
| IterTy | data_operands_end () const |
| iterator_range< IterTy > | data_ops () const |
| bool | data_operands_empty () const |
| unsigned | data_operands_size () const |
| Type * | getType () const |
| Return the type of the instruction that generated this call site. More... | |
| FunTy * | getCaller () const |
| 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 |
| ValTy * | getReturnedArgOperand () const |
| bool | isInlineAsm () const |
| CallingConv::ID | getCallingConv () const |
| Get the calling convention of the call. More... | |
| void | setCallingConv (CallingConv::ID CC) |
| Set the calling convention of the call. More... | |
| FunctionType * | getFunctionType () const |
| void | mutateFunctionType (FunctionType *Ty) const |
| AttributeList | getAttributes () const |
| Get the parameter attributes of the call. More... | |
| void | setAttributes (AttributeList PAL) |
| Set the parameter attributes of the call. More... | |
| void | addAttribute (unsigned i, Attribute::AttrKind Kind) |
| void | addAttribute (unsigned i, Attribute Attr) |
| void | addParamAttr (unsigned ArgNo, Attribute::AttrKind Kind) |
| void | removeAttribute (unsigned i, Attribute::AttrKind Kind) |
| void | removeAttribute (unsigned i, StringRef Kind) |
| void | removeParamAttr (unsigned ArgNo, Attribute::AttrKind Kind) |
| bool | hasFnAttr (Attribute::AttrKind Kind) const |
| Return true if this function has the given attribute. More... | |
| bool | hasFnAttr (StringRef Kind) const |
| Return true if this function has the given attribute. More... | |
| bool | hasRetAttr (Attribute::AttrKind Kind) const |
| Return true if this return value has the given attribute. More... | |
| bool | paramHasAttr (unsigned ArgNo, Attribute::AttrKind Kind) const |
| Return true if the call or the callee has the given attribute. More... | |
| Attribute | getAttribute (unsigned i, Attribute::AttrKind Kind) const |
| Attribute | getAttribute (unsigned i, StringRef Kind) const |
| bool | dataOperandHasImpliedAttr (unsigned i, Attribute::AttrKind Kind) const |
Return true if the data operand at index i directly or indirectly has the attribute A. More... | |
| unsigned | getRetAlignment () const |
| Extract the alignment of the return value. More... | |
| unsigned | getParamAlignment (unsigned ArgNo) const |
| Extract the alignment for a call or parameter (0=unknown). More... | |
| Type * | getParamByValType (unsigned ArgNo) const |
| Extract the byval type for a call or parameter (nullptr=unknown). More... | |
| uint64_t | getDereferenceableBytes (unsigned i) const |
| Extract the number of dereferenceable bytes for a call or parameter (0=unknown). More... | |
| uint64_t | getDereferenceableOrNullBytes (unsigned i) const |
| Extract the number of dereferenceable_or_null bytes for a call or parameter (0=unknown). More... | |
| bool | returnDoesNotAlias () const |
| Determine if the return value is marked with NoAlias attribute. More... | |
| bool | isNoBuiltin () const |
| Return true if the call should not be treated as a call to a builtin. More... | |
| bool | isStrictFP () const |
| Return true if the call requires strict floating point semantics. 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 | doesNotReadMemory () const |
| Determine if the call does not access or only writes memory. More... | |
| void | setDoesNotReadMemory () |
| bool | onlyAccessesArgMemory () const |
| Determine if the call can access memmory only using pointers based on its arguments. More... | |
| void | setOnlyAccessesArgMemory () |
| bool | onlyAccessesInaccessibleMemory () const |
| Determine if the function may only access memory that is inaccessible from the IR. More... | |
| void | setOnlyAccessesInaccessibleMemory () |
| bool | onlyAccessesInaccessibleMemOrArgMem () const |
| Determine if the function may only access memory that is either inaccessible from the IR or pointed to by its arguments. More... | |
| void | setOnlyAccessesInaccessibleMemOrArgMem () |
| 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 | cannotDuplicate () const |
| Determine if the call can be duplicated. More... | |
| void | setCannotDuplicate () |
| bool | isConvergent () const |
| Determine if the call is convergent. More... | |
| void | setConvergent () |
| void | setNotConvergent () |
| unsigned | getNumOperandBundles () const |
| bool | hasOperandBundles () const |
| unsigned | getBundleOperandsStartIndex () const |
| unsigned | getBundleOperandsEndIndex () const |
| unsigned | getNumTotalBundleOperands () const |
| OperandBundleUse | getOperandBundleAt (unsigned Index) const |
| Optional< OperandBundleUse > | getOperandBundle (StringRef Name) const |
| Optional< OperandBundleUse > | getOperandBundle (uint32_t ID) const |
| unsigned | countOperandBundlesOfType (uint32_t ID) const |
| bool | isBundleOperand (unsigned Idx) const |
| IterTy | arg_begin () const |
| IterTy | arg_end () const |
| void | getOperandBundlesAsDefs (SmallVectorImpl< OperandBundleDef > &Defs) const |
| bool | doesNotCapture (unsigned OpNo) const |
| Determine whether this data operand 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 OpNo) const |
| bool | onlyReadsMemory (unsigned OpNo) const |
| bool | doesNotReadMemory (unsigned OpNo) const |
| bool | isReturnNonNull () const |
| Return true if the return value is known to be not null. More... | |
| bool | hasArgument (const Value *Arg) const |
| Returns true if this CallSite passes the given Value* as an argument to the called function. More... | |
Protected Member Functions | |
| CallSiteBase ()=default | |
| CallSiteBase (CallTy *CI) | |
| CallSiteBase (InvokeTy *II) | |
| CallSiteBase (CallBrTy *CBI) | |
| CallSiteBase (ValTy *II) | |
Protected Attributes | |
| PointerIntPair< InstrTy *, 2, int > | I |
Definition at line 58 of file CallSite.h.
| using llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, CallBrTy, IterTy >::arg_iterator = IterTy |
The type of iterator to use when looping over actual arguments at this call site.
Definition at line 220 of file CallSite.h.
| using llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, CallBrTy, IterTy >::data_operand_iterator = IterTy |
Type of iterator to use when looping over data operands at this call site (see below).
Definition at line 244 of file CallSite.h.
|
protecteddefault |
|
inlineprotected |
Definition at line 63 of file CallSite.h.
|
inlineprotected |
Definition at line 64 of file CallSite.h.
|
inlineprotected |
Definition at line 65 of file CallSite.h.
|
inlineexplicitprotected |
Definition at line 66 of file CallSite.h.
|
inline |
Definition at line 345 of file CallSite.h.
Referenced by setInlineRemark().
|
inline |
Definition at line 349 of file CallSite.h.
|
inline |
Definition at line 353 of file CallSite.h.
Referenced by addNonNullAttribute().
|
inline |
Definition at line 584 of file CallSite.h.
Referenced by addVCallToSet(), llvm::createDeadArgHackingPass(), determinePointerReadAttrs(), findTRECandidate(), llvm::StackSafetyInfo::FunctionInfo::FunctionInfo(), llvm::AbstractCallSite::getCallbackUses(), llvm::objcarc::GetCallSiteClass(), getComparePred(), llvm::Evaluator::getFormalParams(), hasSameArgumentList(), INITIALIZE_PASS(), llvm::InlineFunction(), isCondRelevantToAnyCallArgument(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), llvm::SelectionDAGBuilder::LowerCallTo(), ReplaceFPIntrinsicWithCall(), and llvm::Interpreter::visitCallSite().
|
inline |
Definition at line 225 of file CallSite.h.
Referenced by computeBytesPoppedByCalleeForSRet(), and llvm::DenseMapInfo< VTableSlotSummary >::isEqual().
|
inline |
Definition at line 588 of file CallSite.h.
Referenced by addVCallToSet(), findTRECandidate(), llvm::StackSafetyInfo::FunctionInfo::FunctionInfo(), llvm::objcarc::GetCallSiteClass(), getComparePred(), hasSameArgumentList(), INITIALIZE_PASS(), isCondRelevantToAnyCallArgument(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), llvm::SelectionDAGBuilder::LowerCallTo(), ReplaceFPIntrinsicWithCall(), and llvm::Interpreter::visitCallSite().
|
inline |
Definition at line 226 of file CallSite.h.
Referenced by addStackMapLiveVars(), getComparePred(), hasSameArgumentList(), hasUndefContents(), INITIALIZE_PASS(), llvm::isLegalToPromote(), llvm::SelectionDAGBuilder::LowerCallTo(), moveUp(), OptimizeAwayTrappingUsesOfValue(), processCallSite(), tryToSplitCallSite(), and llvm::Interpreter::visitCallSite().
|
inline |
Definition at line 222 of file CallSite.h.
Referenced by addNonNullAttribute(), llvm::createAMDGPUFunctionInliningPass(), getOffsetFromIndices(), isPredicatedOnPHI(), llvm::CallLowering::lowerCall(), processCallSite(), setConstantInArgument(), and splitCallSite().
|
inline |
Determine if the call can be duplicated.
Definition at line 526 of file CallSite.h.
Referenced by canSplitCallSite().
|
inline |
Definition at line 576 of file CallSite.h.
|
inline |
data_operands_begin/data_operands_end - Return iterators iterating over the call / invoke / callbr argument list and bundle operands.
For invokes, this is the set of instruction operands except the invoke target and the two successor blocks; for calls this is the set of instruction operands except the call target; for callbrs the number of labels to skip must be determined first.
Definition at line 253 of file CallSite.h.
|
inline |
Definition at line 264 of file CallSite.h.
|
inline |
Definition at line 257 of file CallSite.h.
|
inline |
Definition at line 267 of file CallSite.h.
Referenced by determinePointerReadAttrs().
|
inline |
Definition at line 261 of file CallSite.h.
|
inline |
Return true if the data operand at index i directly or indirectly has the attribute A.
Normal call, invoke or callbr arguments have per operand attributes, as specified in the attribute set attached to this instruction, while operand bundle operands may have some attributes implied by the type of its containing operand bundle.
Definition at line 404 of file CallSite.h.
|
inline |
Determine if the call does not access memory.
Definition at line 459 of file CallSite.h.
Referenced by determinePointerReadAttrs(), and getSuccState().
|
inline |
Definition at line 628 of file CallSite.h.
|
inline |
Determine whether this data operand is not captured.
Definition at line 602 of file CallSite.h.
Referenced by canTRE(), determinePointerReadAttrs(), and moveUp().
|
inline |
Determine if the call does not access or only writes memory.
Definition at line 475 of file CallSite.h.
|
inline |
Definition at line 637 of file CallSite.h.
|
inline |
Determine if the call cannot return.
Definition at line 510 of file CallSite.h.
Referenced by instrumentMaskedLoadOrStore(), llvm::FastISel::CallLoweringInfo::setCallee(), and llvm::TargetLowering::CallLoweringInfo::setCallee().
|
inline |
Determine if the call cannot unwind.
Definition at line 518 of file CallSite.h.
Referenced by getSuccState(), and llvm::InlineFunction().
|
inline |
Definition at line 307 of file CallSite.h.
Referenced by AddCalls(), genericValueTraversal(), llvm::IRPosition::getAttrs(), llvm::AbstractCallSite::getCallArgOperand(), llvm::AbstractCallSite::getCalledValue(), INITIALIZE_PASS(), and llvm::InlineFunction().
|
inline |
Definition at line 193 of file CallSite.h.
Referenced by AddAlignmentAssumptions(), addStackMapLiveVars(), allCallersPassValidPointerForArgument(), findMatchingInlineAsmOperand(), hasUndefContents(), llvm::Attributor::identifyDefaultAbstractAttributes(), INITIALIZE_PASS(), llvm::isLegalToPromote(), moveUp(), OptimizeAwayTrappingUsesOfValue(), llvm::TargetLowering::ParseConstraints(), llvm::promoteCall(), 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 206 of file CallSite.h.
Referenced by llvm::AbstractCallSite::AbstractCallSite(), canTRE(), llvm::IRPosition::getAttrs(), and llvm::AbstractCallSite::isCallee().
|
inline |
Given a use for an argument, get the argument number that corresponds to it.
Definition at line 212 of file CallSite.h.
|
inline |
Definition at line 389 of file CallSite.h.
|
inline |
Definition at line 393 of file CallSite.h.
|
inline |
Get the parameter attributes of the call.
Definition at line 337 of file CallSite.h.
Referenced by AddCalls(), llvm::createDeadArgHackingPass(), INITIALIZE_PASS(), llvm::InlineFunction(), processCallSite(), llvm::promoteCall(), RemoveAttribute(), and llvm::IRPosition::removeAttrs().
|
inline |
Definition at line 556 of file CallSite.h.
|
inline |
Definition at line 552 of file CallSite.h.
|
inline |
Return the function being called if this is a direct call, otherwise return null (if it's an indirect call).
Definition at line 111 of file CallSite.h.
Referenced by llvm::AbstractCallSite::AbstractCallSite(), AddAliasScopeMetadata(), AddAlignmentAssumptions(), CloneAliasScopeMetadata(), llvm::CloneAndPruneIntoFromInst(), llvm::createAlwaysInlinerLegacyPass(), llvm::createAMDGPUFunctionInliningPass(), determinePointerReadAttrs(), doCallSiteSplitting(), genericValueTraversal(), llvm::IRPosition::getAssociatedArgument(), llvm::IRPosition::getAttrs(), llvm::AbstractCallSite::getCallbackUses(), getCalledFunction(), llvm::getIntrinsicForCallSite(), llvm::TargetLibraryInfo::getLibFunc(), llvm::NVPTXTargetLowering::getPrototype(), GetSortedValueDataFromCallTargets(), llvm::SystemZTTIImpl::getUnrollingPreferences(), llvm::ARMTTIImpl::getUnrollingPreferences(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getUnrollingPreferences(), hasProfileData(), llvm::Attributor::identifyDefaultAbstractAttributes(), INITIALIZE_PASS(), InlineCallIfPossible(), llvm::InlineFunction(), InstrBreaksNoFree(), InstrBreaksNonConvergent(), isFunctionMallocLike(), IsInterestingCmp(), llvm::isLegalToPromote(), isReturnNonNull(), isWrapperOnlyCall(), llvm::SITargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::SITargetLowering::passSpecialInputs(), llvm::promoteCall(), llvm::CGProfilePass::run(), llvm::InlinerPass::run(), shouldBeDeferred(), shouldInline(), tryToReplaceWithConstant(), UpdateCallGraphAfterInlining(), and llvm::Interpreter::visitCallSite().
|
inline |
Return the pointer to function that is being called.
Definition at line 104 of file CallSite.h.
Referenced by llvm::Evaluator::EvaluateBlock(), findMatchingInlineAsmOperand(), llvm::StackSafetyInfo::FunctionInfo::FunctionInfo(), llvm::AbstractCallSite::getCalledValue(), llvm::Evaluator::getCalleeWithFormalArgs(), getOffsetFromIndices(), getSuccState(), INITIALIZE_PASS(), llvm::InlineFunction(), IsInterestingCmp(), OptimizeAwayTrappingUsesOfValue(), llvm::TargetLowering::ParseConstraints(), prepareDescriptorIndirectCall(), runCVP(), llvm::FunctionLoweringInfo::set(), llvm::FastISel::CallLoweringInfo::setCallee(), versionCallSite(), and llvm::Interpreter::visitCallSite().
|
inline |
Return the caller function for this call site.
Definition at line 275 of file CallSite.h.
Referenced by AddAlignmentAssumptions(), AddCalls(), llvm::createAMDGPUFunctionInliningPass(), hasProfileData(), hasUndefContents(), InlineCallIfPossible(), llvm::ProfileSummaryInfo::isColdCallSite(), isColdCallSite(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), isWrapperOnlyCall(), llvm::SyntheticCountsPropagation::run(), llvm::InlinerPass::run(), shouldInline(), and UpdateCallGraphAfterInlining().
|
inline |
Get the calling convention of the call.
Definition at line 320 of file CallSite.h.
Referenced by AddCalls(), addStackMapLiveVars(), llvm::createDeadArgHackingPass(), getComparePred(), INITIALIZE_PASS(), llvm::isInTailCallPosition(), llvm::CallLowering::lowerCall(), llvm::FastISel::CallLoweringInfo::setCallee(), llvm::TargetLowering::CallLoweringInfo::setCallee(), and shouldGuaranteeTCO().
|
inline |
Given a value use iterator, return the data operand corresponding to it.
Iterator must actually correspond to a data operand.
Definition at line 230 of file CallSite.h.
Referenced by canTRE().
|
inline |
Given a use for a data operand, get the data operand number that corresponds to it.
Definition at line 236 of file CallSite.h.
|
inline |
Extract the number of dereferenceable bytes for a call or parameter (0=unknown).
Definition at line 425 of file CallSite.h.
|
inline |
Extract the number of dereferenceable_or_null bytes for a call or parameter (0=unknown).
Definition at line 431 of file CallSite.h.
|
inline |
Definition at line 328 of file CallSite.h.
Referenced by AddCalls(), getComparePred(), llvm::HexagonTargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::FastISel::lowerCall(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), and llvm::promoteCall().
|
inline |
Definition at line 96 of file CallSite.h.
Referenced by AddAlignmentAssumptions(), AddCalls(), addStackMapLiveVars(), llvm::IRPosition::callsite_argument(), llvm::IRPosition::callsite_function(), llvm::IRPosition::callsite_returned(), canSplitCallSite(), canTRE(), CloneAliasScopeMetadata(), llvm::createArgumentPromotionPass(), llvm::createDeadArgHackingPass(), llvm::createObjCARCOptPass(), createRetBitCast(), doPromotion(), emitSignedInt64(), llvm::Evaluator::EvaluateBlock(), llvm::Interpreter::exitCalled(), findMatchingInlineAsmOperand(), llvm::IRPosition::getAttrs(), getCalledFunction(), GetCtorAndDtorPriority(), llvm::AbstractCallSite::getInstruction(), getMOVL(), getOffsetFromIndices(), llvm::NVPTXTargetLowering::getPrototype(), getRetComponentType(), getSuccState(), hasProfileData(), hasUndefContents(), INITIALIZE_PASS(), llvm::InlineFunction(), instrumentMaskedLoadOrStore(), llvm::ProfileSummaryInfo::isColdCallSite(), isColdCallSite(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), llvm::ProfileSummaryInfo::isHotCallSite(), llvm::isInTailCallPosition(), llvm::isLegalToPromote(), isPredicatedOnPHI(), isValidCandidateForColdCC(), isWrapperOnlyCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::SelectionDAGBuilder::lowerInvokable(), llvm::CallSite::operator<(), processCallSite(), llvm::promoteCall(), PropagateParallelLoopAccessMetadata(), llvm::SyntheticCountsPropagation::run(), llvm::CGProfilePass::run(), llvm::InlinerPass::run(), llvm::TargetLoweringBase::ArgListEntry::setAttributes(), llvm::FastISel::CallLoweringInfo::setCallee(), llvm::TargetLowering::CallLoweringInfo::setCallee(), shouldInline(), shouldSplitOnPHIPredicatedArgument(), shouldSplitOnPredicatedArgument(), splitCallSite(), UpdateCallGraphAfterInlining(), versionCallSite(), llvm::Interpreter::visitCallSite(), llvm::ObjectSizeOffsetVisitor::visitCallSite(), llvm::InstVisitor< ObjectSizeOffsetVisitor, SizeOffsetType >::visitCallSite(), llvm::PtrUseVisitor< SliceBuilder >::visitCallSite(), and llvm::ObjectSizeOffsetEvaluator::visitCallSite().
|
inline |
Return the intrinsic ID of the intrinsic called by this CallSite, or Intrinsic::not_intrinsic if the called function is not an intrinsic, or if this CallSite is an indirect call.
Definition at line 141 of file CallSite.h.
Referenced by setCannotDuplicate().
|
inline |
Definition at line 303 of file CallSite.h.
Referenced by llvm::AbstractCallSite::AbstractCallSite(), AddCalls(), determinePointerReadAttrs(), llvm::IRPosition::getAttrs(), llvm::Evaluator::getFormalParams(), llvm::AbstractCallSite::getNumArgOperands(), llvm::Attributor::identifyDefaultAbstractAttributes(), INITIALIZE_PASS(), and llvm::InlineFunction().
|
inline |
Definition at line 544 of file CallSite.h.
Referenced by llvm::FunctionComparator::cmpMem(), emitSignedInt64(), and llvm::InlineFunction().
|
inline |
Definition at line 560 of file CallSite.h.
|
inline |
Definition at line 568 of file CallSite.h.
Referenced by llvm::InlineFunction(), and processCallSite().
|
inline |
Definition at line 572 of file CallSite.h.
|
inline |
Definition at line 564 of file CallSite.h.
Referenced by llvm::FunctionComparator::cmpMem(), emitSignedInt64(), and llvm::InlineFunction().
|
inline |
Definition at line 595 of file CallSite.h.
Referenced by llvm::createDeadArgHackingPass(), INITIALIZE_PASS(), and llvm::InlineFunction().
|
inline |
Extract the alignment for a call or parameter (0=unknown).
Definition at line 414 of file CallSite.h.
Referenced by hasUndefContents().
|
inline |
Extract the byval type for a call or parameter (nullptr=unknown).
Definition at line 419 of file CallSite.h.
|
inline |
Get the basic block containing the call site.
Definition at line 101 of file CallSite.h.
Referenced by addNoRecurseAttrsTopDown(), llvm::ARMTargetLowering::CCAssignFnForReturn(), getSuccState(), INITIALIZE_PASS(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), llvm::CallLowering::lowerCall(), processCallSite(), and llvm::InlinerPass::run().
|
inline |
Extract the alignment of the return value.
Definition at line 409 of file CallSite.h.
|
inline |
Definition at line 311 of file CallSite.h.
Referenced by computeKnownBitsFromOperator(), and getRangeForAffineARHelper().
|
inline |
Return the type of the instruction that generated this call site.
Definition at line 272 of file CallSite.h.
Referenced by addStackMapLiveVars(), llvm::Interpreter::exitCalled(), findMatchingInlineAsmOperand(), INITIALIZE_PASS(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), llvm::CallLowering::lowerCall(), llvm::FastISel::lowerCall(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), and llvm::TargetLowering::ParseConstraints().
|
inline |
Returns true if this CallSite passes the given Value* as an argument to the called function.
Definition at line 658 of file CallSite.h.
|
inline |
Return true if this function has the given attribute.
Definition at line 370 of file CallSite.h.
Referenced by llvm::createAlwaysInlinerLegacyPass(), llvm::IRPosition::getAttrs(), hasReturnsTwiceAttr(), and isWrapperOnlyCall().
|
inline |
Return true if this function has the given attribute.
Definition at line 375 of file CallSite.h.
|
inline |
Determine if there are is an inalloca argument.
Only the last argument can have the inalloca attribute.
Definition at line 624 of file CallSite.h.
|
inline |
Definition at line 548 of file CallSite.h.
Referenced by llvm::InlineFunction().
|
inline |
Return true if this return value has the given attribute.
Definition at line 380 of file CallSite.h.
Referenced by hasNoAliasAttr(), isFunctionMallocLike(), llvm::FastISel::CallLoweringInfo::setCallee(), and llvm::TargetLowering::CallLoweringInfo::setCallee().
|
inline |
Determine whether the passed iterator points to an argument operand.
Definition at line 158 of file CallSite.h.
Referenced by canTRE(), and llvm::IRPosition::getAttrs().
|
inline |
Determine whether the passed use points to an argument operand.
Definition at line 163 of file CallSite.h.
|
inline |
Determine whether the passed iterator points to a bundle operand.
Definition at line 169 of file CallSite.h.
Referenced by llvm::canReplaceOperandWithVariable(), and llvm::IRPosition::getAttrs().
|
inline |
Determine whether the passed use points to a bundle operand.
Definition at line 174 of file CallSite.h.
|
inline |
Definition at line 580 of file CallSite.h.
|
inline |
Determine whether this argument is passed by value.
Definition at line 607 of file CallSite.h.
Referenced by canTRE(), hasUndefContents(), and llvm::InlineFunction().
|
inline |
Determine whether this argument is passed by value or in an alloca.
Definition at line 617 of file CallSite.h.
|
inline |
Return true if a CallInst is enclosed.
Definition at line 87 of file CallSite.h.
Referenced by AddCalls(), llvm::FunctionComparator::cmpMem(), INITIALIZE_PASS(), and llvm::InlineFunction().
|
inline |
Return true if a CallBrInst is enclosed.
Definition at line 94 of file CallSite.h.
Referenced by llvm::InlineFunction().
|
inline |
Determine whether the passed iterator points to the callee operand's Use.
Definition at line 150 of file CallSite.h.
Referenced by llvm::AbstractCallSite::AbstractCallSite(), findRefEdges(), llvm::IRPosition::getAttrs(), llvm::AbstractCallSite::isCallee(), and isDirectCall().
|
inline |
Determine whether this Use is the callee operand's Use.
Definition at line 155 of file CallSite.h.
|
inline |
Determine if the call is convergent.
Definition at line 534 of file CallSite.h.
Referenced by canSplitCallSite(), findMatchingInlineAsmOperand(), llvm::IRPosition::getAttrs(), and InstrBreaksNonConvergent().
|
inline |
Determine whether the passed iterator points to a data operand.
Definition at line 184 of file CallSite.h.
Referenced by canTRE().
|
inline |
Determine whether the passed use points to a data operand.
Definition at line 189 of file CallSite.h.
|
inline |
Determine whether this argument is passed in an alloca.
Definition at line 612 of file CallSite.h.
|
inline |
Return true if the callsite is an indirect call.
Definition at line 116 of file CallSite.h.
Referenced by llvm::AbstractCallSite::isDirectCall(), llvm::AbstractCallSite::isIndirectCall(), and llvm::CGProfilePass::run().
|
inline |
Definition at line 315 of file CallSite.h.
|
inline |
Return true if a InvokeInst is enclosed.
!I.getInt() may also signify a NULL instruction pointer, so check that.
Definition at line 91 of file CallSite.h.
Referenced by getMOVL(), and llvm::TargetLowering::CallLoweringInfo::setCallee().
|
inline |
Tests if this call site must be tail call optimized.
Only a CallInst can be tail call optimized.
Definition at line 279 of file CallSite.h.
Referenced by buildCallOperands(), llvm::ARMTargetLowering::CCAssignFnForReturn(), doCallSiteSplitting(), getMOVL(), llvm::SITargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), and splitCallSite().
|
inline |
Return true if the call should not be treated as a call to a builtin.
Definition at line 441 of file CallSite.h.
Referenced by getCalledFunction(), and llvm::TargetLibraryInfo::getLibFunc().
|
inline |
Return true if the call should not be inlined.
Definition at line 451 of file CallSite.h.
Referenced by isWrapperOnlyCall().
|
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 645 of file CallSite.h.
|
inline |
Return true if the call requires strict floating point semantics.
Definition at line 446 of file CallSite.h.
|
inline |
Tests if this call site is marked as a tail call.
Definition at line 284 of file CallSite.h.
Referenced by llvm::CallLowering::lowerCall().
|
inline |
Definition at line 332 of file CallSite.h.
Referenced by llvm::promoteCall().
|
inline |
Determine if the call can access memmory only using pointers based on its arguments.
Definition at line 484 of file CallSite.h.
|
inline |
Determine if the function may only access memory that is either inaccessible from the IR or pointed to by its arguments.
Definition at line 502 of file CallSite.h.
|
inline |
Determine if the function may only access memory that is inaccessible from the IR.
Definition at line 493 of file CallSite.h.
|
inline |
Determine if the call does not access or only reads memory.
Definition at line 467 of file CallSite.h.
Referenced by canTRE(), determinePointerReadAttrs(), llvm::objcarc::GetCallSiteClass(), and llvm::getIntrinsicForCallSite().
|
inline |
Definition at line 632 of file CallSite.h.
|
inlineexplicit |
Definition at line 98 of file CallSite.h.
|
inline |
Definition at line 97 of file CallSite.h.
|
inline |
Return true if the call or the callee has the given attribute.
Definition at line 385 of file CallSite.h.
Referenced by computeBytesPoppedByCalleeForSRet(), llvm::IRPosition::getAttrs(), getComparePred(), INITIALIZE_PASS(), isCondRelevantToAnyCallArgument(), and processCallSite().
|
inline |
Definition at line 357 of file CallSite.h.
|
inline |
Definition at line 361 of file CallSite.h.
|
inline |
Definition at line 365 of file CallSite.h.
Referenced by promoteArguments(), and setConstantInArgument().
|
inline |
Determine if the return value is marked with NoAlias attribute.
Definition at line 436 of file CallSite.h.
|
inline |
Definition at line 198 of file CallSite.h.
Referenced by hasUndefContents(), moveUp(), OptimizeAwayTrappingUsesOfValue(), llvm::promoteCall(), and setConstantInArgument().
|
inline |
Set the parameter attributes of the call.
Definition at line 341 of file CallSite.h.
Referenced by AddCalls(), llvm::createDeadArgHackingPass(), doPromotion(), getRetComponentType(), INITIALIZE_PASS(), processCallSite(), llvm::promoteCall(), RemoveAttribute(), and llvm::IRPosition::removeAttrs().
|
inline |
Set the callee to the specified value.
Unlike the function of the same name on CallBase, does not modify the type!
Definition at line 130 of file CallSite.h.
Referenced by INITIALIZE_PASS(), and OptimizeAwayTrappingUsesOfValue().
|
inline |
Set the calling convention of the call.
Definition at line 324 of file CallSite.h.
Referenced by AddCalls(), ChangeCalleesToFastCall(), changeCallSitesToColdCC(), llvm::createDeadArgHackingPass(), doPromotion(), getRetComponentType(), hasProfileData(), and INITIALIZE_PASS().
|
inline |
Definition at line 529 of file CallSite.h.
Referenced by setCannotDuplicate().
|
inline |
Definition at line 537 of file CallSite.h.
|
inline |
Definition at line 462 of file CallSite.h.
|
inline |
Definition at line 478 of file CallSite.h.
|
inline |
Definition at line 513 of file CallSite.h.
|
inline |
Definition at line 521 of file CallSite.h.
|
inline |
Definition at line 454 of file CallSite.h.
|
inline |
Definition at line 540 of file CallSite.h.
|
inline |
Definition at line 487 of file CallSite.h.
|
inline |
Definition at line 505 of file CallSite.h.
|
inline |
Definition at line 496 of file CallSite.h.
|
inline |
Definition at line 470 of file CallSite.h.
|
protected |
Definition at line 60 of file CallSite.h.
Referenced by llvm::DenseMapInfo< CallSite >::getEmptyKey(), llvm::DenseMapInfo< CallSite >::getHashValue(), llvm::DenseMapInfo< CallSite >::getTombstoneKey(), llvm::CallSite::operator!=(), and llvm::CallSite::operator==().
1.8.13