summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CWriter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-12 23:13:33 +0000
committerChris Lattner <sabre@nondot.org>2004-02-12 23:13:33 +0000
commitbb68a2209bd493c5a24187f028f56a4c3543c8f5 (patch)
tree51737f299a7d30b11cbe13d218f0c995047d816c /llvm/lib/CWriter
parent0145092b3e3e0eba5733482eb8c1f1df4a1534c3 (diff)
downloadbcm5719-llvm-bb68a2209bd493c5a24187f028f56a4c3543c8f5.tar.gz
bcm5719-llvm-bb68a2209bd493c5a24187f028f56a4c3543c8f5.zip
Add support for memcpy and memmove intrinsics. Why isn't the cwriter using
the intrinsiclowering code?? :( llvm-svn: 11362
Diffstat (limited to 'llvm/lib/CWriter')
-rw-r--r--llvm/lib/CWriter/Writer.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp
index be6d4355fc7..43f50e9843b 100644
--- a/llvm/lib/CWriter/Writer.cpp
+++ b/llvm/lib/CWriter/Writer.cpp
@@ -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);
OpenPOWER on IntegriCloud