LLVM  mainline
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
llvm::CallInst Class Reference

CallInst - This class represents a function call, abstracting a target machine's calling convention. More...

#include <Instructions.h>

Inheritance diagram for llvm::CallInst:
Inheritance graph
[legend]
Collaboration diagram for llvm::CallInst:
Collaboration graph
[legend]

List of all members.

Public Types

enum  TailCallKind { TCK_None = 0, TCK_Tail = 1, TCK_MustTail = 2, TCK_NoTail = 3 }

Public Member Functions

 ~CallInst () override
FunctionTypegetFunctionType () const
void mutateFunctionType (FunctionType *FTy)
TailCallKind getTailCallKind () const
bool isTailCall () const
bool isMustTailCall () const
bool isNoTailCall () const
void setTailCall (bool isTC=true)
void setTailCallKind (TailCallKind TCK)
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Provide fast operand accessors.
unsigned getNumArgOperands () const
 getNumArgOperands - Return the number of call arguments.
ValuegetArgOperand (unsigned i) const
 getArgOperand/setArgOperand - Return/set the i-th call argument.
void setArgOperand (unsigned i, Value *v)
op_iterator arg_begin ()
 Return the iterator pointing to the beginning of the argument list.
op_iterator arg_end ()
 Return the iterator pointing to the end of the argument list.
iterator_range< op_iteratorarg_operands ()
 Iteration adapter for range-for loops.
const_op_iterator arg_begin () const
 Return the iterator pointing to the beginning of the argument list.
const_op_iterator arg_end () const
 Return the iterator pointing to the end of the argument list.
iterator_range< const_op_iteratorarg_operands () const
 Iteration adapter for range-for loops.
const UsegetArgOperandUse (unsigned i) const
 Wrappers for getting the Use of a call argument.
UsegetArgOperandUse (unsigned i)
CallingConv::ID getCallingConv () const
 getCallingConv/setCallingConv - Get or set the calling convention of this function call.
void setCallingConv (CallingConv::ID CC)
const AttributeSetgetAttributes () const
 getAttributes - Return the parameter attributes for this call.
void setAttributes (const AttributeSet &Attrs)
 setAttributes - Set the parameter attributes for this call.
void addAttribute (unsigned i, Attribute::AttrKind attr)
 addAttribute - adds the attribute to the list of attributes.
void addAttribute (unsigned i, StringRef Kind, StringRef Value)
 addAttribute - adds the attribute to the list of attributes.
void removeAttribute (unsigned i, Attribute attr)
 removeAttribute - removes the attribute from the list of attributes.
void addDereferenceableAttr (unsigned i, uint64_t Bytes)
 adds the dereferenceable attribute to the list of attributes.
void addDereferenceableOrNullAttr (unsigned i, uint64_t Bytes)
 adds the dereferenceable_or_null attribute to the list of attributes.
bool hasFnAttr (Attribute::AttrKind A) const
 Determine whether this call has the given attribute.
bool hasFnAttr (StringRef A) const
 Determine whether this call has the given attribute.
bool paramHasAttr (unsigned i, Attribute::AttrKind A) const
 Determine whether the call or the callee has the given attributes.
bool dataOperandHasImpliedAttr (unsigned i, Attribute::AttrKind A) const
 Return true if the data operand at index i has the attribute A.
unsigned getParamAlignment (unsigned i) const
 Extract the alignment for a call or parameter (0=unknown).
uint64_t getDereferenceableBytes (unsigned i) const
 Extract the number of dereferenceable bytes for a call or parameter (0=unknown).
uint64_t getDereferenceableOrNullBytes (unsigned i) const
 Extract the number of dereferenceable_or_null bytes for a call or parameter (0=unknown).
bool doesNotAlias (unsigned n) const
 Determine if the parameter or return value is marked with NoAlias attribute.
bool isNoBuiltin () const
 Return true if the call should not be treated as a call to a builtin.
bool isNoInline () const
 Return true if the call should not be inlined.
