@@ -45,13 +45,11 @@ class TypeConverter {
4545 // Copy the registered conversions, but not the caches
4646 TypeConverter (const TypeConverter &other)
4747 : conversions(other.conversions),
48- argumentMaterializations (other.argumentMaterializations),
4948 sourceMaterializations (other.sourceMaterializations),
5049 targetMaterializations(other.targetMaterializations),
5150 typeAttributeConversions(other.typeAttributeConversions) {}
5251 TypeConverter &operator =(const TypeConverter &other) {
5352 conversions = other.conversions ;
54- argumentMaterializations = other.argumentMaterializations ;
5553 sourceMaterializations = other.sourceMaterializations ;
5654 targetMaterializations = other.targetMaterializations ;
5755 typeAttributeConversions = other.typeAttributeConversions ;
@@ -180,21 +178,6 @@ class TypeConverter {
180178 // / can be a TypeRange; in that case, the function must return a
181179 // / SmallVector<Value>.
182180
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-
198181 // / This method registers a materialization that will be called when
199182 // / converting a replacement value back to its original source type.
200183 // / This is used when some uses of the original value persist beyond the main
@@ -322,8 +305,6 @@ class TypeConverter {
322305 // / generating a cast sequence of some kind. See the respective
323306 // / `add*Materialization` for more information on the context for these
324307 // / methods.
325- Value materializeArgumentConversion (OpBuilder &builder, Location loc,
326- Type resultType, ValueRange inputs) const ;
327308 Value materializeSourceConversion (OpBuilder &builder, Location loc,
328309 Type resultType, ValueRange inputs) const ;
329310 Value materializeTargetConversion (OpBuilder &builder, Location loc,
@@ -510,7 +491,6 @@ class TypeConverter {
510491 SmallVector<ConversionCallbackFn, 4 > conversions;
511492
512493 // / The list of registered materialization functions.
513- SmallVector<MaterializationCallbackFn, 2 > argumentMaterializations;
514494 SmallVector<MaterializationCallbackFn, 2 > sourceMaterializations;
515495 SmallVector<TargetMaterializationCallbackFn, 2 > targetMaterializations;
516496
0 commit comments