Skip to content

[GEN] Set CConv on CallOp#1221

Merged
whitneywhtsang merged 1 commit intollvm-targetfrom
whitneywhtsang/cconv
Jun 3, 2024
Merged

[GEN] Set CConv on CallOp#1221
whitneywhtsang merged 1 commit intollvm-targetfrom
whitneywhtsang/cconv

Conversation

@whitneywhtsang
Copy link
Copy Markdown
Contributor

address code review comment: #1214 (comment)

Signed-off-by: Whitney Tsang <whitney.tsang@intel.com>
@whitneywhtsang whitneywhtsang force-pushed the whitneywhtsang/cconv branch from b7b9bfd to ef0f30d Compare June 1, 2024 01:21
Copy link
Copy Markdown

@victor-eds victor-eds left a comment

Choose a reason for hiding this comment

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

Maybe we can reuse createDeviceFunctionCall, passing the passthrough attributes as an argument, so we don't need to set cconv in so many places in the code? LGTM as is anyway.

@whitneywhtsang
Copy link
Copy Markdown
Contributor Author

Maybe we can reuse createDeviceFunctionCall, passing the passthrough attributes as an argument, so we don't need to set cconv in so many places in the code? LGTM as is anyway.

In general, I think it is a good idea to have one common function to create all device function. Since we are going to change GenISA usage to OCL functions soon, createDeviceFunctionCall will be used when that happen.

@whitneywhtsang whitneywhtsang merged commit 786dc5e into llvm-target Jun 3, 2024
@whitneywhtsang whitneywhtsang deleted the whitneywhtsang/cconv branch June 3, 2024 16:14
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.

3 participants