void setIsNoInline ()
bool canReturnTwice () const
 Return true if the call can return twice.
void setCanReturnTwice ()
bool doesNotAccessMemory () const
 Determine if the call does not access memory.
void setDoesNotAccessMemory ()
bool onlyReadsMemory () const
 Determine if the call does not access or only reads memory.
void setOnlyReadsMemory ()
bool onlyAccessesArgMemory () const
 Determine if the call can access memmory only using pointers based on its arguments.
void setOnlyAccessesArgMemory ()
bool doesNotReturn () const
 Determine if the call cannot return.
void setDoesNotReturn ()
bool doesNotThrow () const
 Determine if the call cannot unwind.
void setDoesNotThrow ()
bool cannotDuplicate () const
 Determine if the call cannot be duplicated.
void setCannotDuplicate ()
bool isConvergent () const
 Determine if the call is convergent.
void setConvergent ()
bool hasStructRetAttr () const
 Determine if the call returns a structure through first pointer argument.
bool hasByValArgument () const
 Determine if any call argument is an aggregate passed by value.
FunctiongetCalledFunction () const
 getCalledFunction - Return the function called, or null if this is an indirect function invocation.
const ValuegetCalledValue () const
 getCalledValue - Get a pointer to the function that is invoked by this instruction.
ValuegetCalledValue ()
void setCalledFunction (Value *Fn)
 setCalledFunction - Set the function called.
void setCalledFunction (FunctionType *FTy, Value *Fn)
bool isInlineAsm () const
 isInlineAsm - Check if this call is an inline asm statement.

Static Public Member Functions

static CallInstCreate (Value *Func, ArrayRef< Value * > Args, ArrayRef< OperandBundleDef > Bundles=None, const Twine &NameStr="", Instruction *InsertBefore=nullptr)
static CallInstCreate (Value *Func, ArrayRef< Value * > Args, const Twine &NameStr, Instruction *InsertBefore=nullptr)
static CallInstCreate (FunctionType *Ty, Value *Func, ArrayRef< Value * > Args, const Twine &NameStr, Instruction *InsertBefore=nullptr)
static CallInstCreate (FunctionType *Ty, Value *Func, ArrayRef< Value * > Args, ArrayRef< OperandBundleDef > Bundles=None, const Twine &NameStr="", Instruction *InsertBefore=nullptr)
static CallInstCreate (Value *Func, ArrayRef< Value * > Args, ArrayRef< OperandBundleDef > Bundles, const Twine &NameStr, BasicBlock *InsertAtEnd)
static CallInstCreate (Value *Func, ArrayRef< Value * > Args, const Twine &NameStr, BasicBlock *InsertAtEnd)
static CallInstCreate (Value *F, const Twine &NameStr="", Instruction *InsertBefore=nullptr)
static CallInstCreate (Value *F, const Twine &NameStr, BasicBlock *InsertAtEnd)
static CallInstCreate (CallInst *CI, ArrayRef< OperandBundleDef > Bundles, Instruction *InsertPt=nullptr)
 Create a clone of CI with a different set of operand bundles and insert it before InsertPt.
static InstructionCreateMalloc (Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize=nullptr, Function *MallocF=nullptr, const Twine &Name="")
 CreateMalloc - Generate the IR for a call to malloc: 1.
static InstructionCreateMalloc (BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize=nullptr, Function *MallocF=nullptr, const Twine &Name="")
 CreateMalloc - Generate the IR for a call to malloc: 1.
static InstructionCreateFree (Value *Source, Instruction *InsertBefore)
 CreateFree - Generate the IR for a call to the builtin free function.
static InstructionCreateFree (Value *Source, BasicBlock *InsertAtEnd)
 CreateFree - Generate the IR for a call to the builtin free function.
static bool classof (const Instruction *I)
static bool classof (const Value *V)
 Methods for support type inquiry through isa, cast, and dyn_cast:

Protected Member Functions

