1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Add replace_all_uses_with to ocaml.

llvm-svn: 97378
This commit is contained in:
Erick Tryzelaar 2010-02-28 09:46:16 +00:00
parent c6e78e3503
commit ab9a70c845
2 changed files with 7 additions and 0 deletions

View File

@ -237,6 +237,8 @@ external type_of : llvalue -> lltype = "llvm_type_of"
external value_name : llvalue -> string = "llvm_value_name" external value_name : llvalue -> string = "llvm_value_name"
external set_value_name : string -> llvalue -> unit = "llvm_set_value_name" external set_value_name : string -> llvalue -> unit = "llvm_set_value_name"
external dump_value : llvalue -> unit = "llvm_dump_value" external dump_value : llvalue -> unit = "llvm_dump_value"
external replace_all_uses_with : llvalue -> llvalue -> unit
= "LLVMReplaceAllUsesWith"
(*--... Operations on constants of (mostly) any type .......................--*) (*--... Operations on constants of (mostly) any type .......................--*)
external is_constant : llvalue -> bool = "llvm_is_constant" external is_constant : llvalue -> bool = "llvm_is_constant"

View File

@ -502,6 +502,11 @@ external set_value_name : string -> llvalue -> unit = "llvm_set_value_name"
error. See the method [llvm::Value::dump]. *) error. See the method [llvm::Value::dump]. *)
external dump_value : llvalue -> unit = "llvm_dump_value" external dump_value : llvalue -> unit = "llvm_dump_value"
(** [replace_all_uses_with old new] replaces all uses of the value [old]
* with the value [new]. See the method [llvm::Value::replaceAllUsesWith]. *)
external replace_all_uses_with : llvalue -> llvalue -> unit
= "LLVMReplaceAllUsesWith"
(** {7 Operations on constants of (mostly) any type} *) (** {7 Operations on constants of (mostly) any type} *)