Skip to content

Commit

Permalink
[CodeGen] Remove unused declarations emitNonSPMDParallelCall and emit…
Browse files Browse the repository at this point in the history
…SPMDParallelCall

The corresponding function definitions were removed by:

  commit a2dbfb6
  Author: Giorgis Georgakoudis <georgakoudis1@llnl.gov>
  Date:   Wed Apr 21 11:41:31 2021 -0700
  • Loading branch information
kazutakahirata committed May 27, 2023
1 parent 8078e77 commit 54ab4b3
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions clang/lib/CodeGen/CGOpenMPRuntimeGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,37 +110,6 @@ class CGOpenMPRuntimeGPU : public CGOpenMPRuntime {
bool IsOffloadEntry,
const RegionCodeGenTy &CodeGen) override;

/// Emits code for parallel or serial call of the \a OutlinedFn with
/// variables captured in a record which address is stored in \a
/// CapturedStruct.
/// This call is for the Non-SPMD Execution Mode.
/// \param OutlinedFn Outlined function to be run in parallel threads. Type of
/// this function is void(*)(kmp_int32 *, kmp_int32, struct context_vars*).
/// \param CapturedVars A pointer to the record with the references to
/// variables used in \a OutlinedFn function.
/// \param IfCond Condition in the associated 'if' clause, if it was
/// specified, nullptr otherwise.
void emitNonSPMDParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
llvm::Value *OutlinedFn,
ArrayRef<llvm::Value *> CapturedVars,
const Expr *IfCond);

/// Emits code for parallel or serial call of the \a OutlinedFn with
/// variables captured in a record which address is stored in \a
/// CapturedStruct.
/// This call is for a parallel directive within an SPMD target directive.
/// \param OutlinedFn Outlined function to be run in parallel threads. Type of
/// this function is void(*)(kmp_int32 *, kmp_int32, struct context_vars*).
/// \param CapturedVars A pointer to the record with the references to
/// variables used in \a OutlinedFn function.
/// \param IfCond Condition in the associated 'if' clause, if it was
/// specified, nullptr otherwise.
///
void emitSPMDParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
llvm::Function *OutlinedFn,
ArrayRef<llvm::Value *> CapturedVars,
const Expr *IfCond);

protected:
/// Check if the default location must be constant.
/// Constant for NVPTX for better optimization.
Expand Down

0 comments on commit 54ab4b3

Please sign in to comment.