Lines Matching defs:replacement

386                                             Operation *replacement) {
408 // Replace the pointed-to object of all handles with the replacement object.
409 // In case a payload op was erased (replacement object is nullptr), a nullptr
427 mapped = replacement;
430 if (replacement) {
431 mappings.reverse[replacement].push_back(handle);
441 transform::TransformState::replacePayloadValue(Value value, Value replacement) {
453 if (!replacement) {
468 mapped = replacement;
470 mappings.reverseValues[replacement].push_back(handle);
1045 Operation *replacement) {
1048 return state.replacePayloadOp(op, replacement);
1053 Value replacement) {
1054 return state.replacePayloadValue(value, replacement);
1220 "invalid number of replacement values");
1224 getTransformOp(), "tracking listener failed to find replacement op "
1228 // If the replacement values belong to different ops, drop the mapping.
1231 diag.attachNote() << "replacement values belong to different ops";
1245 // op replacements at all, we take it as a replacement.
1271 diag.attachNote() << "ran out of suitable replacement values";
1295 "invalid number of replacement values");
1315 // behavior) and a replacement op could not be found, we want to fail with a
1317 // not find replacement op". This nicer error is produced later.
1340 Operation *replacement;
1342 findReplacementOp(replacement, op, newValues);
1343 // If the op is tracked but no replacement op was found, send a
1347 << "replacement is required because this handle must be updated";
1353 (void)replacePayloadOp(op, replacement);
1389 << "[" << errorCounter << "] replacement value " << index;
1416 Operation *op, Operation *replacement) {
1417 return listener->replacePayloadOp(op, replacement);