[PATCH] D58624: [LLVM-C] Expose the "Add Discriminators" Pass To LLVM-C

Robert Widmann via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 09:56:19 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL356272: [LLVM-C] Expose the "Add Discriminators" Pass To LLVM-C (authored by CodaFi, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D58624?vs=188153&id=190845#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58624/new/

https://reviews.llvm.org/D58624

Files:
  llvm/trunk/include/llvm-c/Transforms/Utils.h
  llvm/trunk/lib/Transforms/Utils/Utils.cpp


Index: llvm/trunk/lib/Transforms/Utils/Utils.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Utils/Utils.cpp
+++ llvm/trunk/lib/Transforms/Utils/Utils.cpp
@@ -54,3 +54,6 @@
   unwrap(PM)->add(createPromoteMemoryToRegisterPass());
 }
 
+void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM) {
+  unwrap(PM)->add(createAddDiscriminatorsPass());
+}
Index: llvm/trunk/include/llvm-c/Transforms/Utils.h
===================================================================
--- llvm/trunk/include/llvm-c/Transforms/Utils.h
+++ llvm/trunk/include/llvm-c/Transforms/Utils.h
@@ -38,6 +38,9 @@
 /** See llvm::createPromoteMemoryToRegisterPass function. */
 void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
 
+/** See llvm::createAddDiscriminatorsPass function. */
+void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM);
+
 /**
  * @}
  */


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58624.190845.patch
Type: text/x-patch
Size: 902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190315/93f60397/attachment.bin>


More information about the llvm-commits mailing list