Skip to content

Delete obsolete CORINFO_TYPE_... entries#128243

Open
Copilot wants to merge 15 commits into
mainfrom
copilot/delete-corinfo-types
Open

Delete obsolete CORINFO_TYPE_... entries#128243
Copilot wants to merge 15 commits into
mainfrom
copilot/delete-corinfo-types

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 15, 2026

Delete CORINFO_TYPE_STRING, legacy CORINFO_TYPE_REFANY, and CORINFO_TYPE_VAR enum slots from the JIT/EE

Copilot AI requested review from Copilot and removed request for Copilot May 15, 2026 03:38
Copilot finished work on behalf of jkotas May 15, 2026 03:38
Copilot AI requested a review from jkotas May 15, 2026 03:38
Comment thread src/coreclr/inc/corinfo.h Outdated
Comment thread src/coreclr/interpreter/compiler.cpp Outdated
Comment thread src/coreclr/interpreter/compiler.cpp Outdated
Comment thread src/coreclr/jit/compiler.cpp Outdated
Comment thread src/coreclr/jit/ee_il_dll.cpp Outdated
Comment thread src/coreclr/jit/ee_il_dll.cpp Outdated
Comment thread src/coreclr/jit/importer.cpp Outdated
Comment thread src/coreclr/jit/lclvars.cpp Outdated
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Copilot AI review requested due to automatic review settings May 15, 2026 03:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CoreCLR JIT/EE CorInfoType contract by removing legacy STRING/REFANY enum entries and reclassifying string as CLASS and typed references as VALUECLASS, with corresponding JIT, VM, interpreter, and SuperPMI cleanup.

Changes:

  • Remaps CORINFO_TYPE_CLASS and CORINFO_TYPE_VALUECLASS enum values and regenerates the JIT/EE version GUID.
  • Removes obsolete CORINFO_TYPE_STRING and CORINFO_TYPE_REFANY switch cases across JIT, VM, interpreter, and SuperPMI code.
  • Adjusts typed-reference handling to flow through value-class paths.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/coreclr/inc/corinfo.h Updates the canonical CorInfoType enum values.
src/coreclr/inc/jiteeversionguid.h Bumps the JIT/EE interface version GUID.
src/coreclr/vm/jitinterface.cpp Maps string to class and typedref to valueclass in VM-to-JIT type conversion.
src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs Mirrors the updated CorInfoType enum for managed JIT interface tooling.
src/coreclr/jit/ee_il_dll.hpp Updates CorInfoType-to-var_type lookup tables for the new enum layout.
src/coreclr/jit/ee_il_dll.cpp Removes obsolete refany-specific size assertion.
src/coreclr/jit/compiler.cpp Removes obsolete refany size special case.
src/coreclr/jit/importer.cpp Updates tailcall argument constraint checks for removed refany type.
src/coreclr/jit/lclvars.cpp Removes obsolete refany pointer classification.
src/coreclr/interpreter/compiler.cpp Removes string/refany cases from interpreter type and async return handling.
src/coreclr/interpreter/naming.cpp Removes string/refany cases from interpreter method-name type formatting.
src/coreclr/tools/superpmi/superpmi-shared/typeutils.cpp Updates SuperPMI type utility helpers for removed enum entries.
src/coreclr/tools/superpmi/superpmi-shared/methodcontext.cpp Updates SuperPMI type string/size helpers.
src/coreclr/tools/superpmi/mcs/verbildump.cpp Removes obsolete string/refany IL-dump cases.

Comment thread src/coreclr/inc/corinfo.h Outdated
Comment thread src/coreclr/interpreter/compiler.cpp
Comment thread src/coreclr/tools/superpmi/mcs/verbildump.cpp
Copilot AI changed the title Delete CORINFO_TYPE_STRING and legacy CORINFO_TYPE_VALUECLASS entries Delete CORINFO_TYPE_STRING and legacy CORINFO_TYPE_VALUECLASS entries; renumber CorInfoType sequentially May 15, 2026
Copilot finished work on behalf of jkotas May 15, 2026 04:16
Copilot AI requested a review from jkotas May 15, 2026 04:16
Comment thread src/coreclr/inc/corinfo.h Outdated
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 15, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jkotas
Copy link
Copy Markdown
Member

jkotas commented May 15, 2026

@copilot Address build breaks:

