mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Expose more passes to the C API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f34ae32a6b
commit
45e1a53efd
@ -52,6 +52,9 @@ void LLVMAddLICMPass(LLVMPassManagerRef PM);
|
||||
/** See llvm::createLoopDeletionPass function. */
|
||||
void LLVMAddLoopDeletionPass(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createLoopIdiomPass function */
|
||||
void LLVMAddLoopIdiomPass(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createLoopRotatePass function. */
|
||||
void LLVMAddLoopRotatePass(LLVMPassManagerRef PM);
|
||||
|
||||
@ -76,6 +79,9 @@ void LLVMAddSCCPPass(LLVMPassManagerRef PM);
|
||||
/** See llvm::createScalarReplAggregatesPass function. */
|
||||
void LLVMAddScalarReplAggregatesPass(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createScalarReplAggregatesPass function. */
|
||||
void LLVMAddScalarReplAggregatesPassSSA(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createScalarReplAggregatesPass function. */
|
||||
void LLVMAddScalarReplAggregatesPassWithThreshold(LLVMPassManagerRef PM,
|
||||
int Threshold);
|
||||
@ -95,6 +101,12 @@ void LLVMAddDemoteMemoryToRegisterPass(LLVMPassManagerRef PM);
|
||||
/** See llvm::createVerifierPass function. */
|
||||
void LLVMAddVerifierPass(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createCorrelatedValuePropagationPass function */
|
||||
void LLVMAddCorrelatedValuePropagationPass(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createEarlyCSEPass function */
|
||||
void LLVMAddEarlyCSEPass(LLVMPassManagerRef PM);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
@ -101,6 +101,10 @@ void LLVMAddLoopDeletionPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createLoopDeletionPass());
|
||||
}
|
||||
|
||||
void LLVMAddLoopIdiomPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createLoopIdiomPass());
|
||||
}
|
||||
|
||||
void LLVMAddLoopRotatePass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createLoopRotatePass());
|
||||
}
|
||||
@ -133,6 +137,10 @@ void LLVMAddScalarReplAggregatesPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createScalarReplAggregatesPass());
|
||||
}
|
||||
|
||||
void LLVMAddScalarReplAggregatesPassSSA(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createScalarReplAggregatesPass(-1, false));
|
||||
}
|
||||
|
||||
void LLVMAddScalarReplAggregatesPassWithThreshold(LLVMPassManagerRef PM,
|
||||
int Threshold) {
|
||||
unwrap(PM)->add(createScalarReplAggregatesPass(Threshold));
|
||||
@ -157,3 +165,11 @@ void LLVMAddDemoteMemoryToRegisterPass(LLVMPassManagerRef PM) {
|
||||
void LLVMAddVerifierPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createVerifierPass());
|
||||
}
|
||||
|
||||
void LLVMAddCorrelatedValuePropagationPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createCorrelatedValuePropagationPass());
|
||||
}
|
||||
|
||||
void LLVMAddEarlyCSEPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createEarlyCSEPass());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user