Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change some uses of EA_PTRSIZE to TARGET_POINTER_SIZE #49964

Closed
wants to merge 1 commit into from

Conversation

yowl
Copy link
Contributor

@yowl yowl commented Mar 21, 2021

This PR changes some occurrences of EA_PTRSIZE to TARGET_POINTER_SIZE for the clrjit. This arises from the experimental work in dotnet/runtimelab#647 where the LLVM target does not have EA_PTRSIZE defined - its in instr.h which is not included as the clrjit for LLVM does not proceed past the Rationalized LIR phase.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 21, 2021
@jkotas
Copy link
Member

jkotas commented Mar 21, 2021

cc @dotnet/jit-contrib

The point of this change is to avoid use of EA_PTRSIZE outside emitter.

src/coreclr/jit/typelist.h Show resolved Hide resolved
@@ -19775,7 +19775,7 @@ void Compiler::impInlineInitVars(InlineInfo* pInlineInfo)
return;
}
}
else if (genTypeSize(sigType) < EA_PTRSIZE)
else if (genTypeSize(sigType) < TARGET_POINTER_SIZE)
Copy link
Member

Choose a reason for hiding this comment

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

This is a good change.

@jkotas
Copy link
Member

jkotas commented Mar 23, 2021

Superseded by #50066

@jkotas jkotas closed this Mar 23, 2021
@yowl
Copy link
Contributor Author

yowl commented Mar 23, 2021

@BruceForstall @jkotas Thanks for picking this up.

@yowl yowl deleted the eaptr-target branch March 23, 2021 13:45
@JulieLeeMSFT JulieLeeMSFT added this to the 6.0.0 milestone Mar 23, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

4 participants