From 9a767330f555f21d6ef311d3a348d3a44f306d35 Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Tue, 14 Jun 2011 04:58:37 +0000 Subject: 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 --- docs/LangRef.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs/LangRef.html') diff --git a/docs/LangRef.html b/docs/LangRef.html index a024efb..74678c7 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -6064,7 +6064,7 @@ LLVM.

Syntax:
-  declare void @llvm.prefetch(i8* <address>, i32 <rw>, i32 <locality>)
+  declare void @llvm.prefetch(i8* <address>, i32 <rw>, i32 <locality>, i32 <cache type>)
 
Overview:
@@ -6077,8 +6077,10 @@ LLVM.

address is the address to be prefetched, rw is the specifier determining if the fetch should be for a read (0) or write (1), and locality is a temporal locality specifier ranging from (0) - no - locality, to (3) - extremely local keep in cache. The rw - and locality arguments must be constant integers.

+ locality, to (3) - extremely local keep in cache. The cache type + specifies whether the prefetch is performed on the data (1) or instruction (0) + cache. The rw, locality and cache type arguments + must be constant integers.

Semantics:

This intrinsic does not modify the behavior of the program. In particular, -- cgit v1.1