This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: preliminary patch for data prefetch support


On Tue, Nov 06, 2001 at 03:35:40PM -0800, Janis Johnson wrote:
> +/* Memory prefetch, with attributes supported on some machines.
> +   Operand 1 is the address of the memory to fetch.
> +   Operand 2 is 1 for a write access, 0 otherwise.
> +   Operand 3 is the level of temporal locality; 0 means there is no
> +   temporal locality and 1, 2, and 3 are for increasing levels of temporal
> +   locality.
> +
> +   The attributes specified by operands 2 and 3 are ignored for targets
> +   whose prefetch instructions do not support them.  */
> +
> +DEF_RTL_EXPR(PREFETCH, "prefetch", "eee", 'x')

If op2 and op3 must be constants, and not particularly manipulatable
by normal rtl jiggery pokery, why not make the format "eii"?

Are you considering the semi-related operation of allocating a dirty
cache line?  I.e. clobber the entire cache line, avoiding the read
fetch?


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]