diff options
author | Arthur Eubanks <aeubanks@google.com> | 2022-12-20 13:36:20 -0800 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2023-02-07 12:56:05 -0800 |
commit | 15977742d3ebba05a33a8eac3201ebba9c9f10e3 (patch) | |
tree | c6c4abefc8f18bab86fe33eede03751be987fbd4 /llvm/bindings | |
parent | a2569a76e034d98b067805d3c577d46eb6766506 (diff) | |
download | llvm-15977742d3ebba05a33a8eac3201ebba9c9f10e3.zip llvm-15977742d3ebba05a33a8eac3201ebba9c9f10e3.tar.gz llvm-15977742d3ebba05a33a8eac3201ebba9c9f10e3.tar.bz2 |
Reland [LegacyPM] Remove some legacy passes
These are part of the optimization pipeline, of which the legacy pass manager version is deprecated.
Namely
* Internalize
* StripSymbols
* StripNonDebugSymbols
* StripDeadDebugInfo
* StripDeadPrototypes
* VectorCombine
* WarnMissedTransformations
Fixed previously failing ocaml tests (one of them seems to already be failing?)
Diffstat (limited to 'llvm/bindings')
-rw-r--r-- | llvm/bindings/ocaml/transforms/ipo/ipo_ocaml.c | 17 | ||||
-rw-r--r-- | llvm/bindings/ocaml/transforms/ipo/llvm_ipo.ml | 9 | ||||
-rw-r--r-- | llvm/bindings/ocaml/transforms/ipo/llvm_ipo.mli | 15 |
3 files changed, 0 insertions, 41 deletions
diff --git a/llvm/bindings/ocaml/transforms/ipo/ipo_ocaml.c b/llvm/bindings/ocaml/transforms/ipo/ipo_ocaml.c index 35d296f..d93028a 100644 --- a/llvm/bindings/ocaml/transforms/ipo/ipo_ocaml.c +++ b/llvm/bindings/ocaml/transforms/ipo/ipo_ocaml.c @@ -67,20 +67,3 @@ value llvm_add_ipsccp(LLVMPassManagerRef PM) { return Val_unit; } -/* [`Module] Llvm.PassManager.t -> all_but_main:bool -> unit */ -value llvm_add_internalize(LLVMPassManagerRef PM, value AllButMain) { - LLVMAddInternalizePass(PM, Bool_val(AllButMain)); - return Val_unit; -} - -/* [`Module] Llvm.PassManager.t -> unit */ -value llvm_add_strip_dead_prototypes(LLVMPassManagerRef PM) { - LLVMAddStripDeadPrototypesPass(PM); - return Val_unit; -} - -/* [`Module] Llvm.PassManager.t -> unit */ -value llvm_add_strip_symbols(LLVMPassManagerRef PM) { - LLVMAddStripSymbolsPass(PM); - return Val_unit; -} diff --git a/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.ml b/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.ml index 7bbebe4..553d55c 100644 --- a/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.ml +++ b/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.ml @@ -30,12 +30,3 @@ external add_global_optimizer external add_ipsccp : [ `Module ] Llvm.PassManager.t -> unit = "llvm_add_ipsccp" -external add_internalize - : [ `Module ] Llvm.PassManager.t -> all_but_main:bool -> unit - = "llvm_add_internalize" -external add_strip_dead_prototypes - : [ `Module ] Llvm.PassManager.t -> unit - = "llvm_add_strip_dead_prototypes" -external add_strip_symbols - : [ `Module ] Llvm.PassManager.t -> unit - = "llvm_add_strip_symbols" diff --git a/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.mli b/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.mli index c37ab2e..7177a30 100644 --- a/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.mli +++ b/llvm/bindings/ocaml/transforms/ipo/llvm_ipo.mli @@ -50,18 +50,3 @@ external add_global_optimizer external add_ipsccp : [ `Module ] Llvm.PassManager.t -> unit = "llvm_add_ipsccp" - -(** See the [llvm::createInternalizePass] function. *) -external add_internalize - : [ `Module ] Llvm.PassManager.t -> all_but_main:bool -> unit - = "llvm_add_internalize" - -(** See the [llvm::createStripDeadPrototypesPass] function. *) -external add_strip_dead_prototypes - : [ `Module ] Llvm.PassManager.t -> unit - = "llvm_add_strip_dead_prototypes" - -(** See the [llvm::createStripSymbolsPass] function. *) -external add_strip_symbols - : [ `Module ] Llvm.PassManager.t -> unit - = "llvm_add_strip_symbols" |