[all-commits] [llvm/llvm-project] 14afbe: [CallLowering] Support opaque pointers

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Sep 10 09:32:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14afbe9448d5b9ddb0acce5e0ed046c083726f85
      https://github.com/llvm/llvm-project/commit/14afbe9448d5b9ddb0acce5e0ed046c083726f85
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M llvm/include/llvm/IR/Function.h
    M llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-stack-objects.ll

  Log Message:
  -----------
  [CallLowering] Support opaque pointers

Always use the byval/inalloca/preallocated type (which is required
nowadays), don't fall back on the pointer element type.

This requires adding Function::getParamPreallocatedType() to
mirror the CallBase API, so that the templated code can work with
both.




More information about the All-commits mailing list