Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Aug 12, 2025

This PR refactors the tir.call_llvm_intrin to omit the first nargs argument in the beginning. Previously the nargs was introduced when prefetch have different number of signature. The previous reason no longer stands as of now, and it is less intuitive to attach nargs for the call_llvm_intrin, where nargs directly appears in number of argument.

After the update, tir.call_llvm_intrin can directly pass in the arguments as it is.

@tqchen
Copy link
Member Author

tqchen commented Aug 12, 2025

Before

T.call_llvm_intrin("type", "llvm.intrin_name", nargs, arg0, arg1, ...)

After

T.call_llvm_intrin("type", "llvm.intrin_name", arg0, arg1, ...)

@tqchen tqchen force-pushed the llvm-intrin branch 3 times, most recently from bcd323c to 501205f Compare August 13, 2025 01:54
This PR refactors the tir.call_llvm_intrin to omit the first nargs argument in the beginning.
Previously the nargs was introduced when prefetch have different number of signature.
The previous reason no longer stands as of now, and it is less intuitive to attach nargs
for the call_llvm_intrin, where nargs directly appears in number of argument.

After the update, tir.call_llvm_intrin can directly pass in the arguments as it is.
@cbalint13 cbalint13 self-assigned this Aug 13, 2025
Copy link
Contributor

@cbalint13 cbalint13 left a comment

Choose a reason for hiding this comment

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

This is really straightforward.
Never investigated why was there, personally I thought it is a IR parsing hint.

@tqchen tqchen merged commit 60f5568 into apache:main Aug 13, 2025
14 checks passed
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.

2 participants