[llvm-commits] [llvm-gcc-4.2] r132987 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Tue Jun 14 04:17:07 PDT 2011
Author: baldrick
Date: Tue Jun 14 06:17:06 2011
New Revision: 132987
URL: http://llvm.org/viewvc/llvm-project?rev=132987&view=rev
Log:
Port commit 132977 (prefetch intrinsic gained a new argument) from
clang. Compiles but otherwise untested.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=132987&r1=132986&r2=132987&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Tue Jun 14 06:17:06 2011
@@ -6513,9 +6513,10 @@
Ptr = BitCastToType(Ptr, Type::getInt8PtrTy(Context));
- Value *Ops[3] = { Ptr, ReadWrite, Locality };
- Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Intrinsic::prefetch),
- Ops, Ops+3);
+ Value *Data = ConstantInt::get(Type::getInt32Ty(Context), 1);
+
+ Builder.CreateCall4(Intrinsic::getDeclaration(TheModule, Intrinsic::prefetch),
+ Ptr, ReadWrite, Locality, Data);
return true;
}
More information about the llvm-commits
mailing list