File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
mlir/lib/Dialect/GPU/TransformOps Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,8 @@ DiagnosedSilenceableFailure mlir::transform::gpu::mapForeachToBlocksImpl(
169
169
SmallVector<int64_t > mapping;
170
170
if (!foreachThreadOp.getMapping ().has_value ())
171
171
return transformOp.emitSilenceableError () << " mapping must be present" ;
172
- for (DeviceMappingAttrInterface map : *foreachThreadOp.getMapping ()) {
172
+ for (DeviceMappingAttrInterface map :
173
+ foreachThreadOp.getMapping ()->getValue ()) {
173
174
if (auto blockMap = map.dyn_cast <GPUBlockMappingAttr>()) {
174
175
mapping.push_back ((int64_t )blockMap.getBlock ());
175
176
} else {
@@ -351,7 +352,8 @@ static DiagnosedSilenceableFailure rewriteOneForeachThreadToGpuThreads(
351
352
SmallVector<int64_t > mapping;
352
353
if (!foreachThreadOp.getMapping ().has_value ())
353
354
return failureHelper (" mapping must be present" );
354
- for (DeviceMappingAttrInterface map : *foreachThreadOp.getMapping ()) {
355
+ for (DeviceMappingAttrInterface map :
356
+ foreachThreadOp.getMapping ()->getValue ()) {
355
357
if (auto threadMap = map.dyn_cast <GPUThreadMappingAttr>()) {
356
358
mapping.push_back ((int64_t )threadMap.getThread ());
357
359
} else {
You can’t perform that action at this time.
0 commit comments