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
);
64
_context
.LogMessage ($"Reduced '{reducer.InstructionsReplaced}' instructions in conditional branches for [{method.DeclaringType.Module.Assembly.Name}] method '{method.GetDisplayName ()}'.");
222
switch (
_context
.Annotations.GetAction (method)) {
226
Instruction? constant = CodeRewriterStep.CreateConstantResultInstruction (
_context
, method);
233
if (!
_context
.IsOptimizationEnabled (CodeOptimizations.IPConstantPropagation, method))
287
sizeOfImpl = (UIntPtrSize ??= FindSizeMethod (
_context
.TryResolve (type)));
289
sizeOfImpl = (IntPtrSize ??= FindSizeMethod (
_context
.TryResolve (type)));
468
MethodDefinition? md = optimizer.
_context
.TryResolve ((MethodReference) instr.Operand);
487
optimizer.
_context
.LogMessage ($"Cannot inline constant result of '{md.GetDisplayName ()}' call due to presence of side effects");
1498
this.context = optimizer.
_context
;
1769
MethodDefinition? md = optimizer.
_context
.TryResolve (mr);