diff options
| author | whitequark <whitequark@whitequark.org> | 2018-09-28 16:38:11 +0000 |
|---|---|---|
| committer | whitequark <whitequark@whitequark.org> | 2018-09-28 16:38:11 +0000 |
| commit | 937afbc36585c66d0e7b722a47bbc8154253d778 (patch) | |
| tree | 2f8cbd456ade217239a389d849dcfde4449bbcae /llvm/bindings/go | |
| parent | a5178f5369c499669055e546b87f23a7beb67f26 (diff) | |
| download | bcm5719-llvm-937afbc36585c66d0e7b722a47bbc8154253d778.tar.gz bcm5719-llvm-937afbc36585c66d0e7b722a47bbc8154253d778.zip | |
[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
llvm-svn: 343336
Diffstat (limited to 'llvm/bindings/go')
| -rw-r--r-- | llvm/bindings/go/llvm/transforms_pmbuilder.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/bindings/go/llvm/transforms_pmbuilder.go b/llvm/bindings/go/llvm/transforms_pmbuilder.go index b164e58812b..3298f780f5a 100644 --- a/llvm/bindings/go/llvm/transforms_pmbuilder.go +++ b/llvm/bindings/go/llvm/transforms_pmbuilder.go @@ -66,3 +66,7 @@ func (pmb PassManagerBuilder) SetDisableSimplifyLibCalls(val bool) { func (pmb PassManagerBuilder) UseInlinerWithThreshold(threshold uint) { C.LLVMPassManagerBuilderUseInlinerWithThreshold(pmb.C, C.uint(threshold)) } + +func (pmb PassManagerBuilder) AddCoroutinePassesToExtensionPoints() { + C.LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints(pmb.C); +} |

