-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Update load intrinsic attributes #101562
Update load intrinsic attributes #101562
Changes from 4 commits
ef47e3d
725139a
1155f36
663a518
2546ab1
64b6cf4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4699,7 +4699,7 @@ def int_nvvm_redux_sync_or : ClangBuiltin<"__nvvm_redux_sync_or">, | |
class NVVM_WMMA_LD<WMMA_REGS Frag, string Layout, int WithStride> | ||
: Intrinsic<Frag.regs, | ||
!if(WithStride, [llvm_anyptr_ty, llvm_i32_ty], [llvm_anyptr_ty]), | ||
[IntrReadMem, IntrArgMemOnly, IntrNoCallback, ReadOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>], | ||
[IntrWillReturn, IntrReadMem, IntrArgMemOnly, IntrNoCallback, ReadOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jholewinski I think this is fine, but then wonder why it is only added to this one intrinsic. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For some extra context, this batch of changes was motivated by #99999 which slightly changes some behavior related to intrinsics that are treated as loads in the SDAG. Of the NVVM intrinsics affected by that, this was the only one that seemed to be missing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah thanks, sorry missed that. Makes sense :) |
||
WMMA_NAME_LDST<"load", Frag, Layout, WithStride>.intr>; | ||
|
||
// WMMA.STORE.D | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use default attrs here as well? From a quick search, these are normal (non-synchronizing) vector loads.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally avoided since these inherit from
VecInt
, but created classDefaultAttrsVecInt
which inherits fromDefaultAttrsIntrinsic
instead ofIntrinsic
which should accomplish this.