[flang-commits] [clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)

Zahira Ammarguellat via flang-commits flang-commits at lists.llvm.org
Mon Dec 15 05:53:14 PST 2025


================
@@ -17424,6 +17431,47 @@ OMPClause *SemaOpenMP::ActOnOpenMPThreadsetClause(OpenMPThreadsetKind Kind,
       OMPThreadsetClause(Kind, KindLoc, StartLoc, LParenLoc, EndLoc);
 }
 
+/// Retrieves the `omp_impex_t` type from the current scope and adds the `const`
+/// qualifier.
+///
+/// @param S The Sema object used for symbol resolution.
+/// @param Loc The source location for diagnostic messages.
+/// @returns A `QualType` representing the `omp_impex_t` type with the `const`
+/// qualifier, or an invalid `QualType` if the type cannot be found.
+static QualType getOMPImpexT(Sema &S, SourceLocation Loc) {
----------------
zahiraam wrote:

This is used in `ActOnOpenMPTransparentClause`.
No need for this?
`QualType ImpexTy = getOMPImpexT(SemaRef, ImpexTypeArg->getExprLoc());`
`if (ImpexTy.isNull())`
  `return nullptr;`


https://github.com/llvm/llvm-project/pull/166810


More information about the flang-commits mailing list