File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
IGC/VectorCompiler/lib/GenXCodeGen Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ class GenXSubtarget final : public GenXGenSubtargetInfo {
85
85
86
86
// Only generate warning when callable is used in the middle of the kernel
87
87
bool WarnCallable = false ;
88
+
89
+ // Size of one general register in bytes.
90
+ unsigned GRFByteSize = 32 ;
88
91
// Some targets do not support i64 ops natively, we have an option to emulate
89
92
bool EmulateLongLong = false ;
90
93
@@ -126,7 +129,8 @@ class GenXSubtarget final : public GenXGenSubtargetInfo {
126
129
GenXSubtarget (const Triple &TT, const std::string &CPU,
127
130
const std::string &FS);
128
131
129
- unsigned getGRFByteSize () const { return 32 ; }
132
+ // GRF size in bytes.
133
+ unsigned getGRFByteSize () const { return GRFByteSize; }
130
134
131
135
bool isOCLRuntime () const { return OCLRuntime; }
132
136
You can’t perform that action at this time.
0 commit comments