[PATCH] D51642: [LLVM-C] Add bindings for addCoroutinePassesToExtensionPoints
whitequark via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 28 09:39:45 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343336: [LLVM-C] Add bindings for addCoroutinePassesToExtensionPoints (authored by whitequark, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51642?vs=163854&id=167501#toc
Repository:
rL LLVM
https://reviews.llvm.org/D51642
Files:
llvm/trunk/bindings/go/llvm/transforms_pmbuilder.go
llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
Index: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -30,6 +30,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h"
+#include "llvm/Transforms/Coroutines.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/ForceFunctionAttrs.h"
#include "llvm/Transforms/IPO/FunctionAttrs.h"
@@ -1068,3 +1069,9 @@
Builder->populateLTOPassManager(*LPM);
}
+
+void
+LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints(LLVMPassManagerBuilderRef PMB) {
+ PassManagerBuilder *Builder = unwrap(PMB);
+ addCoroutinePassesToExtensionPoints(*Builder);
+}
Index: llvm/trunk/bindings/go/llvm/transforms_pmbuilder.go
===================================================================
--- llvm/trunk/bindings/go/llvm/transforms_pmbuilder.go
+++ llvm/trunk/bindings/go/llvm/transforms_pmbuilder.go
@@ -66,3 +66,7 @@
func (pmb PassManagerBuilder) UseInlinerWithThreshold(threshold uint) {
C.LLVMPassManagerBuilderUseInlinerWithThreshold(pmb.C, C.uint(threshold))
}
+
+func (pmb PassManagerBuilder) AddCoroutinePassesToExtensionPoints() {
+ C.LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints(pmb.C);
+}
Index: llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h
===================================================================
--- llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h
+++ llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h
@@ -79,6 +79,9 @@
LLVMBool Internalize,
LLVMBool RunInliner);
+/** See llvm::addCoroutinePassesToExtensionPoints. */
+void LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints(LLVMPassManagerBuilderRef PMB);
+
/**
* @}
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51642.167501.patch
Type: text/x-patch
Size: 2006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180928/ca2b160c/attachment.bin>
More information about the llvm-commits
mailing list