-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[mlir][rocdl] Add GlobalLoadAsyncToLDS operation #165374
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
Changes from 1 commit
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 |
|---|---|---|
|
|
@@ -692,6 +692,39 @@ def ROCDL_GlobalLoadLDSOp : | |
| }]; | ||
| } | ||
|
|
||
| //===---------------------------------------------------------------------===// | ||
| // Async load to LDS intrinsic (available in GFX1250) | ||
| //===---------------------------------------------------------------------===// | ||
|
|
||
| class ROCDL_GlobalLoadAsyncToLDSOp<string mnemonic> : | ||
| ROCDL_IntrOp<mnemonic, [], [], [], 0, 0, 1, 0, [2, 3], ["offset", "aux"]> { | ||
| dag args = (ins Arg<ROCDLGlobalBuffer, "", [MemRead]>:$globalPtr, | ||
| Arg<ROCDLBufferLDS, "", [MemWrite]>:$ldsPtr, | ||
| I32Attr:$offset, | ||
| I32Attr:$aux); | ||
| let arguments = !con(args, baseArgs); | ||
| let assemblyFormat = [{ | ||
| $globalPtr `,` $ldsPtr `,` $offset `,` $aux | ||
| attr-dict `:` type($globalPtr) | ||
| }]; | ||
| let description = [{ | ||
| Loads data asynchronously from a global memory pointer to a local data | ||
| store (LDS) pointer. | ||
|
|
||
| Available on gfx1250+. | ||
| }]; | ||
| let extraClassDefinition = [{ | ||
| ::llvm::SmallVector<::mlir::Value> $cppClass::getAccessedOperands() { | ||
| return {getGlobalPtr(), getLdsPtr()}; | ||
| } | ||
| }]; | ||
| } | ||
|
|
||
| def ROCDL_GlobalLoadAsyncToLDSB8Op : ROCDL_GlobalLoadAsyncToLDSOp<"global.load.async.to.lds.b8">; | ||
| def ROCDL_GlobalLoadAsyncToLDSB32Op : ROCDL_GlobalLoadAsyncToLDSOp<"global.load.async.to.lds.b32">; | ||
| def ROCDL_GlobalLoadAsyncToLDSB64Op : ROCDL_GlobalLoadAsyncToLDSOp<"global.load.async.to.lds.b64">; | ||
| def ROCDL_GlobalLoadAsyncToLDSB128Op : ROCDL_GlobalLoadAsyncToLDSOp<"global.load.async.to.lds.b128">; | ||
|
||
|
|
||
| //===---------------------------------------------------------------------===// | ||
| // Tensor load/store intrinsics (available in GFX1250) | ||
| //===---------------------------------------------------------------------===// | ||
|
|
||
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.
Seconding Ravil's nits here.