[llvm-branch-commits] [llvm-gcc-branch] r100541 - in /llvm-gcc-4.2/branches/Apple/Morbo: ./ gcc/llvm-convert.cpp
Bill Wendling
isanbard at gmail.com
Tue Apr 6 11:33:31 PDT 2010
Author: void
Date: Tue Apr 6 13:33:31 2010
New Revision: 100541
URL: http://llvm.org/viewvc/llvm-project?rev=100541&view=rev
Log:
$ svn merge -c 100303 https://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk
--- Merging r100303 into '.':
U gcc/llvm-convert.cpp
Modified:
llvm-gcc-4.2/branches/Apple/Morbo/ (props changed)
llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp
Propchange: llvm-gcc-4.2/branches/Apple/Morbo/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Tue Apr 6 13:33:31 2010
@@ -1 +1 @@
-/llvm-gcc-4.2/trunk:98728,98841,98893,99196,99305,99592-99593,99982,99984-99986,99988,99992-99993,99995,99997-99999,100035
+/llvm-gcc-4.2/trunk:98728,98841,98893,99196,99305,99592-99593,99629,99670,99982,99984-99986,99988,99992-99993,99995,99997-99999,100035,100149,100303
Modified: llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp?rev=100541&r1=100540&r2=100541&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Morbo/gcc/llvm-convert.cpp Tue Apr 6 13:33:31 2010
@@ -1559,15 +1559,17 @@
unsigned Align) {
const Type *SBP = Type::getInt8PtrTy(Context);
const Type *IntPtr = TD.getIntPtrType(Context);
- Value *Ops[4] = {
+ Value *Ops[5] = {
BitCastToType(DestPtr, SBP),
BitCastToType(SrcPtr, SBP),
CastToSIntType(Size, IntPtr),
- ConstantInt::get(Type::getInt32Ty(Context), Align)
+ ConstantInt::get(Type::getInt32Ty(Context), Align),
+ ConstantInt::get(Type::getInt1Ty(Context), false)
};
+ const Type *ArgTypes[3] = {SBP, SBP, IntPtr };
Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Intrinsic::memcpy,
- &IntPtr, 1), Ops, Ops+4);
+ ArgTypes, 3), Ops, Ops+5);
return Ops[0];
}
@@ -1575,15 +1577,17 @@
unsigned Align) {
const Type *SBP = Type::getInt8PtrTy(Context);
const Type *IntPtr = TD.getIntPtrType(Context);
- Value *Ops[4] = {
+ Value *Ops[5] = {
BitCastToType(DestPtr, SBP),
BitCastToType(SrcPtr, SBP),
CastToSIntType(Size, IntPtr),
- ConstantInt::get(Type::getInt32Ty(Context), Align)
+ ConstantInt::get(Type::getInt32Ty(Context), Align),
+ ConstantInt::get(Type::getInt1Ty(Context), false)
};
+ const Type *ArgTypes[3] = {SBP, SBP, IntPtr };
Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Intrinsic::memmove,
- &IntPtr, 1), Ops, Ops+4);
+ ArgTypes, 3), Ops, Ops+5);
return Ops[0];
}
@@ -1591,15 +1595,17 @@
unsigned Align) {
const Type *SBP = Type::getInt8PtrTy(Context);
const Type *IntPtr = TD.getIntPtrType(Context);
- Value *Ops[4] = {
+ Value *Ops[5] = {
BitCastToType(DestPtr, SBP),
CastToSIntType(SrcVal, Type::getInt8Ty(Context)),
CastToSIntType(Size, IntPtr),
- ConstantInt::get(Type::getInt32Ty(Context), Align)
+ ConstantInt::get(Type::getInt32Ty(Context), Align),
+ ConstantInt::get(Type::getInt1Ty(Context), false)
};
+ const Type *ArgTypes[2] = {SBP, IntPtr };
Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Intrinsic::memset,
- &IntPtr, 1), Ops, Ops+4);
+ ArgTypes, 2), Ops, Ops+5);
return Ops[0];
}
More information about the llvm-branch-commits
mailing list