mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add support for memcpy and memmove intrinsics. Why isn't the cwriter using
the intrinsiclowering code?? :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3bc657934f
commit
f8cd9148f9
@ -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);
|
||||
|
@ -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…
x
Reference in New Issue
Block a user