Fixes around virtual method hierarchy validation (#78157)
authorVitek Karas <10670590+vitek-karas@users.noreply.github.com>
Wed, 16 Nov 2022 21:06:37 +0000 (13:06 -0800)
committerGitHub <noreply@github.com>
Wed, 16 Nov 2022 21:06:37 +0000 (13:06 -0800)
commit03ebcc1a18ea31ca92e00b542878d15a8a93a25e
tree6c08e681b43942cd4877981b86f9297e9f5fe695
parent2a31a5bf6eb3a9283a798fa4c6e549de2d4f987b
Fixes around virtual method hierarchy validation (#78157)

Adds the test from linker and fixes to make it work.
Mostly finding all the places where we can detect method overrides.
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/GVMDependenciesNode.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/GenericLookupResult.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/TypeGVMEntriesNode.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/UsageBasedMetadataManager.cs
src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs
src/coreclr/tools/aot/ILCompiler.RyuJit/JitInterface/CorInfoImpl.RyuJit.cs
src/coreclr/tools/aot/Mono.Linker.Tests.Cases/DataFlow/Dependencies/Library.cs [new file with mode: 0644]
src/coreclr/tools/aot/Mono.Linker.Tests.Cases/DataFlow/VirtualMethodHierarchyDataflowAnnotationValidation.cs [new file with mode: 0644]
src/tests/nativeaot/SmokeTests/UnitTests/Generics.cs