forked from OSchip/llvm-project
[OPENMP] Improved processing of 'priority' clause, NFC.
Removed some old comments + improved handling of 'priority' clause value during codegen after comments from Richard Smith. llvm-svn: 275945
This commit is contained in:
parent
68715551f8
commit
5140e748b5
|
@ -2425,10 +2425,8 @@ void CodeGenFunction::EmitOMPTaskBasedDirective(const OMPExecutableDirective &S,
|
|||
}
|
||||
// Check if the task has 'priority' clause.
|
||||
if (const auto *Clause = S.getSingleClause<OMPPriorityClause>()) {
|
||||
// Runtime currently does not support codegen for priority clause argument.
|
||||
// TODO: Add codegen for priority clause arg when runtime lib support it.
|
||||
auto *Prio = Clause->getPriority();
|
||||
Data.Priority.setInt(Prio);
|
||||
Data.Priority.setInt(/*IntVal=*/true);
|
||||
Data.Priority.setPointer(EmitScalarConversion(
|
||||
EmitScalarExpr(Prio), Prio->getType(),
|
||||
getContext().getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/1),
|
||||
|
|
Loading…
Reference in New Issue