[Openmp-commits] [openmp] 8e5c1b0 - [OpenMP][libomptarget] Change synchronize_ty return type to int32_t

Ye Luo via Openmp-commits openmp-commits at lists.llvm.org
Mon Sep 6 19:39:25 PDT 2021


Author: Ye Luo
Date: 2021-09-06T21:38:54-05:00
New Revision: 8e5c1b039eaf2697621d8f613fb9054533642add

URL: https://github.com/llvm/llvm-project/commit/8e5c1b039eaf2697621d8f613fb9054533642add
DIFF: https://github.com/llvm/llvm-project/commit/8e5c1b039eaf2697621d8f613fb9054533642add.diff

LOG: [OpenMP][libomptarget] Change synchronize_ty return type to int32_t

Plugins always return int32_t. Stay consistent with other functions which return error status.

Differential Revision: https://reviews.llvm.org/D109341

Added: 
    

Modified: 
    openmp/libomptarget/src/rtl.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/src/rtl.h b/openmp/libomptarget/src/rtl.h
index 88328d23a5284..c5b1c4abffe51 100644
--- a/openmp/libomptarget/src/rtl.h
+++ b/openmp/libomptarget/src/rtl.h
@@ -52,7 +52,7 @@ struct RTLInfoTy {
                                             int32_t, uint64_t,
                                             __tgt_async_info *);
   typedef int64_t(init_requires_ty)(int64_t);
-  typedef int64_t(synchronize_ty)(int32_t, __tgt_async_info *);
+  typedef int32_t(synchronize_ty)(int32_t, __tgt_async_info *);
   typedef int32_t (*register_lib_ty)(__tgt_bin_desc *);
   typedef int32_t(supports_empty_images_ty)();
   typedef void(print_device_info_ty)(int32_t);


        


More information about the Openmp-commits mailing list