[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
Mon Feb 25 07:30:25 PST 2019
CodaFi created this revision.
CodaFi added a reviewer: whitequark.
Herald added a reviewer: deadalnix.
Herald added subscribers: llvm-commits, hiraditya, aprantl.
Herald added a project: LLVM.
Add bindings to create a wrapped "Add Discriminators" pass. Now that we have debug info support, this is a handy transform to have.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D58624
Files:
llvm/include/llvm-c/Transforms/Utils.h
llvm/lib/Transforms/Utils/Utils.cpp
Index: llvm/lib/Transforms/Utils/Utils.cpp
===================================================================
--- llvm/lib/Transforms/Utils/Utils.cpp
+++ llvm/lib/Transforms/Utils/Utils.cpp
@@ -54,3 +54,6 @@
unwrap(PM)->add(createPromoteMemoryToRegisterPass());
}
+void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM) {
+ unwrap(PM)->add(createAddDiscriminatorsPass());
+}
Index: llvm/include/llvm-c/Transforms/Utils.h
===================================================================
--- llvm/include/llvm-c/Transforms/Utils.h
+++ llvm/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.188153.patch
Type: text/x-patch
Size: 866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190225/42e15214/attachment.bin>
More information about the llvm-commits
mailing list