…t firstprivate
In e57ebfdaef the flag
enableDelayedPrivatizationStaging was removed, enabling
Delayed Privatization for firstprivate on OpenMP target regions,
this resulted in regressions for implicit firstprivate tests:
This commit readds enableDelayedPrivatizationStaging flag for the implicit
case and also guards the explicit change via
`enableDelayedPrivatization` instead of enableDelayedPrivatizationStaging.
21 lines
877 B
C++
21 lines
877 B
C++
//===-- lib/Support/Flags.cpp ---------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "flang/Support/Flags.h"
|
|
|
|
llvm::cl::opt<bool> enableDelayedPrivatization("enable-delayed-privatization",
|
|
llvm::cl::desc(
|
|
"Emit private/local variables as clauses/specifiers on MLIR ops."),
|
|
llvm::cl::init(true));
|
|
|
|
llvm::cl::opt<bool> enableDelayedPrivatizationStaging(
|
|
"enable-delayed-privatization-staging",
|
|
llvm::cl::desc("For partially supported constructs, emit private/local "
|
|
"variables as clauses/specifiers on MLIR ops."),
|
|
llvm::cl::init(false));
|