@@ -360,7 +360,7 @@ def fir_PrefetchOp : fir_Op<"prefetch", []> {
360360
361361 ```
362362 %a = ... -> !fir.ref<i32>
363- fir.prefetch %a {cacheType = 1 : i32 , localityHint = 3 : i32, rw = 0 : i32} : !fir.ref<i32>
363+ fir.prefetch %a {cacheType, localityHint = 3 : i32} : !fir.ref<i32>
364364 // ...
365365 fir.load %a : !fir.ref<i32> // use the prefetched value
366366 ```
@@ -372,11 +372,14 @@ def fir_PrefetchOp : fir_Op<"prefetch", []> {
372372 /// `localityHint': temporal locality specifier >
373373 /// value ranging from 0 - no locality to 3 - extremely local
374374 /// `cacheType' : cache type specifier >
375- /// instruction cache is 0 (default) , data cache is 1
375+ /// instruction cache is 0, data cache is 1 (default)
376376 /// NOTE: The numerical values used here is in reference to the LLVM LangRef
377- let arguments = (ins AnyReferenceLike:$memref, UnitAttr:$rw,
378- ConfinedAttr<I32Attr, [IntMinValue<0>, IntMaxValue<3>]>:$localityHint,
379- UnitAttr:$cacheType);
377+ let arguments =
378+ (ins Arg<AnyReferenceLike,
379+ "prefetch memory address", [MemWrite]> : $memref,
380+ UnitAttr : $rw,
381+ ConfinedAttr<I32Attr, [IntMinValue<0>, IntMaxValue<3>]> : $localityHint,
382+ UnitAttr : $cacheType);
380383
381384 let assemblyFormat = "$memref attr-dict `:` type(operands)";
382385}
@@ -974,7 +977,7 @@ def fir_ReboxAssumedRankOp : fir_Op<"rebox_assumed_rank",
974977 Example:
975978 ```
976979 fir.rebox_assumed_rank %1 lbs zeroes : (!fir.box<!fir.array<*:f32>>) -> !fir.box<!fir.array<*:f32>>
977- ```
980+ ```
978981 }];
979982
980983 let arguments = (ins
0 commit comments