Lines Matching defs:CallInst

36     ? cast<CallInst>(II)->op_end() - 1 // Skip Callee
260 // CallInst Implementation
263 CallInst::~CallInst() {
266 void CallInst::init(Value *Func, ArrayRef<Value *> Args, const Twine &NameStr) {
288 void CallInst::init(Value *Func, const Twine &NameStr) {
302 CallInst::CallInst(Value *Func, const Twine &Name,
307 OperandTraits<CallInst>::op_end(this) - 1,
312 CallInst::CallInst(Value *Func, const Twine &Name,
317 OperandTraits<CallInst>::op_end(this) - 1,
322 CallInst::CallInst(const CallInst &CI)
324 OperandTraits<CallInst>::op_end(this) - CI.getNumOperands(),
334 void CallInst::addAttribute(unsigned i, Attribute::AttrKind attr) {
340 void CallInst::removeAttribute(unsigned i, Attribute attr) {
349 bool CallInst::hasFnAttrImpl(Attribute::AttrKind A) const {
357 bool CallInst::paramHasAttr(unsigned i, Attribute::AttrKind A) const {
423 CallInst *MCall = NULL;
426 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall", InsertBefore);
432 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall");
456 Instruction *CallInst::CreateMalloc(Instruction *InsertBefore,
473 Instruction *CallInst::CreateMalloc(BasicBlock *InsertAtEnd,
495 CallInst* Result = NULL;
500 Result = CallInst::Create(FreeFunc, PtrCast, "", InsertBefore);
504 Result = CallInst::Create(FreeFunc, PtrCast, "");
514 Instruction * CallInst::CreateFree(Value* Source, Instruction *InsertBefore) {
521 Instruction* CallInst::CreateFree(Value* Source, BasicBlock *InsertAtEnd) {
523 assert(FreeCall && "CreateFree did not create a CallInst");
3624 CallInst *CallInst::clone_impl() const {
3625 return new(getNumOperands()) CallInst(*this);