apple / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.09k stars 320 forks source link

Add libclang API to store and query CAS objects #8937

Closed owenv closed 1 day ago

owenv commented 2 days ago

Allow libclang clients to directly access data and refs of CAS objects, and store new CAS objects

owenv commented 2 days ago

@swift-ci Please test LLVM

akyrtzi commented 1 day ago

I chatted a bit with @owenv, I'm not sure we should be exposing generic CAS APIs from libclang. I suggested to Owen to use the llvm-c CAS API instead for experimentation purposes.

cachemeifyoucan commented 1 day ago

Yeah, using llcas C APIs are probably better if that is the direction we are going. I have a prototype of wrapping some simple API in swift-driver long time ago: https://github.com/apple/swift-driver/pull/1415

owenv commented 1 day ago

sounds good, closing this for now