2 instantiations of MethodResult
illink (2)
Linker.Steps\UnreachableBlocksOptimizer.cs (2)
260
return constant == null ? null : new
MethodResult
(constant, !HasSideEffects(method));
278
return new
MethodResult
(analyzer.Result, analyzer.SideEffectFreeResult);
10 references to MethodResult
illink (10)
Linker.Steps\UnreachableBlocksOptimizer.cs (10)
25
readonly Dictionary<MethodDefinition,
MethodResult
?> _cache_method_results = new(2048);
28
readonly Dictionary<MethodDefinition,
MethodResult
?> _cache_library_root_method_results = new();
244
MethodResult
? AnalyzeMethodForConstantResult(in CalleePayload callee, Stack<MethodDefinition> callStack)
292
MethodResult
? TryGetMethodCallResult(in CalleePayload callee)
298
MethodResult
? TryGetMethodCallResult(in CalleePayload callee, Stack<MethodDefinition> callStack)
300
MethodResult
? value;
540
MethodResult
? call_result = optimizer.TryGetMethodCallResult(cpl);
541
if (call_result is not
MethodResult
result)
2038
MethodResult
? call_result = optimizer.TryGetMethodCallResult(new CalleePayload(md, args), callStack);
2042
if (call_result is
MethodResult
result)