Skip to content

ir: allow callee of function type in NewCall#74

Closed
mewmew wants to merge 1 commit intollir:masterfrom
mewpull:issue-33
Closed

ir: allow callee of function type in NewCall#74
mewmew wants to merge 1 commit intollir:masterfrom
mewpull:issue-33

Conversation

@mewmew
Copy link
Copy Markdown
Member

@mewmew mewmew commented Mar 2, 2019

Prior to this commit, the callee had to be of pointer
to function type (as is the type of functions declared
in the global scope of the module).

However, to allow inline asm values to have function
type instead of pointer to function type, the type
checking of NewCall is relaxed.

Fixes #33.

Prior to this commit, the callee had to be of pointer
to function type (as is the type of functions declared
in the global scope of the module).

However, to allow inline asm values to have function
type instead of pointer to function type, the type
checking of NewCall is relaxed.

Fixes llir#33.
@mewmew
Copy link
Copy Markdown
Member Author

mewmew commented Mar 2, 2019

DO NOT MERGE

An alternative to this PR is treat to the type of inline asm values as pointer to function type. This may be a better approach (where we would update the asm parser, and perhaps add documentation to the IR package). The benefit would be that callee's always have pointer to function type instead of either function type or pointer to function type.

I guess we just have to decide where we try to handle inconsistencies. Either approach is fine by me, so long as we have the discussion prior. (ref: #33 (comment))

cc: @pwaller :)

@mewmew
Copy link
Copy Markdown
Member Author

mewmew commented Mar 4, 2019

Resolved, see #33 (comment) for further details.

@mewmew mewmew closed this Mar 4, 2019
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