1 write to _tempAllocator
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
35_tempAllocator = new DagTempAllocator(_factory, node, generateInstrumentation);
32 references to _tempAllocator
Microsoft.CodeAnalysis.CSharp (32)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (3)
360BoundExpression inputTemp = _tempAllocator.GetTemp(BoundDagTemp.ForOriginalInput(loweredSwitchGoverningExpression)); 506LowerValueDispatchNode(n, _tempAllocator.GetTemp(input)); 1193BoundExpression right = _tempAllocator.GetTemp(binding.TempContainingValue);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (24)
50_tempAllocator.Free(); 137BoundExpression input = _tempAllocator.GetTemp(evaluation.Input); 144BoundExpression output = _tempAllocator.GetTemp(outputTemp); 154BoundExpression output = _tempAllocator.GetTemp(outputTemp); 188addArg(RefKind.Out, _tempAllocator.GetTemp(outputTemp)); 211BoundExpression output = _tempAllocator.GetTemp(outputTemp); 249BoundExpression output = _tempAllocator.GetTemp(outputTemp); 262indexerAccess = implicitAccess.WithLengthOrCountAccess(_tempAllocator.GetTemp(e.LengthTemp)); 274BoundExpression output = _tempAllocator.GetTemp(outputTemp); 288indexerAccess = implicitAccess.WithLengthOrCountAccess(_tempAllocator.GetTemp(e.LengthTemp)); 300BoundExpression output = _tempAllocator.GetTemp(outputTemp); 307BoundExpression left = _tempAllocator.GetTemp(e.Target); 308BoundExpression right = _tempAllocator.GetTemp(e.Input); 348BoundExpression input = _tempAllocator.GetTemp(test.Input); 488BoundExpression input = _tempAllocator.GetTemp(test.Input); 489BoundExpression output = _tempAllocator.GetTemp(evaluation.MakeResultTemp()); 503BoundExpression input = _tempAllocator.GetTemp(test.Input); 505BoundExpression output = _tempAllocator.GetTemp(evaluation.MakeResultTemp()); 545bool tempAssigned = _tempAllocator.TrySetTemp(inputDagTemp, loweredInput); 561_ = _tempAllocator.TrySetTemp(binding.TempContainingValue, binding.VariableAccess); 582BoundExpression inputTemp = _tempAllocator.GetTemp(inputDagTemp); 644newArguments.Add(_tempAllocator.GetTemp(temp)); 659if (canShareInputs && (expr.Kind == BoundKind.Parameter || expr.Kind == BoundKind.Local) && _tempAllocator.TrySetTemp(temp, expr)) 665var 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)
152outerVariables.AddRange(_tempAllocator.AllTemps());