================ @@ -744,8 +758,7 @@ static DiagnosedSilenceableFailure getThreadIdBuilder(std::optional<TransformOpInterface> transformOp, scf::ForallOp forallOp, ArrayRef<int64_t> blockSizes, int64_t warpSize, GpuIdBuilder &gpuIdBuilder) { - auto mappingAttr = cast<DeviceMappingAttrInterface>( - forallOp.getMapping()->getValue().front()); + auto mappingAttr = forallOp.getDeviceMappingAttrs().front(); ---------------- ftynse wrote:
Nit: now that there's no more cast on the RHS, please expand `auto`. https://github.com/llvm/llvm-project/pull/146943 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits