[llvm] 99119a5 - [OpenMPIRBuilder] Add missing LLVM_ABI annotations

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 06:22:00 PDT 2025


Author: Nikita Popov
Date: 2025-08-20T15:19:08+02:00
New Revision: 99119a5a81c1c786c20ab8acd0fd6ef53648b209

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

LOG: [OpenMPIRBuilder] Add missing LLVM_ABI annotations

Added: 
    

Modified: 
    llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
index f70659120e1e6..1050e3d8b08dd 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
@@ -709,7 +709,7 @@ class OpenMPIRBuilder {
       const LocationDescription &Loc, omp::Directive CanceledDirective);
 
   /// Creates a ScanInfo object, allocates and returns the pointer.
-  Expected<ScanInfo *> scanInfoInitialize();
+  LLVM_ABI Expected<ScanInfo *> scanInfoInitialize();
 
   /// Generator for '#omp parallel'
   ///
@@ -785,10 +785,12 @@ class OpenMPIRBuilder {
   ///                  `ScanInfoInitialize`.
   ///
   /// \returns A vector containing Loop Info of Input Loop and Scan Loop.
-  Expected<SmallVector<llvm::CanonicalLoopInfo *>> createCanonicalScanLoops(
-      const LocationDescription &Loc, LoopBodyGenCallbackTy BodyGenCB,
-      Value *Start, Value *Stop, Value *Step, bool IsSigned, bool InclusiveStop,
-      InsertPointTy ComputeIP, const Twine &Name, ScanInfo *ScanRedInfo);
+  LLVM_ABI Expected<SmallVector<llvm::CanonicalLoopInfo *>>
+  createCanonicalScanLoops(const LocationDescription &Loc,
+                           LoopBodyGenCallbackTy BodyGenCB, Value *Start,
+                           Value *Stop, Value *Step, bool IsSigned,
+                           bool InclusiveStop, InsertPointTy ComputeIP,
+                           const Twine &Name, ScanInfo *ScanRedInfo);
 
   /// Calculate the trip count of a canonical loop.
   ///
@@ -2745,7 +2747,7 @@ class OpenMPIRBuilder {
   ///                       `ScanInfoInitialize`.
   ///
   /// \returns The insertion position *after* the masked.
-  InsertPointOrErrorTy emitScanReduction(
+  LLVM_ABI InsertPointOrErrorTy emitScanReduction(
       const LocationDescription &Loc,
       ArrayRef<llvm::OpenMPIRBuilder::ReductionInfo> ReductionInfos,
       ScanInfo *ScanRedInfo);
@@ -2763,11 +2765,12 @@ class OpenMPIRBuilder {
   ///                    `ScanInfoInitialize`.
   ///
   /// \returns The insertion position *after* the scan.
-  InsertPointOrErrorTy createScan(const LocationDescription &Loc,
-                                  InsertPointTy AllocaIP,
-                                  ArrayRef<llvm::Value *> ScanVars,
-                                  ArrayRef<llvm::Type *> ScanVarsType,
-                                  bool IsInclusive, ScanInfo *ScanRedInfo);
+  LLVM_ABI InsertPointOrErrorTy createScan(const LocationDescription &Loc,
+                                           InsertPointTy AllocaIP,
+                                           ArrayRef<llvm::Value *> ScanVars,
+                                           ArrayRef<llvm::Type *> ScanVarsType,
+                                           bool IsInclusive,
+                                           ScanInfo *ScanRedInfo);
 
   /// Generator for '#omp critical'
   ///


        


More information about the llvm-commits mailing list