@@ -45,13 +45,11 @@ class TypeConverter {
45
45
// Copy the registered conversions, but not the caches
46
46
TypeConverter (const TypeConverter &other)
47
47
: conversions(other.conversions),
48
- argumentMaterializations (other.argumentMaterializations),
49
48
sourceMaterializations (other.sourceMaterializations),
50
49
targetMaterializations(other.targetMaterializations),
51
50
typeAttributeConversions(other.typeAttributeConversions) {}
52
51
TypeConverter &operator =(const TypeConverter &other) {
53
52
conversions = other.conversions ;
54
- argumentMaterializations = other.argumentMaterializations ;
55
53
sourceMaterializations = other.sourceMaterializations ;
56
54
targetMaterializations = other.targetMaterializations ;
57
55
typeAttributeConversions = other.typeAttributeConversions ;
@@ -177,21 +175,6 @@ class TypeConverter {
177
175
// / can be a TypeRange; in that case, the function must return a
178
176
// / SmallVector<Value>.
179
177
180
- // / This method registers a materialization that will be called when
181
- // / converting (potentially multiple) block arguments that were the result of
182
- // / a signature conversion of a single block argument, to a single SSA value
183
- // / with the old block argument type.
184
- // /
185
- // / Note: Argument materializations are used only with the 1:N dialect
186
- // / conversion driver. The 1:N dialect conversion driver will be removed soon
187
- // / and so will be argument materializations.
188
- template <typename FnT, typename T = typename llvm::function_traits<
189
- std::decay_t <FnT>>::template arg_t <1 >>
190
- void addArgumentMaterialization (FnT &&callback) {
191
- argumentMaterializations.emplace_back (
192
- wrapMaterialization<T>(std::forward<FnT>(callback)));
193
- }
194
-
195
178
// / This method registers a materialization that will be called when
196
179
// / converting a replacement value back to its original source type.
197
180
// / This is used when some uses of the original value persist beyond the main
@@ -319,8 +302,6 @@ class TypeConverter {
319
302
// / generating a cast sequence of some kind. See the respective
320
303
// / `add*Materialization` for more information on the context for these
321
304
// / methods.
322
- Value materializeArgumentConversion (OpBuilder &builder, Location loc,
323
- Type resultType, ValueRange inputs) const ;
324
305
Value materializeSourceConversion (OpBuilder &builder, Location loc,
325
306
Type resultType, ValueRange inputs) const ;
326
307
Value materializeTargetConversion (OpBuilder &builder, Location loc,
@@ -507,7 +488,6 @@ class TypeConverter {
507
488
SmallVector<ConversionCallbackFn, 4 > conversions;
508
489
509
490
// / The list of registered materialization functions.
510
- SmallVector<MaterializationCallbackFn, 2 > argumentMaterializations;
511
491
SmallVector<MaterializationCallbackFn, 2 > sourceMaterializations;
512
492
SmallVector<TargetMaterializationCallbackFn, 2 > targetMaterializations;
513
493
0 commit comments