[NewPM] Add C bindings for new pass manager
authorMats Larsen <me@supergrecko.com>
Mon, 17 May 2021 18:03:47 +0000 (11:03 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 17 May 2021 18:45:47 +0000 (11:45 -0700)
commit0c557db617112b429e5abfbcec72d181221bfead
tree475a941f3ed48aff69cfe38d6861ccd1dd756a33
parent5879da496cdf44e50cbd8ea062aa36370e218fdb
[NewPM] Add C bindings for new pass manager

This patch contains the bare minimum to run the new Pass Manager from the LLVM-C APIs. It does not feature PGOOptions, PassPlugins or Debugify in its current state. Bugzilla: PR48499

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D102136
llvm/include/llvm-c/Transforms/PassBuilder.h [new file with mode: 0644]
llvm/lib/Passes/CMakeLists.txt
llvm/lib/Passes/PassBuilderBindings.cpp [new file with mode: 0644]
llvm/unittests/Passes/CMakeLists.txt
llvm/unittests/Passes/PassBuilderBindingsTest.cpp [new file with mode: 0644]