- Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Closed
Copy link
Labels
debuginfoflang:openmpllvm:openmpirbuilderIssues related to problems in the llvm-project/lib/Frontend/OpenMP/OMPIRBuilder.cppIssues related to problems in the llvm-project/lib/Frontend/OpenMP/OMPIRBuilder.cppmlir:openmp
Description
Consider the following program.
program test implicit none call fn() contains subroutine fn() integer v !$omp parallel private(v) v = 1 !$omp target v = v + 1 !$omp end target !$omp end parallel end subroutine fn end program test when compiled with the following command
flang -fc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=standalone -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -O0
fails with this error.
inlinable function call in a function with debug info must have a !dbg location call void @__omp_offloading_10303_14e985b__QFPfn_l11(ptr %omp.private.alloc) Metadata
Metadata
Assignees
Labels
debuginfoflang:openmpllvm:openmpirbuilderIssues related to problems in the llvm-project/lib/Frontend/OpenMP/OMPIRBuilder.cppIssues related to problems in the llvm-project/lib/Frontend/OpenMP/OMPIRBuilder.cppmlir:openmp