llvm.org GIT mirror llvm / b52e8dc
[bindings/go] Add coroutine passes Add Go bindings for CoroEarly, CoroSplit, CoroElide and CoroCleanup. Differential Revision: https://reviews.llvm.org/D50951 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340148 91177308-0d34-0410-b5e6-96231b3b80d8 whitequark 1 year, 2 months ago
2 changed file(s) with 25 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 //===- transforms_coroutines.go - Bindings for coroutines -----------------===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines bindings for the coroutines component.
10 //
11 //===----------------------------------------------------------------------===//
12
13 package llvm
14
15 /*
16 #include "llvm-c/Transforms/Coroutines.h"
17 */
18 import "C"
19
20 func (pm PassManager) AddCoroEarlyPass() { C.LLVMAddCoroEarlyPass(pm.C) }
21 func (pm PassManager) AddCoroSplitPass() { C.LLVMAddCoroSplitPass(pm.C) }
22 func (pm PassManager) AddCoroElidePass() { C.LLVMAddCoroElidePass(pm.C) }
23 func (pm PassManager) AddCoroCleanupPass() { C.LLVMAddCoroCleanupPass(pm.C) }
4949 "bitwriter",
5050 "codegen",
5151 "core",
52 "coroutines",
5253 "debuginfodwarf",
5354 "executionengine",
5455 "instrumentation",