[all-commits] [llvm/llvm-project] cdac34: [X86] Zero-extend pointers to i64 for x86_64

Harald van Dijk via All-commits all-commits at lists.llvm.org
Mon Nov 30 10:51:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cdac34bd47a34337579e50dedc119548b379f20e
      https://github.com/llvm/llvm-project/commit/cdac34bd47a34337579e50dedc119548b379f20e
  Author: Harald van Dijk <harald at gigawatt.nl>
  Date:   2020-11-30 (Mon, 30 Nov 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86CallingConv.cpp
    M llvm/lib/Target/X86/X86CallingConv.td
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/musttail-varargs.ll
    M llvm/test/CodeGen/X86/pr38865-2.ll
    M llvm/test/CodeGen/X86/pr38865-3.ll
    M llvm/test/CodeGen/X86/pr38865.ll
    M llvm/test/CodeGen/X86/sibcall.ll
    M llvm/test/CodeGen/X86/x32-function_pointer-2.ll
    M llvm/test/CodeGen/X86/x86-64-sret-return.ll

  Log Message:
  -----------
  [X86] Zero-extend pointers to i64 for x86_64

For LP64 mode, this has no effect as pointers are already 64 bits.
For ILP32 mode (x32), this extension is specified by the ABI.

Reviewed By: pengfei

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




More information about the All-commits mailing list