CallInstcloneImpl () const
 Create a copy of this instruction.

Friends

class OperandBundleUser< CallInst, User::op_iterator >
class Instruction

Detailed Description

CallInst - This class represents a function call, abstracting a target machine's calling convention.

This class uses low bit of the SubClassData field to indicate whether or not this is a tail call. The rest of the bits hold the calling convention of the call.

Definition at line 1362 of file Instructions.h.


Member Enumeration Documentation

Enumerator:
TCK_None 
TCK_Tail 
TCK_MustTail 
TCK_NoTail 

Definition at line 1507 of file Instructions.h.


Constructor & Destructor Documentation

CallInst::~CallInst ( ) [override]

Definition at line 227 of file Instructions.cpp.


Member Function Documentation

void CallInst::addAttribute ( unsigned  i,
StringRef  Kind,
StringRef  Value 
)

addAttribute - adds the attribute to the list of attributes.

Definition at line 322 of file Instructions.cpp.

References llvm::AttributeSet::addAttribute(), getAttributes(), llvm::Value::getContext(), and setAttributes().

void CallInst::addDereferenceableAttr ( unsigned  i,
uint64_t  Bytes 
)

adds the dereferenceable attribute to the list of attributes.

Definition at line 337 of file Instructions.cpp.

References llvm::AttributeSet::addDereferenceableAttr(), getAttributes(), llvm::Value::getContext(), and setAttributes().

void CallInst::addDereferenceableOrNullAttr ( unsigned  i,
uint64_t  Bytes 
)

adds the dereferenceable_or_null attribute to the list of attributes.

Definition at line 343 of file Instructions.cpp.

References llvm::AttributeSet::addDereferenceableOrNullAttr(), getAttributes(), llvm::Value::getContext(), and setAttributes().

Return the iterator pointing to the beginning of the argument list.

Definition at line 1552 of file Instructions.h.

References llvm::User::op_begin().

Referenced by arg_operands(), Create(), and HandleCallsInBlockInlinedThroughInvoke().

Return the iterator pointing to the beginning of the argument list.

Definition at line 1566 of file Instructions.h.

References llvm::User::op_begin().

Return the iterator pointing to the end of the argument list.

Definition at line 1555 of file Instructions.h.

References llvm::OperandBundleUser< CallInst, User::op_iterator >::getNumTotalBundleOperands(), and llvm::User::op_end().

Referenced by arg_operands(), Create(), and HandleCallsInBlockInlinedThroughInvoke().

Return the iterator pointing to the end of the argument list.

Definition at line 1569 of file Instructions.h.

References llvm::OperandBundleUser< CallInst, User::op_iterator >::getNumTotalBundleOperands(), and llvm::User::op_end().

Iteration adapter for range-for loops.

Definition at line 1561 of file Instructions.h.

References arg_begin(), arg_end(), and llvm::make_range().

Referenced by getVectorCallCost(), llvm::UpgradeIntrinsicCall(), and llvm::InstCombiner::visitCallInst().

Iteration adapter for range-for loops.

Definition at line 1575 of file Instructions.h.

References arg_begin(), arg_end(), and llvm::make_range().

Determine if the call cannot be duplicated.

Definition at line 1738 of file Instructions.h.

References hasFnAttr().

Referenced by HasNoDuplicateCall().

Return true if the call can return twice.

Definition at line 1693 of file Instructions.h.

References hasFnAttr().

static bool llvm::CallInst::classof ( const Instruction I) [inline, static]

Definition at line 1795 of file Instructions.h.

References llvm::Call, and llvm::Instruction::getOpcode().

Referenced by classof().

static bool llvm::CallInst::classof ( const Value V) [inline, static]
CallInst * CallInst::cloneImpl ( ) const [protected]
static CallInst* llvm::CallInst::Create ( Value Func,
ArrayRef< Value * >  Args,
ArrayRef< OperandBundleDef Bundles = None,
const Twine NameStr = "",
Instruction InsertBefore = nullptr 
) [inline, static]
static CallInst* llvm::CallInst::Create ( Value Func,
ArrayRef< Value * >  Args,
const Twine NameStr,
Instruction InsertBefore = nullptr 
) [inline, static]

