@@ -14,6 +14,7 @@ SPDX-License-Identifier: MIT
14
14
#include < optional>
15
15
#include < ostream>
16
16
#include < string>
17
+ #include < tuple>
17
18
#include < utility>
18
19
19
20
namespace vISA {
@@ -321,15 +322,9 @@ class G4_SendDesc {
321
322
// This is the size of the element in memory not the register file
322
323
// (which might widen the result in GRF).
323
324
virtual unsigned getElemSize () const = 0;
324
-
325
325
//
326
- // Returns the caching behavior of this message if known.
327
- // Returns Caching::INVALID if the message doesn't support caching
328
- // controls.
329
- virtual std::pair<Caching, Caching> getCaching () const = 0;
330
- Caching getCachingL1 () const { return getCaching ().first ; }
331
- Caching getCachingL3 () const { return getCaching ().second ; }
332
- virtual void setCaching (Caching l1, Caching l3) = 0;
326
+ // retrieves the caching for L1
327
+ virtual Caching getCachingL1 () const = 0;
333
328
//
334
329
// generally in multiples of full GRFs, but a few exceptions such
335
330
// as OWord and HWord operations may make this different
@@ -644,8 +639,14 @@ class G4_SendDescRaw : public G4_SendDesc {
644
639
virtual size_t getSrc1LenRegs () const override ;
645
640
//
646
641
virtual SendAccess getAccessType () const override { return accessType; }
647
- virtual std::pair<Caching, Caching> getCaching () const override ;
648
- virtual void setCaching (Caching l1, Caching l3) override ;
642
+ //
643
+ // Returns the caching behavior of this message if known.
644
+ // Returns Caching::INVALID if the message doesn't support caching
645
+ // controls.
646
+ Caching getCachingL1 () const override { return getCaching ().first ; }
647
+ Caching getCachingL3 () const { return getCaching ().second ; }
648
+ std::pair<Caching, Caching> getCaching () const ;
649
+ void setCaching (Caching l1, Caching l3);
649
650
//
650
651
// If the message has an immediate address offset,
651
652
// this returns that offset. The offset is in bytes.
0 commit comments