1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[bindings/go] Add coroutine passes

Add Go bindings for CoroEarly, CoroSplit, CoroElide and CoroCleanup.

Differential Revision: https://reviews.llvm.org/D50951

llvm-svn: 340148
This commit is contained in:
whitequark 2018-08-19 23:40:05 +00:00
parent 41ea9f9d7a
commit 54ca0ea307
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
//===- transforms_coroutines.go - Bindings for coroutines -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines bindings for the coroutines component.
//
//===----------------------------------------------------------------------===//
package llvm
/*
#include "llvm-c/Transforms/Coroutines.h"
*/
import "C"
func (pm PassManager) AddCoroEarlyPass() { C.LLVMAddCoroEarlyPass(pm.C) }
func (pm PassManager) AddCoroSplitPass() { C.LLVMAddCoroSplitPass(pm.C) }
func (pm PassManager) AddCoroElidePass() { C.LLVMAddCoroElidePass(pm.C) }
func (pm PassManager) AddCoroCleanupPass() { C.LLVMAddCoroCleanupPass(pm.C) }

View File

@ -50,6 +50,7 @@ var components = []string{
"bitwriter",
"codegen",
"core",
"coroutines",
"debuginfodwarf",
"executionengine",
"instrumentation",