-
Notifications
You must be signed in to change notification settings - Fork 14
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 minimal support for aarch64 #507
add minimal support for aarch64 #507
Conversation
This pull request was exported from Phabricator. Differential Revision: D61661524 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #507 +/- ##
==========================================
- Coverage 60.80% 60.79% -0.01%
==========================================
Files 126 127 +1
Lines 12493 12498 +5
Branches 2014 2014
==========================================
+ Hits 7596 7598 +2
- Misses 3940 3943 +3
Partials 957 957 ☔ View full report in Codecov by Sentry. |
This pull request was exported from Phabricator. Differential Revision: D61661524 |
Summary: Pull Request resolved: facebookexperimental#507 OI is currently completely incompatible with anything except `x86_64`. Changing that generally is a big effort, but `oilgen` should work on other architectures. Begin adding some support for `aarch64` architecture. This change sets up a file structure for architecture support. It pulls the 2 functions needed to make `Descs.{h,cpp}` architecture agnostic into architecture specific files for `x86_64` and `aarch64`. This enables `oilgen` (the binary) to build. At this stage `oilgen` is unable to generate working code for `aarch64`, but at least this is a step in the right direction. Differential Revision: D61661524
3fb08b4
to
39451c3
Compare
Summary: Pull Request resolved: facebookexperimental#507 OI is currently completely incompatible with anything except `x86_64`. Changing that generally is a big effort, but `oilgen` should work on other architectures. Begin adding some support for `aarch64` architecture. This change sets up a file structure for architecture support. It pulls the 2 functions needed to make `Descs.{h,cpp}` architecture agnostic into architecture specific files for `x86_64` and `aarch64`. This enables `oilgen` (the binary) to build. At this stage `oilgen` is unable to generate working code for `aarch64`, but at least this is a step in the right direction. Differential Revision: D61661524
39451c3
to
c70d6b2
Compare
This pull request was exported from Phabricator. Differential Revision: D61661524 |
|
||
void setProgramCounter(user_regs_struct& regs, uintptr_t pc); | ||
|
||
std::optional<uintptr_t> getReturnValueAddress(const user_regs_struct&); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why return an optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mainly did this to match the existing API, though it was never optional there either. This way it might be possible to part implement an architecture if it's ever difficult to get the return value/guess an arg position in future.
b7b9ac1
into
facebookexperimental:main
Summary:
OI is currently completely incompatible with anything except
x86_64
. Changing that generally is a big effort, butoilgen
should work on other architectures. Begin adding some support foraarch64
architecture.This change sets up a file structure for architecture support. It pulls the 2 functions needed to make
Descs.{h,cpp}
architecture agnostic into architecture specific files forx86_64
andaarch64
. This enablesoilgen
(the binary) to build. At this stageoilgen
is unable to generate working code foraarch64
, but at least this is a step in the right direction.Differential Revision: D61661524