[flang-commits] [flang] db8e902 - [flang] Rename remaining `__Fortran_PPC_intrinsics` to `__ppc_intrinsics`

Shao-Ce SUN via flang-commits flang-commits at lists.llvm.org
Sat Jun 24 19:16:05 PDT 2023


Author: Shao-Ce SUN
Date: 2023-06-25T10:15:57+08:00
New Revision: db8e902b30d22528f0d72918eb46f141b73c8116

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

LOG: [flang] Rename remaining `__Fortran_PPC_intrinsics` to `__ppc_intrinsics`

Reviewed By: kkwli0

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

Added: 
    

Modified: 
    flang/include/flang/Semantics/semantics.h
    flang/lib/Semantics/semantics.cpp

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Semantics/semantics.h b/flang/include/flang/Semantics/semantics.h
index fee49b37f9f31..57fa564f7a0e9 100644
--- a/flang/include/flang/Semantics/semantics.h
+++ b/flang/include/flang/Semantics/semantics.h
@@ -283,7 +283,7 @@ class SemanticsContext {
   const Scope *builtinsScope_{nullptr}; // module __Fortran_builtins
   Scope *ppcBuiltinTypesScope_{nullptr}; // module __Fortran_PPC_types
   std::optional<const Scope *> cudaBuiltinsScope_; // module __CUDA_builtins
-  const Scope *ppcBuiltinsScope_{nullptr}; // module __Fortran_PPC_intrinsics
+  const Scope *ppcBuiltinsScope_{nullptr}; // module __ppc_intrinsics
   std::list<parser::Program> modFileParseTrees_;
   std::unique_ptr<CommonBlockMap> commonBlockMap_;
   bool anyDefinedIntrinsicOperator_{false};

diff  --git a/flang/lib/Semantics/semantics.cpp b/flang/lib/Semantics/semantics.cpp
index b5ea772c5d100..d7dbe002a666c 100644
--- a/flang/lib/Semantics/semantics.cpp
+++ b/flang/lib/Semantics/semantics.cpp
@@ -519,7 +519,7 @@ bool Semantics::Perform() {
       // Don't try to read the builtins module when we're actually building it.
     } else if (frontModule &&
         std::get<parser::Statement<parser::ModuleStmt>>(frontModule->value().t)
-                .statement.v.source == "__fortran_ppc_intrinsics") {
+                .statement.v.source == "__ppc_intrinsics") {
       // The derived type definition for the vectors is needed.
       context_.UsePPCBuiltinTypesModule();
     } else {


        


More information about the flang-commits mailing list