[flang-commits] [flang] [flang][cuda][NFC] Add missing default values (PR #117610)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Mon Nov 25 11:03:23 PST 2024
https://github.com/clementval created https://github.com/llvm/llvm-project/pull/117610
Make it homogenous with other runtime entry points.
>From ebbe48b698bcb3481e55503b353a94038f592fc9 Mon Sep 17 00:00:00 2001
From: Valentin Clement <clementval at gmail.com>
Date: Mon, 25 Nov 2024 11:02:20 -0800
Subject: [PATCH] [flang][cuda][NFC] Add missing default values
---
flang/include/flang/Runtime/CUDA/allocatable.h | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/flang/include/flang/Runtime/CUDA/allocatable.h b/flang/include/flang/Runtime/CUDA/allocatable.h
index bbfcd2cafcdb21..be18b2b705bbcd 100644
--- a/flang/include/flang/Runtime/CUDA/allocatable.h
+++ b/flang/include/flang/Runtime/CUDA/allocatable.h
@@ -25,14 +25,16 @@ int RTDECL(CUFAllocatableAllocate)(Descriptor &, bool hasStat = false,
/// Perform allocation of the descriptor without synchronization. Assign data
/// from source.
int RTDEF(CUFAllocatableAllocateSource)(Descriptor &alloc,
- const Descriptor &source, bool hasStat, const Descriptor *errMsg,
- const char *sourceFile, int sourceLine);
+ const Descriptor &source, bool hasStat = false,
+ const Descriptor *errMsg = nullptr, const char *sourceFile = nullptr,
+ int sourceLine = 0);
/// Perform allocation of the descriptor with synchronization of it when
/// necessary. Assign data from source.
int RTDEF(CUFAllocatableAllocateSourceSync)(Descriptor &alloc,
- const Descriptor &source, bool hasStat, const Descriptor *errMsg,
- const char *sourceFile, int sourceLine);
+ const Descriptor &source, bool hasStat = false,
+ const Descriptor *errMsg = nullptr, const char *sourceFile = nullptr,
+ int sourceLine = 0);
/// Perform deallocation of the descriptor with synchronization of it when
/// necessary.
More information about the flang-commits
mailing list