1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Int type for PIC16 is i16. Added i16 intrinsics for memmove, memcpy and memset.

llvm-svn: 59612
This commit is contained in:
Sanjiv Gupta 2008-11-19 08:50:17 +00:00
parent e111ce1265
commit 32225bad7d

View File

@ -190,18 +190,27 @@ def int_stackprotector : Intrinsic<[llvm_void_ty],
//
let Properties = [IntrWriteArgMem] in {
def int_memcpy_i16 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_ptr_ty,
llvm_i16_ty, llvm_i16_ty]>;
def int_memcpy_i32 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_ptr_ty,
llvm_i32_ty, llvm_i32_ty]>;
def int_memcpy_i64 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_ptr_ty,
llvm_i64_ty, llvm_i32_ty]>;
def int_memmove_i16 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_ptr_ty,
llvm_i16_ty, llvm_i16_ty]>;
def int_memmove_i32 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_ptr_ty,
llvm_i32_ty, llvm_i32_ty]>;
def int_memmove_i64 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_ptr_ty,
llvm_i64_ty, llvm_i32_ty]>;
def int_memset_i16 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_i8_ty,
llvm_i16_ty, llvm_i16_ty]>;
def int_memset_i32 : Intrinsic<[llvm_void_ty],
[llvm_ptr_ty, llvm_i8_ty,
llvm_i32_ty, llvm_i32_ty]>;