@@ -5966,21 +5966,14 @@ class OMPCanonicalLoopSequenceTransformationDirective
5966
5966
public OMPLoopTransformationDirective {
5967
5967
friend class ASTStmtReader ;
5968
5968
5969
- // / Number of loops contained in the canonical loop sequence.
5970
- unsigned NumLoopsInSequence = 1 ;
5971
-
5972
5969
protected:
5973
5970
explicit OMPCanonicalLoopSequenceTransformationDirective (
5974
5971
StmtClass SC, OpenMPDirectiveKind Kind, SourceLocation StartLoc,
5975
- SourceLocation EndLoc, unsigned NumLoopsInSequence )
5972
+ SourceLocation EndLoc)
5976
5973
: OMPExecutableDirective(SC, Kind, StartLoc, EndLoc),
5977
- OMPLoopTransformationDirective(this ),
5978
- NumLoopsInSequence(NumLoopsInSequence) {}
5974
+ OMPLoopTransformationDirective(this ) {}
5979
5975
5980
5976
public:
5981
- // / Returns the number of canonical loop nests contained in this sequence.
5982
- unsigned getNumLoopsInSequence () const { return NumLoopsInSequence; }
5983
-
5984
5977
// / Get the de-sugared statements after the loop transformation.
5985
5978
// /
5986
5979
// / Might be nullptr if either the directive generates no loops and is handled
@@ -6018,13 +6011,9 @@ class OMPFuseDirective final
6018
6011
TransformedStmtOffset,
6019
6012
};
6020
6013
6021
- unsigned NumGeneratedLoopNests = 1 ;
6022
-
6023
- explicit OMPFuseDirective (SourceLocation StartLoc, SourceLocation EndLoc,
6024
- unsigned NumLoopsInSequence)
6014
+ explicit OMPFuseDirective (SourceLocation StartLoc, SourceLocation EndLoc)
6025
6015
: OMPCanonicalLoopSequenceTransformationDirective(
6026
- OMPFuseDirectiveClass, llvm::omp::OMPD_fuse, StartLoc, EndLoc,
6027
- NumLoopsInSequence) {}
6016
+ OMPFuseDirectiveClass, llvm::omp::OMPD_fuse, StartLoc, EndLoc) {}
6028
6017
6029
6018
void setPreInits (Stmt *PreInits) {
6030
6019
Data->getChildren ()[PreInitsOffset] = PreInits;
@@ -6051,17 +6040,16 @@ class OMPFuseDirective final
6051
6040
// / \param PreInits Helper preinits statements for the loop nest
6052
6041
static OMPFuseDirective *
6053
6042
Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
6054
- ArrayRef<OMPClause *> Clauses, unsigned NumLoops,
6055
- unsigned NumGeneratedTopLevelLoops, Stmt *AssociatedStmt,
6056
- Stmt *TransformedStmt, Stmt *PreInits);
6043
+ ArrayRef<OMPClause *> Clauses, unsigned NumGeneratedTopLevelLoops,
6044
+ Stmt *AssociatedStmt, Stmt *TransformedStmt, Stmt *PreInits);
6057
6045
6058
6046
// / Build an empty '#pragma omp fuse' AST node for deserialization
6059
6047
// /
6060
6048
// / \param C Context of the AST
6061
6049
// / \param NumClauses Number of clauses to allocate
6062
6050
// / \param NumLoops Number of top level loops to allocate
6063
- static OMPFuseDirective *CreateEmpty (const ASTContext &C, unsigned NumClauses,
6064
- unsigned NumLoops );
6051
+ static OMPFuseDirective *CreateEmpty (const ASTContext &C,
6052
+ unsigned NumClauses );
6065
6053
6066
6054
// / Gets the associated loops after the transformation. This is the de-sugared
6067
6055
// / replacement or nulltpr in dependent contexts.
0 commit comments