[flang-commits] [flang] b4b9ed7 - [flang][openacc][NFC] Remove unused function
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Wed May 24 14:00:52 PDT 2023
Author: Valentin Clement
Date: 2023-05-24T14:00:46-07:00
New Revision: b4b9ed75d363ef135d44bdfc384a4d7eaea0947f
URL: https://github.com/llvm/llvm-project/commit/b4b9ed75d363ef135d44bdfc384a4d7eaea0947f
DIFF: https://github.com/llvm/llvm-project/commit/b4b9ed75d363ef135d44bdfc384a4d7eaea0947f.diff
LOG: [flang][openacc][NFC] Remove unused function
Now that operands have moved to the new data operands lowering, this
function is not used anymore.
Reviewed By: vzakhari
Differential Revision: https://reviews.llvm.org/D151357
Added:
Modified:
flang/lib/Lower/OpenACC.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 371f5484c09c..306b799f3643 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -526,29 +526,6 @@ genPrivatizations(const Fortran::parser::AccObjectList &objectList,
}
}
-template <typename Clause>
-static void genObjectListWithModifier(
- const Clause *x, Fortran::lower::AbstractConverter &converter,
- Fortran::semantics::SemanticsContext &semanticsContext,
- Fortran::lower::StatementContext &stmtCtx,
- Fortran::parser::AccDataModifier::Modifier mod,
- llvm::SmallVectorImpl<mlir::Value> &operandsWithModifier,
- llvm::SmallVectorImpl<mlir::Value> &operands) {
- const Fortran::parser::AccObjectListWithModifier &listWithModifier = x->v;
- const auto &accObjectList =
- std::get<Fortran::parser::AccObjectList>(listWithModifier.t);
- const auto &modifier =
- std::get<std::optional<Fortran::parser::AccDataModifier>>(
- listWithModifier.t);
- if (modifier && (*modifier).v == mod) {
- genObjectList(accObjectList, converter, semanticsContext, stmtCtx,
- operandsWithModifier);
- } else {
- genObjectList(accObjectList, converter, semanticsContext, stmtCtx,
- operands);
- }
-}
-
static void
addOperands(llvm::SmallVectorImpl<mlir::Value> &operands,
llvm::SmallVectorImpl<int32_t> &operandSegments,
More information about the flang-commits
mailing list