llvm.org GIT mirror llvm / 411c9ca
[LLVM-C] Add bindings for addCoroutinePassesToExtensionPoints Summary: This patch adds bindings to C and Go for addCoroutinePassesToExtensionPoints, which is used to add coroutine passes to the correct locations in PassManagerBuilder. Reviewers: whitequark, deadalnix Reviewed By: whitequark Subscribers: mehdi_amini, modocache, llvm-commits Differential Revision: https://reviews.llvm.org/D51642 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343336 91177308-0d34-0410-b5e6-96231b3b80d8 whitequark 9 months ago
3 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6565 func (pmb PassManagerBuilder) UseInlinerWithThreshold(threshold uint) {
6666 C.LLVMPassManagerBuilderUseInlinerWithThreshold(pmb.C, C.uint(threshold))
6767 }
68
69 func (pmb PassManagerBuilder) AddCoroutinePassesToExtensionPoints() {
70 C.LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints(pmb.C);
71 }
7878 LLVMBool Internalize,
7979 LLVMBool RunInliner);
8080
81 /** See llvm::addCoroutinePassesToExtensionPoints. */
82 void LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints(LLVMPassManagerBuilderRef PMB);
83
8184 /**
8285 * @}
8386 */
2929 #include "llvm/Support/CommandLine.h"
3030 #include "llvm/Support/ManagedStatic.h"
3131 #include "llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h"
32 #include "llvm/Transforms/Coroutines.h"
3233 #include "llvm/Transforms/IPO.h"
3334 #include "llvm/Transforms/IPO/ForceFunctionAttrs.h"
3435 #include "llvm/Transforms/IPO/FunctionAttrs.h"
10671068
10681069 Builder->populateLTOPassManager(*LPM);
10691070 }
1071
1072 void
1073 LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints(LLVMPassManagerBuilderRef PMB) {
1074 PassManagerBuilder *Builder = unwrap(PMB);
1075 addCoroutinePassesToExtensionPoints(*Builder);
1076 }