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

John McCall via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 18 12:17:35 PST 2019

On 18 Nov 2019, at 13:12, Michael Kruse wrote:
> 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.

Fortunately, nothing about this structure would require you to link
the Clang parser, just the AST.


More information about the llvm-dev mailing list