[llvm] [clang-tools-extra] [mlir] [clang] [MLIR] Enable GPU Dialect to SYCL runtime integration (PR #71430)

Sang Ik Lee via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 13 15:27:33 PST 2023


================
@@ -377,10 +394,21 @@ llvm::LaunchKernel::createKernelLaunch(mlir::gpu::LaunchFuncOp op,
   if (!binary)
     return op.emitError() << "Couldn't find the binary: " << binaryIdentifier;
 
+  llvm::Constant *paramsCount =
+      llvm::ConstantInt::get(i64Ty, op.getNumKernelOperands());
+
+  std::string binarySizeIdentifier = getBinarySizeIdentifier(moduleName);
+  Value *binarySizeVar = module.getGlobalVariable(binarySizeIdentifier, true);
----------------
silee2 wrote:

Done.

https://github.com/llvm/llvm-project/pull/71430


More information about the cfe-commits mailing list