[polly] Drop const from return types (NFC) (#140837)

This commit is contained in:
Kazu Hirata
2025-05-20 21:38:49 -07:00
committed by GitHub
parent a4782ff903
commit adbe155eee
4 changed files with 6 additions and 6 deletions

View File

@@ -112,7 +112,7 @@ public:
BlockGenerator &getBlockGenerator() { return BlockGen; }
/// Return the parallel subfunctions that have been created.
const ArrayRef<Function *> getParallelSubfunctions() const {
ArrayRef<Function *> getParallelSubfunctions() const {
return ParallelSubfunctions;
}

View File

@@ -855,10 +855,10 @@ public:
}
/// Return a string representation of the access's reduction type.
const std::string getReductionOperatorStr() const;
std::string getReductionOperatorStr() const;
/// Return a string representation of the reduction type @p RT.
static const std::string getReductionOperatorStr(ReductionType RT);
static std::string getReductionOperatorStr(ReductionType RT);
/// Return the element type of the accessed array wrt. this access.
Type *getElementType() const { return ElementType; }

View File

@@ -527,7 +527,7 @@ void MemoryAccess::updateDimensionality() {
}
}
const std::string
std::string
MemoryAccess::getReductionOperatorStr(MemoryAccess::ReductionType RT) {
switch (RT) {
case MemoryAccess::RT_NONE:
@@ -910,7 +910,7 @@ void MemoryAccess::realignParams() {
AccessRelation = AccessRelation.align_params(CtxSpace);
}
const std::string MemoryAccess::getReductionOperatorStr() const {
std::string MemoryAccess::getReductionOperatorStr() const {
return MemoryAccess::getReductionOperatorStr(getReductionType());
}

View File

@@ -134,7 +134,7 @@ static isl_printer *printLine(__isl_take isl_printer *Printer,
}
/// Return all broken reductions as a string of clauses (OpenMP style).
static const std::string getBrokenReductionsStr(const isl::ast_node &Node) {
static std::string getBrokenReductionsStr(const isl::ast_node &Node) {
IslAstInfo::MemoryAccessSet *BrokenReductions;
std::string str;