llvm.org GIT mirror llvm / 4be836d
[C API] Make the 'lower switch' pass available via the C API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217630 91177308-0d34-0410-b5e6-96231b3b80d8 Juergen Ributzka 5 years ago
2 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8888 /** See llvm::createPartiallyInlineLibCallsPass function. */
8989 void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM);
9090
91 /** See llvm::createLowerSwitchPass function. */
92 void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM);
93
9194 /** See llvm::createPromoteMemoryToRegisterPass function. */
9295 void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
9396
150150 unwrap(PM)->add(createPartiallyInlineLibCallsPass());
151151 }
152152
153 void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM) {
154 unwrap(PM)->add(createLowerSwitchPass());
155 }
156
153157 void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM) {
154158 unwrap(PM)->add(createPromoteMemoryToRegisterPass());
155159 }