summaryrefslogtreecommitdiff
path: root/bindings/ocaml/llvm/llvm.mli
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2011-10-06 12:13:11 +0000
committerTorok Edwin <edwintorok@gmail.com>2011-10-06 12:13:11 +0000
commit4f661ab0fb87f97c4a12912249c3c366df882102 (patch)
tree673ddc9c55602ec3fcd07f6c1687718620e8b002 /bindings/ocaml/llvm/llvm.mli
parentc44943ed4f4f2d44b6668e6b51eb355f8310660c (diff)
downloadllvm-4f661ab0fb87f97c4a12912249c3c366df882102.tar.gz
llvm-4f661ab0fb87f97c4a12912249c3c366df882102.tar.bz2
llvm-4f661ab0fb87f97c4a12912249c3c366df882102.tar.xz
ocaml/C bindings: getmdstring, add num_op, get_op should work on metadata too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml/llvm/llvm.mli')
-rw-r--r--bindings/ocaml/llvm/llvm.mli8
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm.mli b/bindings/ocaml/llvm/llvm.mli
index c070170134..b4b9622b63 100644
--- a/bindings/ocaml/llvm/llvm.mli
+++ b/bindings/ocaml/llvm/llvm.mli
@@ -571,6 +571,14 @@ val mdstring : llcontext -> string -> llvalue
See the method [llvm::MDNode::get]. *)
val mdnode : llcontext -> llvalue array -> llvalue
+(** [get_mdstring v] returns the MDString.
+ * See the method [llvm::MDString::getString] *)
+val get_mdstring : llvalue -> string option
+
+(** [get_named_metadata m name] return all the MDNodes belonging to the named
+ * metadata (if any).
+ * See the method [llvm::NamedMDNode::getOperand]. *)
+val get_named_metadata : llmodule -> string -> llvalue array
(** {7 Operations on scalar constants} *)