mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Convert CallInst and InvokeInst APIs to use ArrayRef. For the LLVM examples.
llvm-svn: 135266
This commit is contained in:
parent
c826df8fb7
commit
48fc576f97
@ -99,7 +99,7 @@ void BrainF::header(LLVMContext& C) {
|
||||
};
|
||||
|
||||
CallInst *memset_call = builder->
|
||||
CreateCall(memset_func, memset_params, array_endof(memset_params));
|
||||
CreateCall(memset_func, memset_params);
|
||||
memset_call->setTailCall(false);
|
||||
}
|
||||
|
||||
@ -171,7 +171,7 @@ void BrainF::header(LLVMContext& C) {
|
||||
|
||||
CallInst *puts_call =
|
||||
CallInst::Create(puts_func,
|
||||
puts_params, array_endof(puts_params),
|
||||
puts_params,
|
||||
"", aberrorbb);
|
||||
puts_call->setTailCall(false);
|
||||
}
|
||||
@ -229,7 +229,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb,
|
||||
};
|
||||
CallInst *putchar_call = builder->
|
||||
CreateCall(putchar_func,
|
||||
putchar_params, array_endof(putchar_params));
|
||||
putchar_params);
|
||||
putchar_call->setTailCall(false);
|
||||
}
|
||||
break;
|
||||
|
@ -395,7 +395,7 @@ Value *CallExprAST::Codegen() {
|
||||
if (ArgsV.back() == 0) return 0;
|
||||
}
|
||||
|
||||
return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
|
||||
return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
|
||||
}
|
||||
|
||||
Function *PrototypeAST::Codegen() {
|
||||
|
@ -403,7 +403,7 @@ Value *CallExprAST::Codegen() {
|
||||
if (ArgsV.back() == 0) return 0;
|
||||
}
|
||||
|
||||
return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
|
||||
return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
|
||||
}
|
||||
|
||||
Function *PrototypeAST::Codegen() {
|
||||
|
@ -504,7 +504,7 @@ Value *CallExprAST::Codegen() {
|
||||
if (ArgsV.back() == 0) return 0;
|
||||
}
|
||||
|
||||
return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
|
||||
return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
|
||||
}
|
||||
|
||||
Value *IfExprAST::Codegen() {
|
||||
|
@ -589,7 +589,7 @@ Value *BinaryExprAST::Codegen() {
|
||||
assert(F && "binary operator not found!");
|
||||
|
||||
Value *Ops[] = { L, R };
|
||||
return Builder.CreateCall(F, Ops, Ops+2, "binop");
|
||||
return Builder.CreateCall(F, Ops, "binop");
|
||||
}
|
||||
|
||||
Value *CallExprAST::Codegen() {
|
||||
@ -608,7 +608,7 @@ Value *CallExprAST::Codegen() {
|
||||
if (ArgsV.back() == 0) return 0;
|
||||
}
|
||||
|
||||
return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
|
||||
return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
|
||||
}
|
||||
|
||||
Value *IfExprAST::Codegen() {
|
||||
|
@ -685,7 +685,7 @@ Value *BinaryExprAST::Codegen() {
|
||||
assert(F && "binary operator not found!");
|
||||
|
||||
Value *Ops[] = { L, R };
|
||||
return Builder.CreateCall(F, Ops, Ops+2, "binop");
|
||||
return Builder.CreateCall(F, Ops, "binop");
|
||||
}
|
||||
|
||||
Value *CallExprAST::Codegen() {
|
||||
@ -704,7 +704,7 @@ Value *CallExprAST::Codegen() {
|
||||
if (ArgsV.back() == 0) return 0;
|
||||
}
|
||||
|
||||
return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp");
|
||||
return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
|
||||
}
|
||||
|
||||
Value *IfExprAST::Codegen() {
|
||||
|
Loading…
Reference in New Issue
Block a user