[PATCH] D50951: [bindings/go] Add coroutine passes

whitequark via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 19 16:41:01 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL340148: [bindings/go] Add coroutine passes (authored by whitequark, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D50951?vs=161408&id=161411#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50951

Files:
  llvm/trunk/bindings/go/llvm/transforms_coroutines.go
  llvm/trunk/tools/llvm-go/llvm-go.go


Index: llvm/trunk/tools/llvm-go/llvm-go.go
===================================================================
--- llvm/trunk/tools/llvm-go/llvm-go.go
+++ llvm/trunk/tools/llvm-go/llvm-go.go
@@ -50,6 +50,7 @@
 	"bitwriter",
 	"codegen",
 	"core",
+	"coroutines",
 	"debuginfodwarf",
 	"executionengine",
 	"instrumentation",
Index: llvm/trunk/bindings/go/llvm/transforms_coroutines.go
===================================================================
--- llvm/trunk/bindings/go/llvm/transforms_coroutines.go
+++ llvm/trunk/bindings/go/llvm/transforms_coroutines.go
@@ -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) }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50951.161411.patch
Type: text/x-patch
Size: 1489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180819/faba724d/attachment.bin>


More information about the llvm-commits mailing list