@@ -490,7 +490,7 @@ void ArgConverter::notifyOpRemoved(Operation *op) {
490
490
notifyOpRemoved (&nestedOp);
491
491
492
492
// Check if this block was converted.
493
- auto it = conversionInfo.find (&block);
493
+ auto * it = conversionInfo.find (&block);
494
494
if (it == conversionInfo.end ())
495
495
continue ;
496
496
@@ -504,7 +504,7 @@ void ArgConverter::notifyOpRemoved(Operation *op) {
504
504
}
505
505
506
506
void ArgConverter::discardRewrites (Block *block) {
507
- auto it = conversionInfo.find (block);
507
+ auto * it = conversionInfo.find (block);
508
508
if (it == conversionInfo.end ())
509
509
return ;
510
510
Block *origBlock = it->second .origBlock ;
@@ -3402,7 +3402,7 @@ static ConversionTarget::DynamicLegalityCallbackFn composeLegalityCallbacks(
3402
3402
void ConversionTarget::setLegalityCallback (
3403
3403
OperationName name, const DynamicLegalityCallbackFn &callback) {
3404
3404
assert (callback && " expected valid legality callback" );
3405
- auto infoIt = legalOperations.find (name);
3405
+ auto * infoIt = legalOperations.find (name);
3406
3406
assert (infoIt != legalOperations.end () &&
3407
3407
infoIt->second .action == LegalizationAction::Dynamic &&
3408
3408
" expected operation to already be marked as dynamically legal" );
@@ -3412,7 +3412,7 @@ void ConversionTarget::setLegalityCallback(
3412
3412
3413
3413
void ConversionTarget::markOpRecursivelyLegal (
3414
3414
OperationName name, const DynamicLegalityCallbackFn &callback) {
3415
- auto infoIt = legalOperations.find (name);
3415
+ auto * infoIt = legalOperations.find (name);
3416
3416
assert (infoIt != legalOperations.end () &&
3417
3417
infoIt->second .action != LegalizationAction::Illegal &&
3418
3418
" expected operation to already be marked as legal" );
@@ -3441,7 +3441,7 @@ void ConversionTarget::setLegalityCallback(
3441
3441
auto ConversionTarget::getOpInfo (OperationName op) const
3442
3442
-> std::optional<LegalizationInfo> {
3443
3443
// Check for info for this specific operation.
3444
- auto it = legalOperations.find (op);
3444
+ const auto * it = legalOperations.find (op);
3445
3445
if (it != legalOperations.end ())
3446
3446
return it->second ;
3447
3447
// Check for info for the parent dialect.
0 commit comments