AVX-512: Added i1 type handling for calling conventions.
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Thu, 14 May 2015 09:04:45 +0000 (09:04 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Thu, 14 May 2015 09:04:45 +0000 (09:04 +0000)
commitd5b3e376d287fcdca568aae4f682688bd5b78c33
tree7ce7a414924a7874b9b6bd35d20c19ae6acf512a
parentc6dab75bd4459e53468b5e676dc962c3d88126a0
AVX-512: Added i1 type handling for calling conventions.
i1 type is a legal type on AVX-512 and can be passed as parameter or return value.
i1 is promoted to i8 on return and to i32 for call arguments (i8 is also promoted to i32 here).
The result code is similar to the previous X86 targets, where i1 is allways promoted to i8.

llvm-svn: 237350
llvm/lib/Target/X86/X86CallingConv.td
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx512-calling-conv.ll