This makes some code much clearer. The corresponding helpers on
MultiResultTraitBase and Operation are added too.
Also, add a TODO about non-1:1 type conversions.
Paths
| Differential D89591
[mlir] Add ResultRange::setTypes helper. AbandonedPublic Authored by silvas on Oct 16 2020, 1:19 PM.
Details
Summary This makes some code much clearer. The corresponding helpers on Also, add a TODO about non-1:1 type conversions.
Diff Detail
Event TimelineHerald added subscribers: stephenneuendorffer, nicolasvasilache. · View Herald TranscriptOct 16 2020, 1:19 PM Comment Actions Is this common enough to warrant an addition to the API? I looked at upstream usages as well as several downstream projects and found very few usages of setType. I'm mostly apprehensive given the relative danger that setType has. Comment Actions
You're right. It's probably not that common. Abandoning this for now, especially since I abandoned the revision that originally motivated this.
Revision Contents
Diff 299174 mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/Operation.h
mlir/include/mlir/IR/OperationSupport.h
mlir/lib/Dialect/SCF/Transforms/StructuralTypeConversions.cpp
mlir/lib/IR/OperationSupport.cpp
|