aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/Writer.cpp
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
commitf8cd9148f9602d2df3325b830edb865b3e96c77c (patch)
tree8e11e285d6871c090528434af15673711feb3f3c /lib/Target/CBackend/Writer.cpp
parent3bc657934fefb33fffe86755287480369a8fc2ba (diff)
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
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r--lib/Target/CBackend/Writer.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index be6d4355fc..43f50e9843 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/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);