Lines Matching refs:origArg
351 BlockArgument origArg = origBlock->getArgument(i); in applyRewrites() local
355 if (Value newArg = mapping.lookupOrNull(origArg)) in applyRewrites()
356 origArg.replaceAllUsesWith(newArg); in applyRewrites()
365 if (!origArg.use_empty()) in applyRewrites()
366 origArg.replaceAllUsesWith(mapping.lookupOrDefault(castValue)); in applyRewrites()
390 BlockArgument origArg = origBlock->getArgument(i); in materializeLiveConversions() local
391 auto argReplacementValue = mapping.lookupOrDefault(origArg); in materializeLiveConversions()
392 bool isDroppedArg = argReplacementValue == origArg; in materializeLiveConversions()
393 if (argReplacementValue.getType() == origArg.getType() && !isDroppedArg) in materializeLiveConversions()
395 Operation *liveUser = findLiveUser(origArg); in materializeLiveConversions()
404 rewriter, origArg.getLoc(), origArg.getType(), in materializeLiveConversions()
408 emitError(origArg.getLoc()) in materializeLiveConversions()
411 << origArg.getType(); in materializeLiveConversions()
418 mapping.map(origArg, newArg); in materializeLiveConversions()
470 BlockArgument origArg = block->getArgument(i); in applySignatureConversion() local
478 mapping.map(origArg, inputMap->replacementValue); in applySignatureConversion()
487 rewriter, origArg.getLoc(), origArg.getType(), replArgs); in applySignatureConversion()
493 mapping.map(origArg, newArg); in applySignatureConversion()