Skip to content

Translate VM Function to C Code - #2842

Merged
benvanik merged 22 commits into
iree-org:mainfrom
iml130:vm-to-cmodule-func-header
Sep 15, 2020
Merged

benvanik merged 22 commits into
iree-org:mainfrom
iml130:vm-to-cmodule-func-header

Conversation

@simon-camp

@simon-camp simon-camp commented Aug 11, 2020 •

Copy link
Copy Markdown

This is a follow up on #2536 and implements the translation of a vm function as outlined in #1173.

Co-authored-by: Marius Brehler [email protected]

@marbre

marbre commented Aug 13, 2020

Copy link
Copy Markdown
Member

Rebased onto main and bumped EmitC submodule (now taking into account the changed dialect registration in LLVM as well as Simon's changes).

@marbre

marbre commented Sep 11, 2020

Copy link
Copy Markdown
Member

Rebased onto main to make Ben's changes introduced with #3091 available and updated the EmitC submodule.

@simon-camp
simon-camp marked this pull request as ready for review September 15, 2020 12:27
@simon-camp
simon-camp requested a review from benvanik September 15, 2020 12:38
@simon-camp

Copy link
Copy Markdown
Author

We added a unit test, which uses (parts of) the generated header. Missing parts will be added in follow up PRs.

@benvanik benvanik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

other than shuffling a file this looks great!

@@ -0,0 +1,22 @@
// Copyright 2020 Google LLC

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should move this into iree/vm/; that way all code that is being cross-compiled for targets is not dependent on anything under iree/compiler/ (and you could, in theory, not have iree/compiler/ set up in your build system at all after the code has been generated)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the suggestion! I shuffled the file and the build passes locally. Thus, I would appreciate if you could merge the PR if the build pipeline I just triggered passes.

@benvanik
benvanik merged commit a398c96 into iree-org:main Sep 15, 2020
@ScottTodd ScottTodd mentioned this pull request Sep 16, 2020
copybara-service Bot pushed a commit that referenced this pull request Sep 16, 2020
* 903f809 Script to update to llvm syncpoint (#3155)
* a398c96 Translate VM Function to C Code (#2842)
* f941efb Multistage docker containers with RBE swiftshader support (#3065)
* b7d5710 [spirv] Extract common SPIR-V target functionalities out (NFC) (#3140)
* f5fe759 Use generated function to compute number of workgroups to be launched. (#3095)
* b89191c Merge google -> main (#3143)

COPYBARA_INTEGRATE_REVIEW=#3160 from ScottTodd:main-to-google 903f809
PiperOrigin-RevId: 331891580
ScottTodd added a commit that referenced this pull request Sep 16, 2020
* 903f809 Script to update to llvm syncpoint (#3155)
* a398c96 Translate VM Function to C Code (#2842)
* f941efb Multistage docker containers with RBE swiftshader support (#3065)
* b7d5710 [spirv] Extract common SPIR-V target functionalities out (NFC) (#3140)
* f5fe759 Use generated function to compute number of workgroups to be launched. (#3095)
* b89191c Merge google -> main (#3143)

COPYBARA_INTEGRATE_REVIEW=#3160 from ScottTodd:main-to-google 903f809
PiperOrigin-RevId: 331891580
@marbre
marbre deleted the vm-to-cmodule-func-header branch September 16, 2020 04:28
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