@@ -716,20 +716,15 @@ val subtypes : lltype -> lltype array
716
716
[ty]. See the method [llvm::ArrayType::get]. *)
717
717
val array_type : lltype -> int -> lltype
718
718
719
- (* * [pointer_type ty ] returns the pointer type referencing objects of type
720
- [ty] in the default address space (0).
719
+ (* * [pointer_type context ] returns the pointer type in the default
720
+ address space (0).
721
721
See the method [llvm::PointerType::getUnqual]. *)
722
- val pointer_type : lltype -> lltype
722
+ val pointer_type : llcontext -> lltype
723
723
724
- (* * [qualified_pointer_type ty as ] returns the pointer type referencing objects
725
- of type [ty] in address space [as ].
724
+ (* * [qualified_pointer_type context sp ] returns the pointer type referencing
725
+ objects in address space [sp ].
726
726
See the method [llvm::PointerType::get]. *)
727
- val qualified_pointer_type : lltype -> int -> lltype
728
-
729
- (* * [pointer_type_in_context context as] returns the opaque pointer type
730
- referencing objects in address space [as].
731
- See the method [llvm::PointerType::get]. *)
732
- val pointer_type_in_context : llcontext -> int -> lltype
727
+ val qualified_pointer_type : llcontext -> int -> lltype
733
728
734
729
(* * [vector_type ty n] returns the array type containing [n] elements of the
735
730
primitive type [ty]. See the method [llvm::ArrayType::get]. *)
@@ -1168,16 +1163,11 @@ val const_lshr : llvalue -> llvalue -> llvalue
1168
1163
See the method [llvm::ConstantExpr::getAShr]. *)
1169
1164
val const_ashr : llvalue -> llvalue -> llvalue
1170
1165
1171
- (* * [const_gep pc indices] returns the constant [getElementPtr] of [pc] with the
1172
- constant integers indices from the array [indices].
1173
- See the method [llvm::ConstantExpr::getGetElementPtr]. *)
1174
- val const_gep : llvalue -> llvalue array -> llvalue
1175
-
1176
- (* * [const_gep2 srcty pc indices] returns the constant [getElementPtr] of [pc]
1166
+ (* * [const_gep srcty pc indices] returns the constant [getElementPtr] of [pc]
1177
1167
with source element type [srcty] and the constant integers indices from the
1178
1168
array [indices].
1179
1169
See the method [llvm::ConstantExpr::getGetElementPtr]. *)
1180
- val const_gep2 : lltype -> llvalue -> llvalue array -> llvalue
1170
+ val const_gep : lltype -> llvalue -> llvalue array -> llvalue
1181
1171
1182
1172
(* * [const_in_bounds_gep pc indices] returns the constant [getElementPtr] of [pc]
1183
1173
with the constant integers indices from the array [indices].
@@ -1509,15 +1499,10 @@ val set_externally_initialized : bool -> llvalue -> unit
1509
1499
1510
1500
(* * {7 Operations on aliases} *)
1511
1501
1512
- (* * [add_alias m t a n] inserts an alias in the module [m] with the type [t] and
1513
- the aliasee [a] with the name [n].
1502
+ (* * [add_alias m vt sp a n] inserts an alias in the module [m] with the value
1503
+ type [vt] the address space [sp] the aliasee [a] with the name [n].
1514
1504
See the constructor for [llvm::GlobalAlias]. *)
1515
- val add_alias : llmodule -> lltype -> llvalue -> string -> llvalue
1516
-
1517
- (* * [add_alias m vt as a n] inserts an alias in the module [m] with the value
1518
- type [vt] the address space [as] the aliasee [a] with the name [n].
1519
- See the constructor for [llvm::GlobalAlias]. *)
1520
- val add_alias2 : llmodule -> lltype -> int -> llvalue -> string -> llvalue
1505
+ val add_alias : llmodule -> lltype -> int -> llvalue -> string -> llvalue
1521
1506
1522
1507
(* * {7 Operations on functions} *)
1523
1508
@@ -2097,19 +2082,12 @@ val build_indirect_br : llvalue -> int -> llbuilder -> llvalue
2097
2082
See the method [llvm::IndirectBrInst::addDestination]. **)
2098
2083
val add_destination : llvalue -> llbasicblock -> unit
2099
2084
2100
- (* * [build_invoke fn args tobb unwindbb name b] creates an
2085
+ (* * [build_invoke fnty fn args tobb unwindbb name b] creates an
2101
2086
[%name = invoke %fn(args) to %tobb unwind %unwindbb]
2102
2087
instruction at the position specified by the instruction builder [b].
2103
2088
See the method [llvm::LLVMBuilder::CreateInvoke]. *)
2104
- val build_invoke : llvalue -> llvalue array -> llbasicblock ->
2105
- llbasicblock -> string -> llbuilder -> llvalue
2106
-
2107
- (* * [build_invoke2 fnty fn args tobb unwindbb name b] creates an
2108
- [%name = invoke %fn(args) to %tobb unwind %unwindbb]
2109
- instruction at the position specified by the instruction builder [b].
2110
- See the method [llvm::LLVMBuilder::CreateInvoke]. *)
2111
- val build_invoke2 : lltype -> llvalue -> llvalue array -> llbasicblock ->
2112
- llbasicblock -> string -> llbuilder -> llvalue
2089
+ val build_invoke : lltype -> llvalue -> llvalue array -> llbasicblock ->
2090
+ llbasicblock -> string -> llbuilder -> llvalue
2113
2091
2114
2092
(* * [build_landingpad ty persfn numclauses name b] creates an
2115
2093
[landingpad]
@@ -2345,17 +2323,11 @@ val build_alloca : lltype -> string -> llbuilder -> llvalue
2345
2323
val build_array_alloca : lltype -> llvalue -> string -> llbuilder ->
2346
2324
llvalue
2347
2325
2348
- (* * [build_load v name b] creates a
2349
- [%name = load %v]
2350
- instruction at the position specified by the instruction builder [b].
2351
- See the method [llvm::LLVMBuilder::CreateLoad]. *)
2352
- val build_load : llvalue -> string -> llbuilder -> llvalue
2353
-
2354
- (* * [build_load2 ty v name b] creates a
2326
+ (* * [build_load ty v name b] creates a
2355
2327
[%name = load %ty, %v]
2356
2328
instruction at the position specified by the instruction builder [b].
2357
2329
See the method [llvm::LLVMBuilder::CreateLoad]. *)
2358
- val build_load2 : lltype -> llvalue -> string -> llbuilder -> llvalue
2330
+ val build_load : lltype -> llvalue -> string -> llbuilder -> llvalue
2359
2331
2360
2332
(* * [build_store v p b] creates a
2361
2333
[store %v, %p]
@@ -2371,46 +2343,26 @@ val build_store : llvalue -> llvalue -> llbuilder -> llvalue
2371
2343
val build_atomicrmw : AtomicRMWBinOp .t -> llvalue -> llvalue ->
2372
2344
AtomicOrdering .t -> bool -> string -> llbuilder -> llvalue
2373
2345
2374
- (* * [build_gep p indices name b] creates a
2375
- [%name = getelementptr %p, indices...]
2376
- instruction at the position specified by the instruction builder [b].
2377
- See the method [llvm::LLVMBuilder::CreateGetElementPtr]. *)
2378
- val build_gep : llvalue -> llvalue array -> string -> llbuilder -> llvalue
2379
-
2380
- (* * [build_gep2 srcty p indices name b] creates a
2346
+ (* * [build_gep srcty p indices name b] creates a
2381
2347
[%name = getelementptr srcty, %p, indices...]
2382
2348
instruction at the position specified by the instruction builder [b].
2383
2349
See the method [llvm::LLVMBuilder::CreateGetElementPtr]. *)
2384
- val build_gep2 : lltype -> llvalue -> llvalue array -> string -> llbuilder ->
2385
- llvalue
2350
+ val build_gep : lltype -> llvalue -> llvalue array -> string -> llbuilder ->
2351
+ llvalue
2386
2352
2387
- (* * [build_in_bounds_gep p indices name b] creates a
2388
- [%name = gelementptr inbounds %p, indices...]
2389
- instruction at the position specified by the instruction builder [b].
2390
- See the method [llvm::LLVMBuilder::CreateInBoundsGetElementPtr]. *)
2391
- val build_in_bounds_gep : llvalue -> llvalue array -> string -> llbuilder ->
2392
- llvalue
2393
-
2394
- (* * [build_in_bounds_gep2 srcty p indices name b] creates a
2353
+ (* * [build_in_bounds_gep srcty p indices name b] creates a
2395
2354
[%name = gelementptr inbounds srcty, %p, indices...]
2396
2355
instruction at the position specified by the instruction builder [b].
2397
2356
See the method [llvm::LLVMBuilder::CreateInBoundsGetElementPtr]. *)
2398
- val build_in_bounds_gep2 : lltype -> llvalue -> llvalue array -> string ->
2399
- llbuilder -> llvalue
2400
-
2401
- (* * [build_struct_gep p idx name b] creates a
2402
- [%name = getelementptr %p, 0, idx]
2403
- instruction at the position specified by the instruction builder [b].
2404
- See the method [llvm::LLVMBuilder::CreateStructGetElementPtr]. *)
2405
- val build_struct_gep : llvalue -> int -> string -> llbuilder ->
2406
- llvalue
2357
+ val build_in_bounds_gep : lltype -> llvalue -> llvalue array -> string ->
2358
+ llbuilder -> llvalue
2407
2359
2408
- (* * [build_struct_gep2 srcty p idx name b] creates a
2360
+ (* * [build_struct_gep srcty p idx name b] creates a
2409
2361
[%name = getelementptr srcty, %p, 0, idx]
2410
2362
instruction at the position specified by the instruction builder [b].
2411
2363
See the method [llvm::LLVMBuilder::CreateStructGetElementPtr]. *)
2412
- val build_struct_gep2 : lltype -> llvalue -> int -> string -> llbuilder ->
2413
- llvalue
2364
+ val build_struct_gep : lltype -> llvalue -> int -> string -> llbuilder ->
2365
+ llvalue
2414
2366
2415
2367
(* * [build_global_string str name b] creates a series of instructions that adds
2416
2368
a global string at the position specified by the instruction builder [b].
@@ -2565,18 +2517,12 @@ val build_phi : (llvalue * llbasicblock) list -> string -> llbuilder ->
2565
2517
See the method [llvm::LLVMBuilder::CreatePHI]. *)
2566
2518
val build_empty_phi : lltype -> string -> llbuilder -> llvalue
2567
2519
2568
- (* * [build_call fn args name b] creates a
2569
- [%name = call %fn(args...)]
2570
- instruction at the position specified by the instruction builder [b].
2571
- See the method [llvm::LLVMBuilder::CreateCall]. *)
2572
- val build_call : llvalue -> llvalue array -> string -> llbuilder -> llvalue
2573
-
2574
- (* * [build_call2 fnty fn args name b] creates a
2520
+ (* * [build_call fnty fn args name b] creates a
2575
2521
[%name = call %fn(args...)]
2576
2522
instruction at the position specified by the instruction builder [b].
2577
2523
See the method [llvm::LLVMBuilder::CreateCall]. *)
2578
- val build_call2 : lltype -> llvalue -> llvalue array -> string -> llbuilder ->
2579
- llvalue
2524
+ val build_call : lltype -> llvalue -> llvalue array -> string -> llbuilder ->
2525
+ llvalue
2580
2526
2581
2527
(* * [build_select cond thenv elsev name b] creates a
2582
2528
[%name = select %cond, %thenv, %elsev]
@@ -2638,18 +2584,12 @@ val build_is_null : llvalue -> string -> llbuilder -> llvalue
2638
2584
See the method [llvm::LLVMBuilder::CreateIsNotNull]. *)
2639
2585
val build_is_not_null : llvalue -> string -> llbuilder -> llvalue
2640
2586
2641
- (* * [build_ptrdiff lhs rhs name b] creates a series of instructions that measure
2642
- the difference between two pointer values at the position specified by the
2643
- instruction builder [b].
2644
- See the method [llvm::LLVMBuilder::CreatePtrDiff]. *)
2645
- val build_ptrdiff : llvalue -> llvalue -> string -> llbuilder -> llvalue
2646
-
2647
- (* * [build_ptrdiff2 elemty lhs rhs name b] creates a series of instructions
2587
+ (* * [build_ptrdiff elemty lhs rhs name b] creates a series of instructions
2648
2588
that measure the difference between two pointer values in multiples of
2649
2589
[elemty] at the position specified by the instruction builder [b].
2650
2590
See the method [llvm::LLVMBuilder::CreatePtrDiff]. *)
2651
- val build_ptrdiff2 : lltype -> llvalue -> llvalue -> string -> llbuilder ->
2652
- llvalue
2591
+ val build_ptrdiff : lltype -> llvalue -> llvalue -> string -> llbuilder ->
2592
+ llvalue
2653
2593
2654
2594
(* * [build_freeze x name b] creates a
2655
2595
[%name = freeze %x]
0 commit comments