[flang-commits] [clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)
Alexey Bataev via flang-commits
flang-commits at lists.llvm.org
Mon Dec 15 05:57:55 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) {
----------------
alexey-bataev wrote:
It is meaningless, the result of this analysis is unused in codegen. You just check the presence of the clause, the argument is unused completely. Why do we need this analysis? Are you sure the codegen is correct?
https://github.com/llvm/llvm-project/pull/166810
More information about the flang-commits
mailing list