llvm.org GIT mirror llvm / 0bd9d3a
Convert CallInst and InvokeInst APIs to use ArrayRef. For the LLVM examples. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135266 91177308-0d34-0410-b5e6-96231b3b80d8 Francois Pichet 8 years ago
6 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
9898 };
9999
100100 CallInst *memset_call = builder->
101 CreateCall(memset_func, memset_params, array_endof(memset_params));
101 CreateCall(memset_func, memset_params);
102102 memset_call->setTailCall(false);
103103 }
104104
170170
171171 CallInst *puts_call =
172172 CallInst::Create(puts_func,
173 puts_params, array_endof(puts_params),
173 puts_params,
174174 "", aberrorbb);
175175 puts_call->setTailCall(false);
176176 }
228228 };
229229 CallInst *putchar_call = builder->
230230 CreateCall(putchar_func,
231 putchar_params, array_endof(putchar_params));
231 putchar_params);
232232 putchar_call->setTailCall(false);
233233 }
234234 break;
394394 if (ArgsV.back() == 0) return 0;
395395 }
396396
397 return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
397 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
398398 }
399399
400400 Function *PrototypeAST::Codegen() {
402402 if (ArgsV.back() == 0) return 0;
403403 }
404404
405 return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
405 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
406406 }
407407
408408 Function *PrototypeAST::Codegen() {
503503 if (ArgsV.back() == 0) return 0;
504504 }
505505
506 return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
506 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
507507 }
508508
509509 Value *IfExprAST::Codegen() {
588588 assert(F && "binary operator not found!");
589589
590590 Value *Ops[] = { L, R };
591 return Builder.CreateCall(F, Ops, Ops+2, "binop");
591 return Builder.CreateCall(F, Ops, "binop");
592592 }
593593
594594 Value *CallExprAST::Codegen() {
607607 if (ArgsV.back() == 0) return 0;
608608 }
609609
610 return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
610 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
611611 }
612612
613613 Value *IfExprAST::Codegen() {
684684 assert(F && "binary operator not found!");
685685
686686 Value *Ops[] = { L, R };
687 return Builder.CreateCall(F, Ops, Ops+2, "binop");
687 return Builder.CreateCall(F, Ops, "binop");
688688 }
689689
690690 Value *CallExprAST::Codegen() {
703703 if (ArgsV.back() == 0) return 0;
704704 }
705705
706 return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
706 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
707707 }
708708
709709 Value *IfExprAST::Codegen() {