Definition at line 1420 of file Instructions.h.

References Create(), llvm::Value::getType(), and llvm::None.

static CallInst* llvm::CallInst::Create ( FunctionType Ty,
Value Func,
ArrayRef< Value * >  Args,
const Twine NameStr,
Instruction InsertBefore = nullptr 
) [inline, static]

Definition at line 1427 of file Instructions.h.

References llvm::None, and llvm::ArrayRef< T >::size().

static CallInst* llvm::CallInst::Create ( FunctionType Ty,
Value Func,
ArrayRef< Value * >  Args,
ArrayRef< OperandBundleDef Bundles = None,
const Twine NameStr = "",
Instruction InsertBefore = nullptr 
) [inline, static]
static CallInst* llvm::CallInst::Create ( Value Func,
ArrayRef< Value * >  Args,
ArrayRef< OperandBundleDef Bundles,
const Twine NameStr,
BasicBlock InsertAtEnd 
) [inline, static]
static CallInst* llvm::CallInst::Create ( Value Func,
ArrayRef< Value * >  Args,
const Twine NameStr,
BasicBlock InsertAtEnd 
) [inline, static]

Definition at line 1454 of file Instructions.h.

References llvm::None, and llvm::ArrayRef< T >::size().

static CallInst* llvm::CallInst::Create ( Value F,
const Twine NameStr = "",
Instruction InsertBefore = nullptr 
) [inline, static]

Definition at line 1459 of file Instructions.h.

static CallInst* llvm::CallInst::Create ( Value F,
const Twine NameStr,
BasicBlock InsertAtEnd 
) [inline, static]

Definition at line 1463 of file Instructions.h.

CallInst * CallInst::Create ( CallInst CI,
ArrayRef< OperandBundleDef Bundles,
Instruction InsertPt = nullptr 
) [static]

Create a clone of CI with a different set of operand bundles and insert it before InsertPt.

The returned call instruction is identical CI in every way except that the operand bundles for the new instruction are set to the operand bundles in Bundles.

Definition at line 302 of file Instructions.cpp.

References arg_begin(), arg_end(), Create(), getAttributes(), getCalledValue(), getCallingConv(), llvm::Instruction::getDebugLoc(), llvm::Value::getName(), getTailCallKind(), setTailCallKind(), and llvm::Value::SubclassOptionalData.

Instruction * CallInst::CreateFree ( Value Source,
Instruction InsertBefore 
) [static]

CreateFree - Generate the IR for a call to the builtin free function.

Definition at line 528 of file Instructions.cpp.

References createFree().

Referenced by LLVMBuildFree(), and PerformHeapAllocSRoA().

Instruction * CallInst::CreateFree ( Value Source,
BasicBlock InsertAtEnd 
) [static]

CreateFree - Generate the IR for a call to the builtin free function.

Note: This function does not add the call to the basic block, that is the responsibility of the caller.

Definition at line 535 of file Instructions.cpp.

References createFree().

Instruction * CallInst::CreateMalloc ( Instruction InsertBefore,
Type IntPtrTy,
Type AllocTy,
Value AllocSize,
Value ArraySize = nullptr,
Function MallocF = nullptr,
const Twine Name = "" 
) [static]

CreateMalloc - Generate the IR for a call to malloc: 1.

Compute the malloc call's argument as the specified type's size, possibly multiplied by the array size if the array size is not constant 1. 2. Call malloc with that argument. 3. Bitcast the result of the malloc call to the specified type.

Definition at line 470 of file Instructions.cpp.

References createMalloc().

Referenced by LLVMBuildArrayMalloc(), LLVMBuildMalloc(), PerformHeapAllocSRoA(), and tryToOptimizeStoreOfMallocToGlobal().

