LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::CallInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::CallInst:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CallInst (Value *F, const std::vector< Value * > &Par, const std::string &Name="", Instruction *InsertBefore=0)
 CallInst (Value *F, const std::vector< Value * > &Par, const std::string &Name, BasicBlock *InsertAtEnd)
 CallInst (Value *F, Value *Actual1, Value *Actual2, const std::string &Name="", Instruction *InsertBefore=0)
 CallInst (Value *F, Value *Actual1, Value *Actual2, const std::string &Name, BasicBlock *InsertAtEnd)
 CallInst (Value *F, Value *Actual, const std::string &Name="", Instruction *InsertBefore=0)
 CallInst (Value *F, Value *Actual, const std::string &Name, BasicBlock *InsertAtEnd)
 CallInst (Value *F, const std::string &Name="", Instruction *InsertBefore=0)
 CallInst (Value *F, const std::string &Name, BasicBlock *InsertAtEnd)
virtual CallInstclone () const
bool mayWriteToMemory () const
FunctiongetCalledFunction () const
const ValuegetCalledValue () const
ValuegetCalledValue ()

Static Public Member Functions

static bool classof (const CallInst *)
static bool classof (const Instruction *I)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)

Detailed Description

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

Definition at line 452 of file Instructions.h.


Constructor & Destructor Documentation

CallInst::CallInst Value F,
const std::vector< Value * > &  Par,
const std::string &  Name = "",
Instruction InsertBefore = 0
 

Definition at line 81 of file Instructions.cpp.

References llvm::cl::init().

CallInst::CallInst Value F,
const std::vector< Value * > &  Par,
const std::string &  Name,
BasicBlock InsertAtEnd
 

Definition at line 89 of file Instructions.cpp.

References llvm::cl::init().

CallInst::CallInst Value F,
Value Actual1,
Value Actual2,
const std::string &  Name = "",
Instruction InsertBefore = 0
 

Definition at line 97 of file Instructions.cpp.

References llvm::cl::init().

CallInst::CallInst Value F,
Value Actual1,
Value Actual2,
const std::string &  Name,
BasicBlock InsertAtEnd
 

Definition at line 105 of file Instructions.cpp.

References llvm::cl::init().

CallInst::CallInst Value F,
Value Actual,
const std::string &  Name = "",
Instruction InsertBefore = 0
 

Definition at line 113 of file Instructions.cpp.

References llvm::cl::init().

CallInst::CallInst Value F,
Value Actual,
const std::string &  Name,
BasicBlock InsertAtEnd
 

Definition at line 121 of file Instructions.cpp.

References llvm::cl::init().

CallInst::CallInst Value F,
const std::string &  Name = "",
Instruction InsertBefore = 0
[explicit]
 

Definition at line 129 of file Instructions.cpp.

References llvm::cl::init().

CallInst::CallInst Value F,
const std::string &  Name,
BasicBlock InsertAtEnd
[explicit]
 

Definition at line 137 of file Instructions.cpp.

References llvm::cl::init().


Member Function Documentation

static bool llvm::CallInst::classof const Value V  )  [inline, static]
 

Reimplemented from llvm::Instruction.

Reimplemented in llvm::DbgInfoIntrinsic, llvm::DbgStopPointInst, llvm::MemIntrinsic, llvm::MemCpyInst, llvm::MemMoveInst, and llvm::MemSetInst.

Definition at line 499 of file Instructions.h.

References classof().

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

Methods for support type inquiry through isa, cast, and dyn_cast:.

Reimplemented from llvm::Instruction.

Definition at line 496 of file Instructions.h.

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

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

Reimplemented in llvm::DbgInfoIntrinsic, llvm::DbgStopPointInst, llvm::MemIntrinsic, llvm::MemCpyInst, llvm::MemMoveInst, and llvm::MemSetInst.

Definition at line 495 of file Instructions.h.

Referenced by classof().

CallInst * CallInst::clone  )  const [virtual]
 

clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name

Implements llvm::Instruction.

Definition at line 811 of file Instructions.cpp.

Function* llvm::CallInst::getCalledFunction  )  const [inline]
 

getCalledFunction - Return the function being called by this instruction if it is a direct call. If it is a call through a function pointer, return null.

Definition at line 486 of file Instructions.h.

References llvm::User::Operands.

Referenced by llvm::MemSetInst::classof(), llvm::MemMoveInst::classof(), llvm::MemCpyInst::classof(), llvm::MemIntrinsic::classof(), llvm::DbgStopPointInst::classof(), llvm::DbgInfoIntrinsic::classof(), dyncastIsNan(), llvm::getBBtrace(), isCilk(), isSync(), llvm::DefaultIntrinsicLowering::LowerIntrinsicCall(), and Cilkifier::visitCallInst().

Value* llvm::CallInst::getCalledValue  )  [inline]
 

Definition at line 492 of file Instructions.h.

References llvm::User::Operands.

const Value* llvm::CallInst::getCalledValue  )  const [inline]
 

Definition at line 491 of file Instructions.h.

References llvm::User::Operands.

Referenced by llvm::CallArgsDescriptor::CallArgsDescriptor().

bool llvm::CallInst::mayWriteToMemory  )  const [inline, virtual]
 

mayWriteToMemory - Return true if this instruction may modify memory.

Reimplemented from llvm::Instruction.

Definition at line 481 of file Instructions.h.


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