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

Add jit helper stub for acmp #4841

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Feb 18, 2020

Add jit helper stub for acmp

Related to eclipse-openj9/openj9#8600

Signed-off-by: Tobi Ajila atobia@ca.ibm.com

@Leonardo2718 Leonardo2718 self-assigned this Feb 18, 2020
tajila added a commit to tajila/openj9 that referenced this pull request Feb 18, 2020
Depends on eclipse-omr/omr#4841

Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>
@andrewcraik
Copy link
Contributor

What is this helper going to call when it is evaluated in a code generator? The JIT needs something to call in the VM.

I think we need that before we even start looking to add the symbol to any of the internal JIT infrastructure. When that addition happens I would hope the PR would add the symbol, the ilgen, the evaluation as well as as some kind of integration test showing it passes through the optimizer to the codegen successfully rather than trying to set the aliasing in isolation which is quite likely to result in bugs and unexpected behaviour once the other parts of the JIT implementation are added.

@tajila
Copy link
Contributor Author

tajila commented Feb 18, 2020

What is this helper going to call when it is evaluated in a code generator? The JIT needs something to call in the VM.

The actual JIT helper is in eclipse-openj9/openj9#8600

When that addition happens I would hope the PR would add the symbol, the ilgen, the evaluation as well as as some kind of integration test showing it passes through the optimizer to the codegen successfully rather than trying to set the aliasing in isolation which is quite likely to result in bugs and unexpected behaviour once the other parts of the JIT implementation are added.

I've attempted adding the jit helpers without the il/aliases changes in the past but that resulted in build failures on z/OS. Not sure if that is at all related to what you are describing.

Is there a better way to coordinate these changes? As it stands the openj9 changes will not compile without these omr changes.

{
return findOrCreateRuntimeHelper(TR_acmpHelper, true, true, true);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

The helper references have to live in OMR because of the unfortunate way things are architected at the moment. But does the symbol reference creation need to live here?

@Leonardo2718
Copy link
Contributor

As @0xdaryl pointed out, the name of the helper has to be defined in OMR. However, defining the alias sets and creation will require careful thinking and may be better placed in OpenJ9. So, for this PR, maybe we can just add the name definition and debug printing and leave the rest for later when more of the JIT implementation is ready? That way eclipse-openj9/openj9#8600 can get merged and we can start incrementally testing the rest of the code that is still under development.

I can help figure out some of the details that will be needed, since I'm already working on the OpenJ9 JIT part that will need this.

Related to eclipse-openj9/openj9#8600

Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>
@tajila
Copy link
Contributor Author

tajila commented Feb 18, 2020

Thanks @Leonardo2718 @0xdaryl I've kept the debug and helper changes and removed the rest

Copy link
Contributor

@Leonardo2718 Leonardo2718 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Leonardo2718
Copy link
Contributor

@genie-omr build all

@Leonardo2718
Copy link
Contributor

@andrewcraik @0xdaryl Are you ok with the proposed changed?

@Leonardo2718 Leonardo2718 merged commit ab02944 into eclipse-omr:master Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants