Page MenuHomePhabricator

[OpenMP][C-API] Introduce the OpenMP-IR-Builder C-API
Changes PlannedPublic

Authored by jdoerfert on Jul 30 2021, 9:31 AM.



To allow outside user to leverage the OpenMP runtime we need to provide
a C binding for the OpenMP-IR-Builder. It simply wraps the C++ interface
without much complexity. This patch introduces the interface and
provides the (sample) ability to lower a omp barrier.

Diff Detail

Unit TestsFailed

2,880 msx64 debian > MemProfiler-x86_64-linux-dynamic.TestCases::test_malloc_load_store.c
Script: -- : 'RUN: at line 5'; /var/lib/buildkite-agent/builds/llvm-project/build/./bin/clang -fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -shared-libsan -O0 /var/lib/buildkite-agent/builds/llvm-project/compiler-rt/test/memprof/TestCases/test_malloc_load_store.c -o /var/lib/buildkite-agent/builds/llvm-project/build/projects/compiler-rt/test/memprof/X86_64LinuxDynamicConfig/TestCases/Output/test_malloc_load_store.c.tmp

Event Timeline

jdoerfert created this revision.Jul 30 2021, 9:31 AM
jdoerfert requested review of this revision.Jul 30 2021, 9:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2021, 9:31 AM

LGTM, clang-format, does it need tests?

jdoerfert planned changes to this revision.Aug 11 2021, 7:57 PM

Unsure if we still need it, reluctant to press on it if we do not.