llvm.org GIT mirror llvm / 733bbec
Go binding: Add methods for missing PassManagerBuilder C APIs Patch by Ryuichi Hayashida! Differential Revision: http://reviews.llvm.org/D30042 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295420 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Wilkins 3 years ago
1 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4242 C.LLVMPassManagerBuilderPopulateFunctionPassManager(pmb.C, pm.C)
4343 }
4444
45 func (pmb PassManagerBuilder) PopulateLTOPassManager(pm PassManager, internalize bool, runInliner bool) {
46 C.LLVMPassManagerBuilderPopulateLTOPassManager(pmb.C, pm.C, boolToLLVMBool(internalize), boolToLLVMBool(runInliner))
47 }
48
4549 func (pmb PassManagerBuilder) Dispose() {
4650 C.LLVMPassManagerBuilderDispose(pmb.C)
4751 }
52
53 func (pmb PassManagerBuilder) SetDisableUnitAtATime(val bool) {
54 C.LLVMPassManagerBuilderSetDisableUnitAtATime(pmb.C, boolToLLVMBool(val))
55 }
56
57 func (pmb PassManagerBuilder) SetDisableUnrollLoops(val bool) {
58 C.LLVMPassManagerBuilderSetDisableUnrollLoops(pmb.C, boolToLLVMBool(val))
59 }
60
61 func (pmb PassManagerBuilder) SetDisableSimplifyLibCalls(val bool) {
62 C.LLVMPassManagerBuilderSetDisableSimplifyLibCalls(pmb.C, boolToLLVMBool(val))
63 }
64
65 func (pmb PassManagerBuilder) UseInlinerWithThreshold(threshold uint) {
66 C.LLVMPassManagerBuilderUseInlinerWithThreshold(pmb.C, C.uint(threshold))
67 }