Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Mark methods specially handled in JitInterface Intrinsic #26209

Merged
merged 3 commits into from
Aug 22, 2019

Conversation

MichalStrehovsky
Copy link
Member

For CPAOT compiler's sake.

@jkotas
Copy link
Member

jkotas commented Aug 16, 2019

Maybe also replace pMT->GetModule()->IsSystem() in getMethodInfoHelper with ftn->IsJitIntrinsic()? It will ensure that all these methods are marked correctly.

@jkotas jkotas closed this Aug 17, 2019
@jkotas jkotas reopened this Aug 17, 2019
@@ -141,6 +141,7 @@ public static T CreateInstance<T>()
return (T)((RuntimeType)typeof(T)).CreateInstanceDefaultCtor(publicOnly: true, skipCheckThis: true, fillCache: true, wrapExceptions: true);
}

[System.Runtime.CompilerServices.Intrinsic]
Copy link
Member

Choose a reason for hiding this comment

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

This should not be marked as Intrinsic. Instead, CreateInstance<T>() should be marked as Intrinsic, I think.

@jkotas jkotas merged commit 2173d92 into dotnet:master Aug 22, 2019
@MichalStrehovsky
Copy link
Member Author

Nit: We have using for these everywhere else, maybe follow the same style here?

@jkotas - sorry, missed this comment. Only noticed it now when I came back to delete the branch.

@MichalStrehovsky MichalStrehovsky deleted the markIntrinsic branch August 22, 2019 17:21
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…clr#26209)

* Mark methods specially handled in JitInterface Intrinsic

For CPAOT compiler's sake.


Commit migrated from dotnet/coreclr@2173d92
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants