@@ -782,8 +782,8 @@ class OpenMPIRBuilder {
782
782
// / at the outermost loop of a loop nest. If not set,
783
783
// / defaults to the preheader of the generated loop.
784
784
// / \param Name Base name used to derive BB and instruction names.
785
- // / \param ScanRedInfo Pointer to the ScanInfo objected created using
786
- // / `ScanInfoInitialize`.
785
+ // / \param ScanRedInfo Pointer to the ScanInfo objected created using
786
+ // / `ScanInfoInitialize`.
787
787
// /
788
788
// / \returns A vector containing Loop Info of Input Loop and Scan Loop.
789
789
Expected<SmallVector<llvm::CanonicalLoopInfo *>> createCanonicalScanLoops (
@@ -861,7 +861,7 @@ class OpenMPIRBuilder {
861
861
// / \param Name Base name used to derive BB and instruction names.
862
862
// / \param InScan Whether loop has a scan reduction specified.
863
863
// / \param ScanRedInfo Pointer to the ScanInfo objected created using
864
- // / `ScanInfoInitialize`.
864
+ // / `ScanInfoInitialize`.
865
865
// /
866
866
// / \returns An object representing the created control flow structure which
867
867
// / can be used for loop-associated directives.
@@ -1604,9 +1604,9 @@ class OpenMPIRBuilder {
1604
1604
// / Helper function for CreateCanonicalScanLoops to create InputLoop
1605
1605
// / in the firstGen and Scan Loop in the SecondGen
1606
1606
// / \param InputLoopGen Callback for generating the loop for input phase
1607
- // / \param ScanLoopGen Callback for generating the loop for scan phase
1607
+ // / \param ScanLoopGen Callback for generating the loop for scan phase
1608
1608
// / \param ScanRedInfo Pointer to the ScanInfo objected created using
1609
- // / `ScanInfoInitialize`.
1609
+ // / `ScanInfoInitialize`.
1610
1610
// /
1611
1611
// / \return error if any produced, else return success.
1612
1612
Error emitScanBasedDirectiveIR (
@@ -1615,15 +1615,16 @@ class OpenMPIRBuilder {
1615
1615
ScanInfo *ScanRedInfo);
1616
1616
1617
1617
// / Creates the basic blocks required for scan reduction.
1618
- // / \param ScanRedInfo Pointer to the ScanInfo objected created using
1619
- // / `ScanInfoInitialize`.
1618
+ // / \param ScanRedInfo Pointer to the ScanInfo objected created using
1619
+ // / `ScanInfoInitialize`.
1620
1620
void createScanBBs (ScanInfo *ScanRedInfo);
1621
1621
1622
1622
// / Dynamically allocates the buffer needed for scan reduction.
1623
- // / \param AllocaIP The IP where possibly-shared pointer of buffer needs to be
1624
- // / declared. \param ScanVars Scan Variables.
1625
- // / \param ScanRedInfo Pointer to the ScanInfo objected created using
1626
- // / `ScanInfoInitialize`.
1623
+ // / \param AllocaIP The IP where possibly-shared pointer of buffer needs to
1624
+ // / be declared.
1625
+ // / \param ScanVars Scan Variables.
1626
+ // / \param ScanRedInfo Pointer to the ScanInfo objected created using
1627
+ // / `ScanInfoInitialize`.
1627
1628
// /
1628
1629
// / \return error if any produced, else return success.
1629
1630
Error emitScanBasedDirectiveDeclsIR (InsertPointTy AllocaIP,
@@ -1633,8 +1634,8 @@ class OpenMPIRBuilder {
1633
1634
1634
1635
// / Copies the result back to the reduction variable.
1635
1636
// / \param ReductionInfos Array type containing the ReductionOps.
1636
- // / \param ScanRedInfo Pointer to the ScanInfo objected created using
1637
- // / `ScanInfoInitialize`.
1637
+ // / \param ScanRedInfo Pointer to the ScanInfo objected created using
1638
+ // / `ScanInfoInitialize`.
1638
1639
// /
1639
1640
// / \return error if any produced, else return success.
1640
1641
Error emitScanBasedDirectiveFinalsIR (
@@ -2730,16 +2731,17 @@ class OpenMPIRBuilder {
2730
2731
// / and scan loop returned by `CreateCanonicalScanLoops`. The following
2731
2732
// / is the code that is generated, `buffer` and `span` are expected to be
2732
2733
// / populated before executing the generated code.
2733
- // /
2734
- // / for (int k = 0; k != ceil(log2(span)); ++k) {
2735
- // / i=pow(2,k)
2736
- // / for (size cnt = last_iter; cnt >= i; --cnt)
2737
- // / buffer[cnt] op= buffer[cnt-i];
2738
- // / }
2734
+ // / \code{c}
2735
+ // / for (int k = 0; k != ceil(log2(span)); ++k) {
2736
+ // / i=pow(2,k)
2737
+ // / for (size cnt = last_iter; cnt >= i; --cnt)
2738
+ // / buffer[cnt] op= buffer[cnt-i];
2739
+ // / }
2740
+ // / \endcode
2739
2741
// / \param Loc The insert and source location description.
2740
2742
// / \param ReductionInfos Array type containing the ReductionOps.
2741
- // / \param ScanRedInfo Pointer to the ScanInfo objected created using
2742
- // / `ScanInfoInitialize`.
2743
+ // / \param ScanRedInfo Pointer to the ScanInfo objected created using
2744
+ // / `ScanInfoInitialize`.
2743
2745
// /
2744
2746
// / \returns The insertion position *after* the masked.
2745
2747
InsertPointOrErrorTy emitScanReduction (
@@ -2752,19 +2754,20 @@ class OpenMPIRBuilder {
2752
2754
// / is executed, 2. whether exclusive or inclusive scan is used.
2753
2755
// /
2754
2756
// / \param Loc The insert and source location description.
2755
- // / \param AllocaIP The IP where the temporary buffer for scan reduction
2756
- // needs to be allocated.
2757
- // / \param ScanVars Scan Variables.
2757
+ // / \param AllocaIP The IP where the temporary buffer for scan reduction
2758
+ // needs to be allocated.
2759
+ // / \param ScanVars Scan Variables.
2758
2760
// / \param IsInclusive Whether it is an inclusive or exclusive scan.
2759
- // / \param ScanRedInfo Pointer to the ScanInfo objected created using
2760
- // / `ScanInfoInitialize`.
2761
+ // / \param ScanRedInfo Pointer to the ScanInfo objected created using
2762
+ // / `ScanInfoInitialize`.
2761
2763
// /
2762
2764
// / \returns The insertion position *after* the scan.
2763
2765
InsertPointOrErrorTy createScan (const LocationDescription &Loc,
2764
2766
InsertPointTy AllocaIP,
2765
2767
ArrayRef<llvm::Value *> ScanVars,
2766
2768
ArrayRef<llvm::Type *> ScanVarsType,
2767
2769
bool IsInclusive, ScanInfo *ScanRedInfo);
2770
+
2768
2771
// / Generator for '#omp critical'
2769
2772
// /
2770
2773
// / \param Loc The insert and source location description.
0 commit comments