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:
parent
41ea9f9d7a
commit
54ca0ea307
24
bindings/go/llvm/transforms_coroutines.go
Normal file
24
bindings/go/llvm/transforms_coroutines.go
Normal 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) }
|
@ -50,6 +50,7 @@ var components = []string{
|
||||
"bitwriter",
|
||||
"codegen",
|
||||
"core",
|
||||
"coroutines",
|
||||
"debuginfodwarf",
|
||||
"executionengine",
|
||||
"instrumentation",
|
||||
|
Loading…
Reference in New Issue
Block a user