Home
last modified time | relevance | path

Searched refs:i32_type (Results 1 – 9 of 9) sorted by relevance

/external/llvm/test/Bindings/OCaml/
Dcore.ml31 let i32_type = Llvm.i32_type context var
73 insist ("i32" = (string_of_lltype i32_type));
74 let c = const_int i32_type 42 in
103 let c = const_int i32_type (-1) in
105 insist (i32_type = type_of c);
128 let c = const_int_of_string i32_type "-1" 10 in
130 insist (i32_type = type_of c);
199 let three = const_int i32_type 3 in
200 let four = const_int i32_type 4 in
205 let c = const_array i32_type [| three; four |] in
[all …]
Dexecutionengine.ml19 let i32_type = Llvm.i32_type context var
31 let fn = define_function "getglobal" (function_type i32_type [||]) m in
38 let fn = define_function "plus" (function_type i32_type [| i32_type;
39 i32_type |]) m in
56 ignore (define_global "globvar" (const_int i32_type 23) m);
64 (* let g = declare_function "g" (function_type i32_type [||]) m2 in
105 if ty != i32_type && ty != i64_type then bomb "target_data did not work";
Dtarget.ml18 let i32_type = Llvm.i32_type context var
46 let sty = struct_type context [| i32_type; i64_type |] in
51 assert_equal (DL.intptr_type context dl) i32_type;
53 assert_equal (DL.qualified_intptr_type context 0 dl) i32_type;
Dirreader.ml41 insist ((global_initializer foo) = (const_int (i32_type context) 42))
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_conv.c92 struct lp_type i32_type = lp_type_int_vec(32, 32 * src_type.length); in lp_build_half_to_float() local
95 LLVMTypeRef int_vec_type = lp_build_vec_type(gallivm, i32_type); in lp_build_half_to_float()
99 LLVMValueRef i32_13 = lp_build_const_int_vec(gallivm, i32_type, 13); in lp_build_half_to_float()
100 LLVMValueRef i32_16 = lp_build_const_int_vec(gallivm, i32_type, 16); in lp_build_half_to_float()
101 LLVMValueRef i32_mask_nosign = lp_build_const_int_vec(gallivm, i32_type, 0x7fff); in lp_build_half_to_float()
102 LLVMValueRef i32_was_infnan = lp_build_const_int_vec(gallivm, i32_type, 0x7bff); in lp_build_half_to_float()
103 LLVMValueRef i32_exp_infnan = lp_build_const_int_vec(gallivm, i32_type, 0xff << 23); in lp_build_half_to_float()
105 … lp_build_const_int_vec(gallivm, i32_type, (254 - 15) << 23), in lp_build_half_to_float()
119 …LLVMValueRef b_wasinfnan = lp_build_compare(gallivm, i32_type, PIPE_FUNC_GREATER, expmant, i32_w… in lp_build_half_to_float()
Dlp_bld_swizzle.c61 LLVMTypeRef i32_type = LLVMInt32TypeInContext(gallivm->context); in lp_build_broadcast() local
67 LLVMTypeRef i32_vec_type = LLVMVectorType(i32_type, length); in lp_build_broadcast()
68 res = LLVMBuildInsertElement(builder, undef, scalar, LLVMConstNull(i32_type), ""); in lp_build_broadcast()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c871 struct lp_type i32_type = lp_int_type(vs_type); in generate_clipmask() local
884 mask = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask()
885 temp = lp_build_const_int_vec(gallivm, i32_type, 0); in generate_clipmask()
887 shift = lp_build_const_int_vec(gallivm, i32_type, 1); /* 1 1 1 1 */ in generate_clipmask()
940 temp = lp_build_const_int_vec(gallivm, i32_type, 16); in generate_clipmask()
983 temp = lp_build_const_int_vec(gallivm, i32_type, 1 << plane_idx); in generate_clipmask()
1019 temp = lp_build_const_int_vec(gallivm, i32_type, 1 << plane_idx); in generate_clipmask()
/external/llvm/bindings/ocaml/llvm/
Dllvm.mli509 (** [i32_type c] returns an integer type of bitwidth 32 in the context [c]. See
511 val i32_type : llcontext -> lltype val
932 (const_int i32_type 0) (const_int i32_type 1)) i32_type], but considerably
938 (const_int i32_type 1)) i64_type], but considerably more readable.
Dllvm.ml342 external i32_type : llcontext -> lltype = "llvm_i32_type"