[Mlir-commits] [mlir] [MLIR][NVVM] Add clusterlaunchcontrol Ops (PR #156585)
Durgadoss R
llvmlistbot at llvm.org
Tue Sep 9 04:26:23 PDT 2025
================
@@ -2088,6 +2106,49 @@ bool NVVM::InlinePtxOp::getAsmValues(
return false; // No manual mapping needed
}
+NVVM::IDArgPair ClusterLaunchControlTryCancelOp::getIntrinsicIDAndArgs(
+ Operation &op, LLVM::ModuleTranslation &mt, llvm::IRBuilderBase &builder) {
+ auto curOp = cast<NVVM::ClusterLaunchControlTryCancelOp>(op);
+ llvm::SmallVector<llvm::Value *> args;
+ args.push_back(mt.lookupValue(curOp.getSmemAddress()));
+ args.push_back(mt.lookupValue(curOp.getMbarrier()));
+
+ return curOp.getMulticast()
----------------
durga4github wrote:
let us do:
```
id = MC ? mc_id : non_mc_id;
return {id, args};
```
to keep it consistent with other places
https://github.com/llvm/llvm-project/pull/156585
More information about the Mlir-commits
mailing list