[all-commits] [llvm/llvm-project] 6d762f: [PowerPC] Allow const pointers for load builtins i...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Tue Sep 8 01:52:30 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d762fdaa5c42e9f74cca48481e6f55c4472c0d3
      https://github.com/llvm/llvm-project/commit/6d762fdaa5c42e9f74cca48481e6f55c4472c0d3
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-09-08 (Tue, 08 Sep 2020)

  Changed paths:
    M clang/lib/Headers/altivec.h
    M clang/test/CodeGen/builtins-ppc-altivec.c
    M clang/test/CodeGen/builtins-ppc-p10vector.c
    M clang/test/CodeGen/builtins-ppc-xl-xst.c

  Log Message:
  -----------
  [PowerPC] Allow const pointers for load builtins in altivec.h

The load builtins in altivec.h do not have const in the signature
for the pointer parameter. This prevents using them for loading
from constant pointers. A notable case for such a use is Eigen.

This patch simply adds the missing const.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=47408
(cherry picked from commit 54205f0bd2377503b818d7f62cc4ed63ef5b1e94)




More information about the All-commits mailing list