Lines Matching refs:dtype

326 static LLVMValueRef constant_value(unsigned long long val, LLVMTypeRef dtype)  in constant_value()  argument
330 switch (LLVMGetTypeKind(dtype)) { in constant_value()
335 result = LLVMConstIntToPtr(result, dtype); in constant_value()
337 result = LLVMConstPointerNull(dtype); in constant_value()
341 result = LLVMConstInt(dtype, val, 1); in constant_value()
347 result = LLVMConstNull(dtype); in constant_value()
358 LLVMTypeRef dtype; in val_to_value() local
361 dtype = symbol_type(ctype); in val_to_value()
362 result = constant_value(val, dtype); in val_to_value()
406 LLVMTypeRef dtype = symbol_type(ctype); in pseudo_to_rvalue() local
410 return LLVMBuildBitCast(fn->builder, val, dtype, name); in pseudo_to_rvalue()
416 LLVMTypeRef dtype = symbol_type(ctype); in value_to_ivalue() local
419 LLVMTypeRef dtype = LLVMIntType(bits_in_pointer); in value_to_ivalue() local
420 val = LLVMBuildPtrToInt(fn->builder, val, dtype, name); in value_to_ivalue()
423 val = LLVMBuildIntCast(fn->builder, val, dtype, name); in value_to_ivalue()
431 LLVMTypeRef dtype = symbol_type(ctype); in value_to_pvalue() local
436 val = LLVMBuildIntToPtr(fn->builder, val, dtype, name); in value_to_pvalue()
439 val = LLVMBuildBitCast(fn->builder, val, dtype, name); in value_to_pvalue()
865 LLVMTypeRef dtype; in output_op_ptrcast() local
873 dtype = symbol_type(insn->type); in output_op_ptrcast()
896 target = LLVMBuildCast(fn->builder, op, src, dtype, target_name); in output_op_ptrcast()
903 LLVMTypeRef dtype; in output_op_cast() local
915 dtype = symbol_type(insn->type); in output_op_cast()
930 target = LLVMBuildCast(fn->builder, op, src, dtype, target_name); in output_op_cast()
936 LLVMTypeRef dtype = symbol_type(insn->type); in output_op_fpcast() local
947 target = LLVMBuildFPCast(fn->builder, src, dtype, name); in output_op_fpcast()
950 target = LLVMBuildSIToFP(fn->builder, src, dtype, name); in output_op_fpcast()
953 target = LLVMBuildUIToFP(fn->builder, src, dtype, name); in output_op_fpcast()
979 LLVMTypeRef dtype = symbol_type(insn->type); in output_op_setfval() local
982 target = LLVMConstReal(dtype, insn->fvalue); in output_op_setfval()