[flang-commits] [flang] deab4e9 - [flang][cuda][NFC] Add missing default values (#117610)
via flang-commits
flang-commits at lists.llvm.org
Mon Nov 25 12:57:34 PST 2024
Author: Valentin Clement (バレンタイン クレメン)
Date: 2024-11-25T12:57:31-08:00
New Revision: deab4e9ab26d6e2c095c04821d17c68cca43a174
URL: https://github.com/llvm/llvm-project/commit/deab4e9ab26d6e2c095c04821d17c68cca43a174
DIFF: https://github.com/llvm/llvm-project/commit/deab4e9ab26d6e2c095c04821d17c68cca43a174.diff
LOG: [flang][cuda][NFC] Add missing default values (#117610)
Make it homogenous with other runtime entry points.
Added:
Modified:
flang/include/flang/Runtime/CUDA/allocatable.h
Removed:
################################################################################
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