1 write to _context
illink (1)
Linker.Steps\UnreachableBlocksOptimizer.cs (1)
32
_context
= context;
12 references to _context
illink (12)
Linker.Steps\UnreachableBlocksOptimizer.cs (12)
45
if (
_context
.Annotations.GetAction(method.Module.Assembly) != AssemblyAction.Link)
48
var reducer = new BodyReducer(method.Body,
_context
);
65
_context
.LogMessage($"Reduced '{reducer.InstructionsReplaced}' instructions in conditional branches for [{method.DeclaringType.Module.Assembly.Name}] method '{method.GetDisplayName()}'.");
244
switch (
_context
.Annotations.GetAction(method))
249
Instruction? constant = CodeRewriterStep.CreateConstantResultInstruction(
_context
, method);
256
if (!
_context
.IsOptimizationEnabled(CodeOptimizations.IPConstantPropagation, method))
313
sizeOfImpl = (UIntPtrSize ??= FindSizeMethod(
_context
.TryResolve(type)));
317
sizeOfImpl = (IntPtrSize ??= FindSizeMethod(
_context
.TryResolve(type)));
504
MethodDefinition? md = optimizer.
_context
.TryResolve((MethodReference)instr.Operand);
524
optimizer.
_context
.LogMessage($"Cannot inline constant result of '{md.GetDisplayName()}' call due to presence of side effects");
1624
this.context = optimizer.
_context
;
1913
MethodDefinition? md = optimizer.
_context
.TryResolve(mr);