@@ -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 ;
@@ -180,21 +178,6 @@ class TypeConverter {
180
178
// / can be a TypeRange; in that case, the function must return a
181
179
// / SmallVector<Value>.
182
180
183
- // / This method registers a materialization that will be called when
184
- // / converting (potentially multiple) block arguments that were the result of
185
- // / a signature conversion of a single block argument, to a single SSA value
186
- // / with the old block argument type.
187
- // /
188
- // / Note: Argument materializations are used only with the 1:N dialect
189
- // / conversion driver. The 1:N dialect conversion driver will be removed soon
190
- // / and so will be argument materializations.
191
- template <typename FnT, typename T = typename llvm::function_traits<
192
- std::decay_t <FnT>>::template arg_t <1 >>
193
- void addArgumentMaterialization (FnT &&callback) {
194
- argumentMaterializations.emplace_back (
195
- wrapMaterialization<T>(std::forward<FnT>(callback)));
196
- }
197
-
198
181
// / This method registers a materialization that will be called when
199
182
// / converting a replacement value back to its original source type.
200
183
// / This is used when some uses of the original value persist beyond the main
@@ -322,8 +305,6 @@ class TypeConverter {
322
305
// / generating a cast sequence of some kind. See the respective
323
306
// / `add*Materialization` for more information on the context for these
324
307
// / methods.
325
- Value materializeArgumentConversion (OpBuilder &builder, Location loc,
326
- Type resultType, ValueRange inputs) const ;
327
308
Value materializeSourceConversion (OpBuilder &builder, Location loc,
328
309
Type resultType, ValueRange inputs) const ;
329
310
Value materializeTargetConversion (OpBuilder &builder, Location loc,
@@ -510,7 +491,6 @@ class TypeConverter {
510
491
SmallVector<ConversionCallbackFn, 4 > conversions;
511
492
512
493
// / The list of registered materialization functions.
513
- SmallVector<MaterializationCallbackFn, 2 > argumentMaterializations;
514
494
SmallVector<MaterializationCallbackFn, 2 > sourceMaterializations;
515
495
SmallVector<TargetMaterializationCallbackFn, 2 > targetMaterializations;
516
496
0 commit comments