mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
ocaml bindings: introduce classify_value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -201,6 +201,30 @@ module Opcode = struct
|
||||
| Unwind
|
||||
end
|
||||
|
||||
module ValueKind = struct
|
||||
type t =
|
||||
| NullValue
|
||||
| Argument
|
||||
| BasicBlock
|
||||
| InlineAsm
|
||||
| MDNode
|
||||
| MDString
|
||||
| BlockAddress
|
||||
| ConstantAggregateZero
|
||||
| ConstantArray
|
||||
| ConstantExpr
|
||||
| ConstantFP
|
||||
| ConstantInt
|
||||
| ConstantPointerNull
|
||||
| ConstantStruct
|
||||
| ConstantVector
|
||||
| Function
|
||||
| GlobalAlias
|
||||
| GlobalVariable
|
||||
| UndefValue
|
||||
| Instruction of Opcode.t
|
||||
end
|
||||
|
||||
exception IoError of string
|
||||
|
||||
external register_exns : exn -> unit = "llvm_register_core_exns"
|
||||
@@ -290,6 +314,7 @@ external vector_size : lltype -> int = "llvm_vector_size"
|
||||
external void_type : llcontext -> lltype = "llvm_void_type"
|
||||
external label_type : llcontext -> lltype = "llvm_label_type"
|
||||
|
||||
external classify_value : llvalue -> ValueKind.t = "llvm_classify_value"
|
||||
(*===-- Values ------------------------------------------------------------===*)
|
||||
external type_of : llvalue -> lltype = "llvm_type_of"
|
||||
external value_name : llvalue -> string = "llvm_value_name"
|
||||
|
Reference in New Issue
Block a user