Re: [PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-07-25 Thread David Kreitzer via cfe-commits
DavidKreitzer added a comment. The example Aaron sent in email is a good one: void func(int, int, int, int) __attribute__((no_caller_saved_registers, cdecl)); int main() { void (*fp)(int, int, int, int) __attribute__((cdecl)) = func; func(1, 2, 3, 4); fp(1, 2, 3, 4); // Not th

Re: [PATCH] D20468: [X86][AVX] Ensure zero-extension of _mm256_extract_epi8 and _mm256_extract_epi16

2016-05-20 Thread David Kreitzer via cfe-commits
DavidKreitzer added a subscriber: DavidKreitzer. DavidKreitzer added a comment. Hi Michael, I think the Intel Intrinsics reference and the Intel Compiler are in error and that this is the right fix for the LLVM headers. (I'll follow up to get the Intel Intrinsics reference & Intel Compiler fixe

Re: [PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-04 Thread David Kreitzer via cfe-commits
DavidKreitzer added a comment. From an MCU ABI perspective, yes, returning an empty struct is equivalent to returning void. http://reviews.llvm.org/D16808 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

Re: [PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-03 Thread David Kreitzer via cfe-commits
DavidKreitzer added a comment. Denis, can you please explain your rationale for choosing to return 0-sized aggregates in memory for MCU? It doesn't match gcc behavior. For example, int g; union U {} u; union U f(int a, int b, int c) { g = a + b + c; return u; } void f1() { f(1, 2, 3); }

Re: [PATCH] D14864: [X86] Support for C calling convention only for MCU target.

2015-11-24 Thread David Kreitzer via cfe-commits
DavidKreitzer added a comment. Looks good, Alexey! I have no further comments. - Dave http://reviews.llvm.org/D14864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14864: [X86] Support for C calling convention only for MCU target.

2015-11-23 Thread David Kreitzer via cfe-commits
DavidKreitzer added a comment. Thanks, Alexey! I think this is an improvement. I don't know if anyone else has an opinion on the name of the new class, but I would prefer X86 over I386, possibly even MCUX86_32TargetInfo. Thanks, - Dave http://reviews.llvm.org/D14864 __

Re: [PATCH] D14864: [X86] Support for C calling convention only for MCU target.

2015-11-20 Thread David Kreitzer via cfe-commits
DavidKreitzer added a comment. Hi Alexey, Did you consider adding a new class for the MCU target info, e.g. X86MCUTargetInfo? The more MCU-specific stuff that gets added here, the more it makes sense to pull it out into its own class. We already have line 3398-3401 & 3650-3653. We are also go

Re: [PATCH] D13978: [X86] Support MCU psABI when marking inregs

2015-10-22 Thread David Kreitzer via cfe-commits
DavidKreitzer added inline comments. Comment at: lib/CodeGen/TargetInfo.cpp:1239 @@ +1238,3 @@ +// The MCU psABI allows passing parameters in-reg even if there are +// earlier, parameters that are passed on the stack. Also, +// it does not allow passing >8-byte structs