[llvm] [LLVM][NewPM] Add C API for running the pipeline on a single function. (PR #103773)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 00:26:04 PDT 2024
================
@@ -48,15 +48,24 @@ static TargetMachine *unwrap(LLVMTargetMachineRef P) {
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMPassBuilderOptions,
LLVMPassBuilderOptionsRef)
-LLVMErrorRef LLVMRunPasses(LLVMModuleRef M, const char *Passes,
- LLVMTargetMachineRef TM,
- LLVMPassBuilderOptionsRef Options) {
+LLVMErrorRef RunPasses(LLVMModuleRef M, LLVMValueRef F, const char *Passes,
----------------
nikic wrote:
`static` and rename this so it doesn't look like it's part of the C API.
https://github.com/llvm/llvm-project/pull/103773
More information about the llvm-commits
mailing list