Instruction * CallInst::CreateMalloc ( BasicBlock InsertAtEnd,
Type IntPtrTy,
Type AllocTy,
Value AllocSize,
Value ArraySize = nullptr,
Function MallocF = nullptr,
const Twine Name = "" 
) [static]

CreateMalloc - Generate the IR for a call to malloc: 1.

Compute the malloc call's argument as the specified type's size, possibly multiplied by the array size if the array size is not constant 1. 2. Call malloc with that argument. 3. Bitcast the result of the malloc call to the specified type. Note: This function does not add the bitcast to the basic block, that is the responsibility of the caller.

Definition at line 487 of file Instructions.cpp.

References createMalloc().

Return true if the data operand at index i has the attribute A.

Data operands include call arguments and values used in operand bundles, but does not include the callee operand. This routine dispatches to the underlying AttributeList or the OperandBundleUser as appropriate.

The index i is interpreted as

i == Attribute::ReturnIndex -> the return value i in [1, arg_size + 1) -> argument number (i - 1) i in [arg_size + 1, data_operand_size + 1) -> bundle operand at index (i - 1) in the operand list.

Definition at line 359 of file Instructions.cpp.

References llvm::OperandBundleUser< CallInst, User::op_iterator >::bundleOperandHasAttr(), llvm::OperandBundleUser< CallInst, User::op_iterator >::getBundleOperandsStartIndex(), getNumArgOperands(), llvm::User::getNumOperands(), llvm::OperandBundleUser< CallInst, User::op_iterator >::hasOperandBundles(), and paramHasAttr().

Provide fast operand accessors.

Determine if the call does not access memory.

Definition at line 1701 of file Instructions.h.

References hasFnAttr().

Referenced by onlyReadsMemory().

Determine if the parameter or return value is marked with NoAlias attribute.

Parameters:
nThe parameter to check. 1 is the first parameter, 0 is the return

Definition at line 1675 of file Instructions.h.

References llvm::AttributeSet::hasAttribute(), and llvm::NoAlias.

bool llvm::CallInst::doesNotReturn ( ) const [inline]

Determine if the call cannot return.

Definition at line 1726 of file Instructions.h.

References hasFnAttr().

bool llvm::CallInst::doesNotThrow ( ) const [inline]

Determine if the call cannot unwind.

Definition at line 1732 of file Instructions.h.

References hasFnAttr().

Referenced by HandleCallsInBlockInlinedThroughInvoke(), and llvm::InstCombiner::visitCallInst().

getArgOperand/setArgOperand - Return/set the i-th call argument.

Definition at line 1542 of file Instructions.h.

References getNumArgOperands(), and llvm::User::getOperand().

