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

[Hexagon][LLVM][CodeGen] Make CodeGenHexagon a subclass of CodeGenCPU #10908

Merged
merged 7 commits into from
Apr 6, 2022

Conversation

supersat
Copy link
Contributor

@supersat supersat commented Apr 5, 2022

There is a lot of duplicate code between CodeGenCPU and CodeGenHexagon, and I suspect this will increase over time. This PR removes this duplicate code and makes CodeGenHexagon a subclass of CodeGenCPU.

@supersat
Copy link
Contributor Author

supersat commented Apr 5, 2022

@kparzysz-quic
Copy link
Contributor

Nice! I'll try it downstream, hopefully it still works. :D

Copy link
Contributor

@csullivan csullivan left a comment

Choose a reason for hiding this comment

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

🎉 I'll let @kparzysz-quic merge after checking with downstream.

@mehrdadh mehrdadh self-assigned this Apr 6, 2022
Copy link
Member

@mehrdadh mehrdadh left a comment

Choose a reason for hiding this comment

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

LGTM!

@mehrdadh mehrdadh merged commit bad24dd into apache:main Apr 6, 2022
@mehrdadh
Copy link
Member

mehrdadh commented Apr 6, 2022

@supersat @kparzysz-quic @csullivan thanks! PR is merged!

pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
…apache#10908)

* Initial pass at making CodeGenHexagon a subclass of CodeGenCPU

* More cleanup of CodeGenHexagon

* Remove unused func_handle_map_ from CodeGenHexagon

* Remove CreateCallExtern and CreateCallPacked from CodeGenHexagon

* Code style fixes

* Run clang-format-10 over codegen_hexagon.cc
mehrdadh pushed a commit to mehrdadh/tvm that referenced this pull request Apr 11, 2022
…apache#10908)

* Initial pass at making CodeGenHexagon a subclass of CodeGenCPU

* More cleanup of CodeGenHexagon

* Remove unused func_handle_map_ from CodeGenHexagon

* Remove CreateCallExtern and CreateCallPacked from CodeGenHexagon

* Code style fixes

* Run clang-format-10 over codegen_hexagon.cc
Lucien0 pushed a commit to Lucien0/tvm that referenced this pull request Apr 19, 2022
…apache#10908)

* Initial pass at making CodeGenHexagon a subclass of CodeGenCPU

* More cleanup of CodeGenHexagon

* Remove unused func_handle_map_ from CodeGenHexagon

* Remove CreateCallExtern and CreateCallPacked from CodeGenHexagon

* Code style fixes

* Run clang-format-10 over codegen_hexagon.cc
altanh pushed a commit to altanh/tvm that referenced this pull request Apr 28, 2022
…apache#10908)

* Initial pass at making CodeGenHexagon a subclass of CodeGenCPU

* More cleanup of CodeGenHexagon

* Remove unused func_handle_map_ from CodeGenHexagon

* Remove CreateCallExtern and CreateCallPacked from CodeGenHexagon

* Code style fixes

* Run clang-format-10 over codegen_hexagon.cc
@supersat supersat deleted the hexagon-subclass-cpu branch May 11, 2022 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants