We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915830c commit beb5c8eCopy full SHA for beb5c8e
mlir/test/lib/Dialect/XeGPU/TestXeGPUTransforms.cpp
@@ -107,7 +107,7 @@ struct TestXeGPUUnrollingPatterns
107
// If the encoding is a ScatterTensorDescAttr, we need to
108
// potentially adjust the chunk size based on the inst_data.
109
if (tdescTy.isScattered()) {
110
- auto scatterAttr = tdescTy.getEncodingAsScatterTensorDescAttr();
+ auto scatterAttr = llvm::dyn_cast_if_present<xegpu::ScatterTensorDescAttr>(encoding);
111
int64_t chunkSize = scatterAttr.getChunkSize().getInt();
112
113
if (chunkSize > 1) {
0 commit comments