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

[CIR] CallConvLowering for X86 aggregate #1387

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

AdUhTkJm
Copy link
Contributor

This deals with some x86 aggregate types for CallConvLowering pass.

Suppose we have a simple struct like this.

struct dim3 { int x, y, z; };

It can be coerced into

struct dim3_ { uint64_t xy; int z; };

And for a function that receives it as an argument, OG does the following transformation for x86:

void f(dim3 arg) { /* Before */ }
void f(uint64_t xy, int z) { /* After */ }

Now this transformation is implemented in the CallConvLowering pass of CIR.

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.

1 participant