/__w/1/s/src/mono/browser/emsdk/emscripten/em++ -DBUILDENV_CHECKED=1 -DCOMPILER_SUPPORTS_W_RESERVED_IDENTIFIER -DDEBUG -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_BASICFREEZE -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_CORECLR -DFEATURE_CORECLR_FLUSH_INSTRUCTION_CACHE_TO_PROTECT_STUB_READS -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_INTERPRETER -DFEATURE_JAVAMARSHAL -DFEATURE_MULTICOREJIT -DFEATURE_PAL_ANSI -DFEATURE_PORTABLE_ENTRYPOINTS -DFEATURE_PORTABLE_HELPERS -DFEATURE_READYTORUN -DFEATURE_REMOTE_PROC_MEM -DFEATURE_STATICALLY_LINKED -DFEATURE_SYMDIFF -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_WEBCIL -DHOST_32BIT=1 -DHOST_BROWSER -DHOST_UNIX -DHOST_WASM -DTARGET_32BIT -DTARGET_BROWSER -DTARGET_UNIX -DTARGET_WASM -DTARGET_WASM32 -DUNICODE -DURTBLDENV_FRIENDLY=Checked -D_DBG -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_SECURE_SCL=0 -D_TIME_BITS=64 -D_UNICODE -I/__w/1/s/artifacts/obj/coreclr/browser.wasm.Checked/interpreter -I/__w/1/s/src/coreclr/interpreter -I/__w/1/s/src/native -I/__w/1/s/src/native/inc -I/__w/1/s/src/coreclr/pal/prebuilt/inc -I/__w/1/s/artifacts/obj -I/__w/1/s/src/coreclr/pal/inc -I/__w/1/s/src/coreclr/pal/inc/rt -I/__w/1/s/src/coreclr/pal/src/safecrt -I/__w/1/s/src/coreclr/inc -I/__w/1/s/src/coreclr/debug/inc -I/__w/1/s/src/coreclr/debug/inc/wasm -I/__w/1/s/src/coreclr/debug/inc/dump -I/__w/1/s/src/coreclr/md/inc -I/__w/1/s/artifacts/obj/coreclr/browser.wasm.Checked/inc -I/__w/1/s/src/coreclr/hosts/inc -I/__w/1/s/src/coreclr/interpreter/inc -I/__w/1/s/src/coreclr/minipal -I/__w/1/s/src/coreclr/interpreter/../jitshared -std=gnu++17 -fwasm-exceptions -mbulk-memory -msimd128 -O2 -Wall -Wno-null-conversion -glldb -Wno-unused-parameter -Wno-alloca -Wno-implicit-int-float-conversion -fno-omit-frame-pointer -fno-strict-overflow -fno-strict-aliasing -Werror -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-tautological-compare -Wno-unknown-pragmas -Wimplicit-fallthrough -Wvla -Wno-invalid-offsetof -Wno-unused-but-set-variable -ffp-contract=off -fno-rtti -Wno-unknown-warning-option -ferror-limit=4096 -Wno-unused-private-field -Wno-constant-logical-operand -Wno-pragma-pack -Wno-incompatible-ms-struct -Wno-reserved-identifier -Wno-unsafe-buffer-usage -Wno-single-bit-bitfield-constant-conversion -Wno-cast-function-type-strict -Wno-switch-default -Wno-nontrivial-memaccess -fsigned-char -fvisibility=hidden -ffunction-sections -MD -MT interpreter/CMakeFiles/clrinterpreter_objects.dir/naming.cpp.o -MF interpreter/CMakeFiles/clrinterpreter_objects.dir/naming.cpp.o.d -o interpreter/CMakeFiles/clrinterpreter_objects.dir/naming.cpp.o -c /__w/1/s/src/coreclr/interpreter/naming.cpp
/__w/1/s/src/coreclr/interpreter/naming.cpp:56:9: error: excess elements in array initializer
56 | "typedbyref",

Comment thread src/coreclr/vm/jitinterface.cpp Outdated
Comment thread src/coreclr/vm/jitinterface.cpp Outdated
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Comment thread src/coreclr/jit/lclvars.cpp
Comment thread src/coreclr/interpreter/compiler.cpp

// Generic type variables only appear when we're doing
// verification of generic code, in which case we're running
// in "import only" mode. Annoyingly the "import only"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have import only mode in the JIT for verification anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in e239d06: I removed the obsolete import-only/verification comment block in ee_il_dll.hpp along with the CORINFO_TYPE_VAR mapping cleanup.

@jkotas jkotas changed the title Delete CORINFO_TYPE_STRING, legacy CORINFO_TYPE_REFANY, and CORINFO_TYPE_VAR entries; renumber CorInfoType sequentially Delete obsolete CORINFO_TYPE_... entries May 15, 2026
@jkotas
Copy link
Copy Markdown
Member

jkotas commented May 16, 2026

@copilot Merge from main and resolve conflicts

{
sigSize = info.compCompHnd->getClassSize(clsHnd);
}
else if (cit == CORINFO_TYPE_REFANY)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JIT handles TypedReference as a regular byref-like type. We do not need to special case it in the CORINFO_TYPE_... enum.

…o-types

# Conflicts:
#	src/coreclr/inc/jiteeversionguid.h

Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 16, 2026 19:16
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 16, 2026

@copilot Merge from main and resolve conflicts

Merged latest main and resolved the conflict in jiteeversionguid.h by generating a new JIT/EE GUID in 5ca9b86.

Copilot finished work on behalf of jkotas May 16, 2026 19:17
Copilot AI requested a review from jkotas May 16, 2026 19:17
Comment thread src/coreclr/jit/ee_il_dll.hpp Outdated
Copilot AI review requested due to automatic review settings May 16, 2026 19:28
@jkotas jkotas requested a review from EgorBo May 16, 2026 19:30
@jkotas
Copy link
Copy Markdown
Member

jkotas commented May 16, 2026

@EgorBo PTLA. JIT/EE interface cleanup.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants