[cfe-commits] r91573 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Dec 16 16:14:28 PST 2009
Author: efriedma
Date: Wed Dec 16 18:14:28 2009
New Revision: 91573
URL: http://llvm.org/viewvc/llvm-project?rev=91573&view=rev
Log:
Fix for PR5801: codegen memcpy, memmove, memset directly to LLVM intrinsics.
Modified:
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=91573&r1=91572&r2=91573&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Dec 16 18:14:28 2009
@@ -302,6 +302,7 @@
llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), 1));
return RValue::get(Address);
}
+ case Builtin::BImemcpy:
case Builtin::BI__builtin_memcpy: {
Value *Address = EmitScalarExpr(E->getArg(0));
Builder.CreateCall4(CGM.getMemCpyFn(), Address,
@@ -310,6 +311,7 @@
llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), 1));
return RValue::get(Address);
}
+ case Builtin::BImemmove:
case Builtin::BI__builtin_memmove: {
Value *Address = EmitScalarExpr(E->getArg(0));
Builder.CreateCall4(CGM.getMemMoveFn(), Address,
@@ -318,6 +320,7 @@
llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), 1));
return RValue::get(Address);
}
+ case Builtin::BImemset:
case Builtin::BI__builtin_memset: {
Value *Address = EmitScalarExpr(E->getArg(0));
Builder.CreateCall4(CGM.getMemSetFn(), Address,
More information about the cfe-commits
mailing list