[all-commits] [llvm/llvm-project] c51b0b: [Hexagon] Introduce noop intrinsic to cast between...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Fri Feb 21 05:39:37 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c51b0bede82b9eeddce78151dfc257cf738bf367
      https://github.com/llvm/llvm-project/commit/c51b0bede82b9eeddce78151dfc257cf738bf367
  Author: Krzysztof Parzyszek <kparzysz at quicinc.com>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsHexagon.td
    M llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
    M llvm/lib/Target/Hexagon/HexagonISelLowering.h
    M llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
    A llvm/test/CodeGen/Hexagon/autohvx/vector-predicate-typecast.ll

  Log Message:
  -----------
  [Hexagon] Introduce noop intrinsic to cast between vector predicate types

The (overloaded) intrinsic is llvm.hexagon.V6.pred.typecast[.128B]. The
types of the operand and the return value are HVX boolean vector types.
For each cast, there needs to be a corresponding intrinsic declared,
with different suffixes appended to the name, e.g.
  ; cast <128 x i1> to <32 x i1>
  declare <32 x i1> @llvm.hexagon.V6.pred.typecast.128B.s1(<128 x i1>)
  ; cast <32 x i1> to <64 x i1>
  declare <64 x i1> @llvm.hexagon.V6.pred.typecast.128B.s2(<32 x i1>)
etc.




More information about the All-commits mailing list