[PATCH] D151832: Allow configuring InlinerThreshold in C bindings for the new pass manager
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 13:02:39 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc20a9bb00185: Allow configuring InlinerThreshold in C bindings for the new pass manager (authored by erthalion, committed by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151832/new/
https://reviews.llvm.org/D151832
Files:
llvm/include/llvm-c/Transforms/PassBuilder.h
llvm/lib/Passes/PassBuilderBindings.cpp
Index: llvm/lib/Passes/PassBuilderBindings.cpp
===================================================================
--- llvm/lib/Passes/PassBuilderBindings.cpp
+++ llvm/lib/Passes/PassBuilderBindings.cpp
@@ -139,6 +139,11 @@
unwrap(Options)->PTO.MergeFunctions = MergeFunctions;
}
+void LLVMPassBuilderOptionsSetInlinerThreshold(
+ LLVMPassBuilderOptionsRef Options, int Threshold) {
+ unwrap(Options)->PTO.InlinerThreshold = Threshold;
+}
+
void LLVMDisposePassBuilderOptions(LLVMPassBuilderOptionsRef Options) {
delete unwrap(Options);
}
Index: llvm/include/llvm-c/Transforms/PassBuilder.h
===================================================================
--- llvm/include/llvm-c/Transforms/PassBuilder.h
+++ llvm/include/llvm-c/Transforms/PassBuilder.h
@@ -99,6 +99,9 @@
void LLVMPassBuilderOptionsSetMergeFunctions(LLVMPassBuilderOptionsRef Options,
LLVMBool MergeFunctions);
+void LLVMPassBuilderOptionsSetInlinerThreshold(
+ LLVMPassBuilderOptionsRef Options, int Threshold);
+
/**
* Dispose of a heap-allocated PassBuilderOptions instance
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151832.527579.patch
Type: text/x-patch
Size: 1122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230601/9d28108f/attachment.bin>
More information about the llvm-commits
mailing list