mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
Add support for memcpy and memmove intrinsics. Why isn't the cwriter using
the intrinsiclowering code?? :( llvm-svn: 11362
This commit is contained in:
parent
fffcec6c76
commit
705753bd4f
@ -1302,6 +1302,24 @@ void CWriter::visitCallInst(CallInst &I) {
|
||||
// exception throw.
|
||||
Out << "abort()";
|
||||
return;
|
||||
case Intrinsic::memcpy:
|
||||
Out << "memcpy(";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ", ";
|
||||
writeOperand(I.getOperand(2));
|
||||
Out << ", ";
|
||||
writeOperand(I.getOperand(3));
|
||||
Out << ")";
|
||||
return;
|
||||
case Intrinsic::memmove:
|
||||
Out << "memmove(";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ", ";
|
||||
writeOperand(I.getOperand(2));
|
||||
Out << ", ";
|
||||
writeOperand(I.getOperand(3));
|
||||
Out << ")";
|
||||
return;
|
||||
}
|
||||
}
|
||||
visitCallSite(&I);
|
||||
|
Loading…
Reference in New Issue
Block a user