Skip to content

Commit

Permalink
[Flang][Lower] NFC: Remove unused function to reduce delta
Browse files Browse the repository at this point in the history
This was most likely left behind during a merge that removed all uses.
  • Loading branch information
skatrak committed Aug 13, 2024
1 parent d878a91 commit 253eb25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions flang/lib/Lower/OpenMP/ReductionProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ ReductionProcessor::ReductionIdentifier ReductionProcessor::getReductionType(
}
}

void ReductionProcessor::addReductionSym(
const omp::clause::Reduction &reduction,
llvm::SmallVectorImpl<const Fortran::semantics::Symbol *> &symbols) {
const auto &objectList{std::get<omp::ObjectList>(reduction.t)};
llvm::transform(objectList, std::back_inserter(symbols),
[](const Object &object) { return object.sym(); });
}

bool ReductionProcessor::supportedIntrinsicProcReduction(
const omp::clause::ProcedureDesignator &pd) {
semantics::Symbol *sym = pd.v.sym();
Expand Down
4 changes: 0 additions & 4 deletions flang/lib/Lower/OpenMP/ReductionProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ class ReductionProcessor {
mlir::Type type, mlir::Value op1,
mlir::Value op2);

static void addReductionSym(
const omp::clause::Reduction &reduction,
llvm::SmallVectorImpl<const Fortran::semantics::Symbol *> &symbols);

/// Creates an OpenMP reduction declaration and inserts it into the provided
/// symbol table. The declaration has a constant initializer with the neutral
/// value `initValue`, and the reduction combiner carried over from `reduce`.
Expand Down

0 comments on commit 253eb25

Please sign in to comment.