LLVM API Documentation
#include <Instructions.h>
Inheritance diagram for llvm::CallInst:
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) | |
~CallInst () | |
virtual CallInst * | clone () const |
bool | mayWriteToMemory () const |
bool | isTailCall () const |
void | setTailCall (bool isTailCall=true) |
unsigned | getCallingConv () const |
void | setCallingConv (unsigned CC) |
Function * | getCalledFunction () const |
const Value * | getCalledValue () const |
Value * | getCalledValue () |
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) |
Definition at line 513 of file Instructions.h.
CallInst::CallInst | ( | Value * | F, | |
const std::vector< Value * > & | Par, | |||
const std::string & | Name = "" , |
|||
Instruction * | InsertBefore = 0 | |||
) |
CallInst::CallInst | ( | Value * | F, | |
const std::vector< Value * > & | Par, | |||
const std::string & | Name, | |||
BasicBlock * | InsertAtEnd | |||
) |
CallInst::CallInst | ( | Value * | F, | |
Value * | Actual1, | |||
Value * | Actual2, | |||
const std::string & | Name = "" , |
|||
Instruction * | InsertBefore = 0 | |||
) |
CallInst::CallInst | ( | Value * | F, | |
Value * | Actual1, | |||
Value * | Actual2, | |||
const std::string & | Name, | |||
BasicBlock * | InsertAtEnd | |||
) |
CallInst::CallInst | ( | Value * | F, | |
Value * | Actual, | |||
const std::string & | Name = "" , |
|||
Instruction * | InsertBefore = 0 | |||
) |
CallInst::CallInst | ( | Value * | F, | |
Value * | Actual, | |||
const std::string & | Name, | |||
BasicBlock * | InsertAtEnd | |||
) |
CallInst::CallInst | ( | Value * | F, | |
const std::string & | Name = "" , |
|||
Instruction * | InsertBefore = 0 | |||
) | [explicit] |
CallInst::CallInst | ( | Value * | F, | |
const std::string & | Name, | |||
BasicBlock * | InsertAtEnd | |||
) | [explicit] |
CallInst::~CallInst | ( | ) |
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 1323 of file Instructions.cpp.
bool llvm::CallInst::mayWriteToMemory | ( | ) | const [inline, virtual] |
mayWriteToMemory - Return true if this instruction may modify memory.
Reimplemented from llvm::Instruction.
Definition at line 543 of file Instructions.h.
bool llvm::CallInst::isTailCall | ( | ) | const [inline] |
Definition at line 545 of file Instructions.h.
References llvm::Value::SubclassData.
Referenced by llvm::UpgradeIntrinsicCall(), and llvm::SelectionDAGLowering::visitCall().
void llvm::CallInst::setTailCall | ( | bool | isTailCall = true |
) | [inline] |
Definition at line 546 of file Instructions.h.
References llvm::Value::SubclassData.
Referenced by llvm::JIT::runFunction(), and llvm::UpgradeIntrinsicCall().
unsigned llvm::CallInst::getCallingConv | ( | ) | const [inline] |
getCallingConv/setCallingConv - Get or set the calling convention of this function call.
Definition at line 552 of file Instructions.h.
References llvm::Value::SubclassData.
Referenced by HandleInlinedInvoke(), llvm::UpgradeIntrinsicCall(), and llvm::SelectionDAGLowering::visitCall().
void llvm::CallInst::setCallingConv | ( | unsigned | CC | ) | [inline] |
Definition at line 553 of file Instructions.h.
References llvm::Value::SubclassData.
Referenced by llvm::UpgradeIntrinsicCall().
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 560 of file Instructions.h.
References llvm::UnaryInstruction::getOperand().
Referenced by llvm::IntrinsicInst::classof(), llvm::IntrinsicInst::getIntrinsicID(), HandleInlinedInvoke(), llvm::DefaultIntrinsicLowering::LowerIntrinsicCall(), llvm::UpgradeIntrinsicCall(), and llvm::SelectionDAGLowering::visitCall().
const Value* llvm::CallInst::getCalledValue | ( | ) | const [inline] |
Definition at line 565 of file Instructions.h.
References llvm::UnaryInstruction::getOperand().
Referenced by HandleInlinedInvoke(), and llvm::SelectionDAGLowering::visitCall().
Value* llvm::CallInst::getCalledValue | ( | ) | [inline] |
static bool llvm::CallInst::classof | ( | const CallInst * | ) | [inline, static] |
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 570 of file Instructions.h.
References llvm::Instruction::Call, and llvm::Instruction::getOpcode().
static bool llvm::CallInst::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::Instruction.
Reimplemented in llvm::IntrinsicInst, llvm::DbgInfoIntrinsic, llvm::DbgStopPointInst, llvm::DbgFuncStartInst, llvm::DbgRegionStartInst, llvm::DbgRegionEndInst, llvm::DbgDeclareInst, llvm::MemIntrinsic, llvm::MemCpyInst, llvm::MemMoveInst, and llvm::MemSetInst.
Definition at line 573 of file Instructions.h.
References llvm::CastInst::classof(), and V.