[Lldb-commits] [lldb] Enabling Intel GPU Integration. (PR #65539)

Mehdi Amini via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 6 16:58:01 PDT 2023


================
@@ -811,8 +812,13 @@ LogicalResult ConvertAllocOpToGpuRuntimeCallPattern::matchAndRewrite(
   // descriptor.
   Type elementPtrType = this->getElementPtrType(memRefType);
   auto stream = adaptor.getAsyncDependencies().front();
+
+  auto isHostShared = rewriter.create<mlir::LLVM::ConstantOp>(
+      loc, llvmInt64Type, rewriter.getI64IntegerAttr(isShared));
+
   Value allocatedPtr =
-      allocCallBuilder.create(loc, rewriter, {sizeBytes, stream}).getResult();
+      allocCallBuilder.create(loc, rewriter, {sizeBytes, stream, isHostShared})
+          .getResult();
----------------
joker-eph wrote:

I see a unit-test for this: but can you send everything related to `isHostShared` in a separate PR?


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


More information about the lldb-commits mailing list