[llvm-dev] [RFC] Create llvm/lib/Frontend

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 18 10:12:34 PST 2019


Am Sa., 16. Nov. 2019 um 10:56 Uhr schrieb John McCall via llvm-dev
<llvm-dev at lists.llvm.org>:
> Anyway, if we had that Clang-level library, t would be fairly
> straightforward for someone interoperating with the C ABI to just
> construct the appropriate Clang types and call those APIs.

The main motivation is to have ABI-emitting code (in particular for
OpenMP) shared between clang and flang. This structure would require
flang to have a dependency on clang, but conceptually they are
independent frontends.

De facto, every platform has its ABI defined in terms of C therefore
this would effectively required every frontend to depend on clang. I'd
think of the platform ABI to be independent of the parsing
implementation.

Michael


More information about the llvm-dev mailing list