message: Add support for scalar arguments in kernel invocations.
diff: @@ -330,6 +330,8 @@ Status InsertBufferLoadPreduleIntoKernel(
  builder.create<mlir::LLVM::StoreOp>(loc, offset, structOffsetAddr);
  // Fill the shape.
  auto shape = operand->shape();
  + // Unless the operand is a scalar pointer, also fill shape and strides.
  + if (!shape.dimensions().empty()) {
  auto entry_type =
  struct_type.getStructElementType(3).getArrayElementType();
  // TODO(b/137624192) Pass in the descriptor to allow for dynamic shapes.
  @@ -365,6 +367,7 @@ Status InsertBufferLoadPreduleIntoKernel(
  }
  builder.create<mlir::LLVM::StoreOp>(loc, accumulator, strideEntryPtr);
  }
  + }
  // Now we can use the descriptor instead of the original argument.
  value->replaceAllUsesWith(descPtr);
  }
  