mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add one more argument to the prefetch intrinsic to indicate whether it's a data
or instruction cache access. Update the targets to match it and also teach autoupgrade. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -109,3 +109,11 @@ define void @f(<4 x float> %A, i8* %B, <2 x double> %C, i32 %D) {
|
||||
call void @llvm.x86.sse2.movnt.i(i8* %B, i32 %D)
|
||||
ret void
|
||||
}
|
||||
|
||||
declare void @llvm.prefetch(i8*, i32, i32) nounwind
|
||||
|
||||
define void @p(i8* %ptr) {
|
||||
; CHECK: llvm.prefetch(i8* %ptr, i32 0, i32 1, i32 1)
|
||||
tail call void @llvm.prefetch(i8* %ptr, i32 0, i32 1)
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user