llvm / llvm/llvm-project

[Flang][OpenMP] Implement OpenMP 5.2 metadirective

Open
#188,820 2 comments 0 reactions 1 assignee Claimed by @chichunchen View on GitHub
flang:openmp
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

metadirective in flang is implemented in parsing and sema but the lowering is not done yet.

```fortran
subroutine static_vendor()
!$omp metadirective &
!$omp & when(implementation={vendor(llvm)}: barrier) &
!$omp & otherwise(nothing)
end subroutine
```

error: loc("/ptmp/cchen/metadirective/metadirective_static.f90":1:1): /ptmp/cchen/chichun-llvm-project/flang/lib/Lower/OpenMP/OpenMP.cpp:4201: not yet implemented: METADIRECTIVE
LLVM ERROR: aborting

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.