[all-commits] [llvm/llvm-project] 2dd883: [Mangler] Calculate the argument list byte count s...

Wesley Wiser via All-commits all-commits at lists.llvm.org
Wed Sep 29 11:42:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2dd883439c7886182902c0aa17b34c0a8ed88b66
      https://github.com/llvm/llvm-project/commit/2dd883439c7886182902c0aa17b34c0a8ed88b66
  Author: Wesley Wiser <wesleywiser at microsoft.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M llvm/lib/IR/Mangler.cpp
    M llvm/test/CodeGen/X86/stdcall.ll
    M llvm/test/CodeGen/X86/vectorcall.ll

  Log Message:
  -----------
  [Mangler] Calculate the argument list byte count suffix correctly when returning large values

`__stdcall`, `__fastcall` and `__vectorcall` return large values via a
hidden pointer argument. However, the size of that argument should not
be included in the argument list byte count suffix added to the
function's decorated name.

This patch fixes that issue so that LLVM generates the same decorated
name as MSVC does.

MSVC example: https://godbolt.org/z/nc35MKPhr

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D110719




More information about the All-commits mailing list