1 write to _tempAllocator
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
35_tempAllocator = new DagTempAllocator(_factory, node, generateInstrumentation);
30 references to _tempAllocator
Microsoft.CodeAnalysis.CSharp (30)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (3)
360BoundExpression inputTemp = _tempAllocator.GetTemp(BoundDagTemp.ForOriginalInput(loweredSwitchGoverningExpression)); 506LowerValueDispatchNode(n, _tempAllocator.GetTemp(input)); 1185BoundExpression right = _tempAllocator.GetTemp(binding.TempContainingValue);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (22)
50_tempAllocator.Free(); 137BoundExpression input = _tempAllocator.GetTemp(evaluation.Input); 144BoundExpression output = _tempAllocator.GetTemp(outputTemp); 154BoundExpression output = _tempAllocator.GetTemp(outputTemp); 192addArg(RefKind.Out, _tempAllocator.GetTemp(outputTemp)); 213BoundExpression output = _tempAllocator.GetTemp(outputTemp); 250BoundExpression output = _tempAllocator.GetTemp(outputTemp); 263indexerAccess = implicitAccess.WithLengthOrCountAccess(_tempAllocator.GetTemp(e.LengthTemp)); 275BoundExpression output = _tempAllocator.GetTemp(outputTemp); 289indexerAccess = implicitAccess.WithLengthOrCountAccess(_tempAllocator.GetTemp(e.LengthTemp)); 301BoundExpression output = _tempAllocator.GetTemp(outputTemp); 343BoundExpression input = _tempAllocator.GetTemp(test.Input); 477BoundExpression input = _tempAllocator.GetTemp(test.Input); 478BoundExpression output = _tempAllocator.GetTemp(new BoundDagTemp(evaluation.Syntax, typeEvaluation1.Type, evaluation)); 492BoundExpression input = _tempAllocator.GetTemp(test.Input); 494BoundExpression output = _tempAllocator.GetTemp(new BoundDagTemp(evaluation.Syntax, baseType, evaluation)); 534bool tempAssigned = _tempAllocator.TrySetTemp(inputDagTemp, loweredInput); 550_ = _tempAllocator.TrySetTemp(binding.TempContainingValue, binding.VariableAccess); 571BoundExpression inputTemp = _tempAllocator.GetTemp(inputDagTemp); 633newArguments.Add(_tempAllocator.GetTemp(temp)); 648if (canShareInputs && (expr.Kind == BoundKind.Parameter || expr.Kind == BoundKind.Local) && _tempAllocator.TrySetTemp(temp, expr)) 654var tempToHoldInput = _tempAllocator.GetTemp(temp);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (3)
133return _factory.SpillSequence(_tempAllocator.AllTemps().Add(resultTemp), resultBuilder.ToImmutableAndFree(), _factory.Local(resultTemp)); 288BoundExpression right = _tempAllocator.GetTemp(binding.TempContainingValue); 316var allTemps = _tempAllocator.AllTemps();
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
167outerVariables.AddRange(_tempAllocator.AllTemps());
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
145outerVariables.AddRange(_tempAllocator.AllTemps());