[all-commits] [llvm/llvm-project] 49c220: [VP] Preserve address space of pointer for strided...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Mar 22 09:53:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49c2206b3bdce4a37a4602527b2d3da673514333
      https://github.com/llvm/llvm-project/commit/49c2206b3bdce4a37a4602527b2d3da673514333
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.h
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/IR/Function.cpp
    M llvm/lib/IR/IntrinsicInst.cpp
    M llvm/test/CodeGen/VE/Vector/vp_strided_load.ll
    M llvm/test/CodeGen/VE/Vector/vp_strided_store.ll
    M llvm/unittests/IR/VPIntrinsicTest.cpp
    M llvm/utils/TableGen/IntrinsicEmitter.cpp

  Log Message:
  -----------
  [VP] Preserve address space of pointer for strided load/store intrinsics.

This adds LLVMAnyPointerToElt to use instead of LLVMPointerToElt.
This allows us to preserve the address space as part of the type
overload for the intrinsic, but still require the vector element
type to match the pointer type.

Reviewed By: nikic

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




More information about the All-commits mailing list