Referenced by llvm::checkBinaryFloatSignature(), llvm::checkUnaryFloatSignature(), computeArraySize(), computeKnownBitsFromAssume(), llvm::ComputeUsesVAFloatArgument(), detectLog2OfHalf(), llvm::DbgDeclareInst::getAddress(), llvm::MemIntrinsic::getAlignmentCst(), llvm::MemIntrinsic::getAlignmentType(), llvm::VAStartInst::getArgList(), llvm::VAEndInst::getArgList(), llvm::GCRelocateInst::getBasePtrIndex(), llvm::GCRelocateInst::getDerivedPtrIndex(), llvm::VACopyInst::getDest(), llvm::InstrProfIncrementInst::getHash(), llvm::InstrProfValueProfileInst::getHash(), llvm::InstrProfIncrementInst::getIndex(), llvm::InstrProfValueProfileInst::getIndex(), llvm::MemIntrinsic::getLength(), getLocForWrite(), llvm::InstrProfIncrementInst::getName(), llvm::InstrProfValueProfileInst::getName(), llvm::InstrProfIncrementInst::getNumCounters(), llvm::DbgValueInst::getOffset(), llvm::AArch64TTIImpl::getOrCreateResultFromMemIntrinsic(), llvm::MemIntrinsic::getRawDest(), llvm::DbgDeclareInst::getRawExpression(), llvm::DbgValueInst::getRawExpression(), llvm::MemTransferInst::getRawSource(), llvm::DbgDeclareInst::getRawVariable(), llvm::DbgValueInst::getRawVariable(), llvm::VACopyInst::getSrc(), llvm::GCRelocateInst::getStatepoint(), llvm::InstrProfValueProfileInst::getTargetValue(), llvm::AArch64TTIImpl::getTgtMemIntrinsic(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::NVPTXTargetLowering::getTgtMemIntrinsic(), llvm::PPCTargetLowering::getTgtMemIntrinsic(), llvm::DbgValueInst::getValue(), llvm::MemSetInst::getValue(), llvm::InstrProfValueProfileInst::getValueKind(), getVectorIntrinsicCost(), llvm::MemIntrinsic::getVolatileCst(), handleBranchExpect(), handleSwitchExpect(), isDynamicConstant(), isReportingError(), llvm::GCRelocateInst::isTiedToInvoke(), lowerExpectIntrinsic(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::IntrinsicLowering::LowerToByteSwap(), optimizeBinaryDoubleFP(), optimizeUnaryDoubleFP(), PerformHeapAllocSRoA(), ReplaceFPIntrinsicWithCall(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), llvm::FastISel::selectIntrinsicCall(), llvm::FastISel::selectPatchpoint(), SimplifyX86extend(), SimplifyX86immshift(), SimplifyX86insertps(), SimplifyX86vpcom(), SimplifyX86vperm2(), tryToMoveFreeBeforeNullTest(), tryToOptimizeStoreOfMallocToGlobal(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFPTrunc(), llvm::InstCombiner::visitFree(), and WriteInstruction().

Definition at line 1584 of file Instructions.h.

References getNumArgOperands(), and llvm::User::getOperandUse().

Definition at line 1774 of file Instructions.h.

References llvm::User::Op().

uint64_t llvm::CallInst::getDereferenceableBytes ( unsigned  i) const [inline]

Extract the number of dereferenceable bytes for a call or parameter (0=unknown).

Definition at line 1662 of file Instructions.h.

References llvm::AttributeSet::getDereferenceableBytes().

Extract the number of dereferenceable_or_null bytes for a call or parameter (0=unknown).

Definition at line 1668 of file Instructions.h.

References llvm::AttributeSet::getDereferenceableOrNullBytes().

Definition at line 1499 of file Instructions.h.

Referenced by WriteInstruction().

Extract the alignment for a call or parameter (0=unknown).

Definition at line 1656 of file Instructions.h.

References llvm::AttributeSet::getParamAlignment().

Definition at line 1509 of file Instructions.h.

References llvm::Instruction::getSubclassDataFromInstruction().

Referenced by Create(), and llvm::InlineFunction().

Determine if any call argument is an aggregate passed by value.

Definition at line 1760 of file Instructions.h.

References llvm::AttributeSet::hasAttrSomewhere().

Determine whether this call has the given attribute.

Definition at line 1626 of file Instructions.h.

Referenced by cannotDuplicate(), canReturnTwice(), doesNotAccessMemory(), doesNotReturn(), doesNotThrow(), isConvergent(), isNoInline(), isTrigLibCall(), onlyAccessesArgMemory(), and onlyReadsMemory().

bool llvm::CallInst::hasFnAttr ( StringRef  A) const [inline]

Determine whether this call has the given attribute.

Definition at line 1633 of file Instructions.h.

Determine if the call returns a structure through first pointer argument.

Definition at line 1751 of file Instructions.h.

References getNumArgOperands(), and paramHasAttr().

bool llvm::CallInst::isConvergent ( ) const [inline]

Determine if the call is convergent.

Definition at line 1744 of file Instructions.h.

References llvm::MCID::Convergent, and hasFnAttr().

bool llvm::CallInst::isInlineAsm ( ) const [inline]

isInlineAsm - Check if this call is an inline asm statement.

Definition at line 1790 of file Instructions.h.

References llvm::User::Op().

Referenced by needsStatepoint().

bool llvm::CallInst::isNoBuiltin ( ) const [inline]

Return true if the call should not be treated as a call to a builtin.

Definition at line 1681 of file Instructions.h.

Referenced by getVectorCallCost(), and llvm::LibCallSimplifier::optimizeCall().

bool llvm::CallInst::isNoInline ( ) const [inline]

Return true if the call should not be inlined.

Definition at line 1687 of file Instructions.h.

References hasFnAttr().

bool llvm::CallInst::isNoTailCall ( ) const [inline]

Definition at line 1519 of file Instructions.h.

References llvm::Instruction::getSubclassDataFromInstruction(), and TCK_NoTail.

Referenced by WriteInstruction().

bool llvm::CallInst::isTailCall ( ) const [inline]

Determine if the call can access memmory only using pointers based on its arguments.

Definition at line 1718 of file Instructions.h.

References hasFnAttr().

Determine if the call does not access or only reads memory.

Definition at line 1709 of file Instructions.h.

References doesNotAccessMemory(), and hasFnAttr().

Referenced by llvm::checkBinaryFloatSignature(), and llvm::checkUnaryFloatSignature().

Determine whether the call or the callee has the given attributes.

Definition at line 349 of file Instructions.cpp.

References F, getCalledFunction(), getNumArgOperands(), and llvm::AttributeSet::hasAttribute().

Referenced by dataOperandHasImpliedAttr(), and hasStructRetAttr().

removeAttribute - removes the attribute from the list of attributes.

Definition at line 328 of file Instructions.cpp.

References B, getAttributes(), llvm::Value::getContext(), llvm::AttributeSet::removeAttributes(), and setAttributes().

void llvm::CallInst::setArgOperand ( unsigned  i,
Value v 
) [inline]
void llvm::CallInst::setAttributes ( const AttributeSet Attrs) [inline]
void llvm::CallInst::setCalledFunction ( Value Fn) [inline]

setCalledFunction - Set the function called.

Definition at line 1777 of file Instructions.h.

References llvm::Value::getType().

Referenced by llvm::InstCombiner::visitCallInst().

void llvm::CallInst::setCalledFunction ( FunctionType FTy,
Value Fn 
) [inline]

Definition at line 1782 of file Instructions.h.

References llvm::Value::getType(), and llvm::User::Op().

Definition at line 1739 of file Instructions.h.

References addAttribute(), and llvm::AttributeSet::FunctionIndex.

Definition at line 1696 of file Instructions.h.

References addAttribute(), and llvm::AttributeSet::FunctionIndex.

void llvm::CallInst::setConvergent ( ) [inline]

Definition at line 1704 of file Instructions.h.

References addAttribute(), and llvm::AttributeSet::FunctionIndex.

Definition at line 1727 of file Instructions.h.

References addAttribute(), and llvm::AttributeSet::FunctionIndex.

Referenced by INITIALIZE_PASS().

void llvm::CallInst::setIsNoInline ( ) [inline]

Definition at line 1688 of file Instructions.h.

References addAttribute(), and llvm::AttributeSet::FunctionIndex.

Definition at line 1721 of file Instructions.h.

References addAttribute(), and llvm::AttributeSet::FunctionIndex.

Definition at line 1712 of file Instructions.h.

References addAttribute(), and llvm::AttributeSet::FunctionIndex.

void llvm::CallInst::setTailCall ( bool  isTC = true) [inline]

Definition at line 1526 of file Instructions.h.

References llvm::Instruction::getSubclassDataFromInstruction().

Referenced by Create(), and llvm::InlineFunction().


Friends And Related Function Documentation

friend class Instruction [friend]

Definition at line 1408 of file Instructions.h.

friend class OperandBundleUser< CallInst, User::op_iterator > [friend]

Definition at line 1403 of file Instructions.h.


The documentation for this class was generated from the following files: