File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -383,6 +383,11 @@ class TypeConverter {
383
383
};
384
384
```
385
385
386
+ Materializations through the type converter are optional. If the
387
+ ` ConversionConfig::buildMaterializations ` flag is set to "false", the dialect
388
+ conversion driver builds an ` unrealized_conversion_cast ` op instead of calling
389
+ the respective type converter callback whenever a materialization is required.
390
+
386
391
### Region Signature Conversion
387
392
388
393
From the perspective of type conversion, the types of block arguments are a bit
Original file line number Diff line number Diff line change @@ -1127,13 +1127,12 @@ struct ConversionConfig {
1127
1127
1128
1128
// / If set to "true", the dialect conversion attempts to build source/target/
1129
1129
// / argument materializations through the type converter API in lieu of
1130
- // / builtin.unrealized_conversion_cast ops. The conversion process fails if
1130
+ // / " builtin.unrealized_conversion_cast ops" . The conversion process fails if
1131
1131
// / at least one materialization could not be built.
1132
1132
// /
1133
- // / If set to "false", the dialect conversion does not does not build any
1134
- // / custom materializations and instead inserts
1135
- // / builtin.unrealized_conversion_cast ops to ensure that the resulting IR
1136
- // / is valid.
1133
+ // / If set to "false", the dialect conversion does not build any custom
1134
+ // / materializations and instead inserts "builtin.unrealized_conversion_cast"
1135
+ // / ops to ensure that the resulting IR is valid.
1137
1136
bool buildMaterializations = true ;
1138
1137
};
1139
1138
You can’t perform that action at this time.
0 commit comments