[llvm] r356272 - [LLVM-C] Expose the "Add Discriminators" Pass To LLVM-C
Robert Widmann via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 09:57:23 PDT 2019
Author: codafi
Date: Fri Mar 15 09:57:23 2019
New Revision: 356272
URL: http://llvm.org/viewvc/llvm-project?rev=356272&view=rev
Log:
[LLVM-C] Expose the "Add Discriminators" Pass To LLVM-C
Summary: Add bindings to create a wrapped "Add Discriminators" pass. Now that we have debug info support, this is a handy transform to have.
Reviewers: whitequark, deadalnix
Reviewed By: whitequark
Subscribers: dblaikie, aprantl, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D58624
Modified:
llvm/trunk/include/llvm-c/Transforms/Utils.h
llvm/trunk/lib/Transforms/Utils/Utils.cpp
Modified: llvm/trunk/include/llvm-c/Transforms/Utils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/Utils.h?rev=356272&r1=356271&r2=356272&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Transforms/Utils.h (original)
+++ llvm/trunk/include/llvm-c/Transforms/Utils.h Fri Mar 15 09:57:23 2019
@@ -38,6 +38,9 @@ void LLVMAddLowerSwitchPass(LLVMPassMana
/** See llvm::createPromoteMemoryToRegisterPass function. */
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
+/** See llvm::createAddDiscriminatorsPass function. */
+void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM);
+
/**
* @}
*/
Modified: llvm/trunk/lib/Transforms/Utils/Utils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Utils.cpp?rev=356272&r1=356271&r2=356272&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Utils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Utils.cpp Fri Mar 15 09:57:23 2019
@@ -54,3 +54,6 @@ void LLVMAddPromoteMemoryToRegisterPass(
unwrap(PM)->add(createPromoteMemoryToRegisterPass());
}
+void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM) {
+ unwrap(PM)->add(createAddDiscriminatorsPass());
+}
More information about the llvm-commits
mailing list