[flang-commits] [flang] 4194e8d - [flang][cuda][NFC] Fix grammar in CanCUDASymbolHasSave function name (#109234)

via flang-commits flang-commits at lists.llvm.org
Wed Sep 18 22:14:35 PDT 2024


Author: Valentin Clement (バレンタイン クレメン)
Date: 2024-09-18T22:14:30-07:00
New Revision: 4194e8dea52a23949f81a611cbd91148404714cc

URL: https://github.com/llvm/llvm-project/commit/4194e8dea52a23949f81a611cbd91148404714cc
DIFF: https://github.com/llvm/llvm-project/commit/4194e8dea52a23949f81a611cbd91148404714cc.diff

LOG: [flang][cuda][NFC] Fix grammar in CanCUDASymbolHasSave function name (#109234)

Added: 
    

Modified: 
    flang/include/flang/Evaluate/tools.h
    flang/lib/Evaluate/tools.cpp

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Evaluate/tools.h b/flang/include/flang/Evaluate/tools.h
index a0487e399d936c..d2887b69cc6de1 100644
--- a/flang/include/flang/Evaluate/tools.h
+++ b/flang/include/flang/Evaluate/tools.h
@@ -1259,7 +1259,7 @@ bool CheckForCoindexedObject(parser::ContextualMessages &,
     const std::optional<ActualArgument> &, const std::string &procName,
     const std::string &argName);
 
-inline bool CanCUDASymbolHasSave(const Symbol &sym) {
+inline bool CanCUDASymbolHaveSaveAttr(const Symbol &sym) {
   if (const auto *details =
           sym.GetUltimate().detailsIf<semantics::ObjectEntityDetails>()) {
     if (details->cudaDataAttr() &&

diff  --git a/flang/lib/Evaluate/tools.cpp b/flang/lib/Evaluate/tools.cpp
index 400f27aef98da6..c2545a87099426 100644
--- a/flang/lib/Evaluate/tools.cpp
+++ b/flang/lib/Evaluate/tools.cpp
@@ -1700,7 +1700,7 @@ bool IsSaved(const Symbol &original) {
           (features.IsEnabled(
                common::LanguageFeature::SaveBigMainProgramVariables) &&
               symbol.size() > 32)) &&
-      Fortran::evaluate::CanCUDASymbolHasSave(symbol)) {
+      Fortran::evaluate::CanCUDASymbolHaveSaveAttr(symbol)) {
     // With SaveBigMainProgramVariables, keeping all unsaved main program
     // variables of 32 bytes or less on the stack allows keeping numerical and
     // logical scalars, small scalar characters or derived, small arrays, and


        


More information about the flang-commits mailing list