[all-commits] [llvm/llvm-project] 0d7dd0: [RISCV] Infer mask type for vector intrinsics from...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Dec 16 20:23:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d7dd026c89baa3f8542ae267d26f55fada36717
      https://github.com/llvm/llvm-project/commit/0d7dd026c89baa3f8542ae267d26f55fada36717
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2020-12-16 (Wed, 16 Dec 2020)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsRISCV.td

  Log Message:
  -----------
  [RISCV] Infer mask type for vector intrinsics from the data type

We can use LLVMScalarOrSameVectorWidth<0, llvm_i1_ty> to infer the mask type from the anyvector_ty. This will save us from needing to pass it to getDeclaration when creating these intrinsics from clang.

No tests updates are needed because our declarations are exploiting a behavior in the IR parser where the declaration of an intrinsic doesn't need to mention all the types as long as there isn't a name conflict in the file.

Reviewed By: khchen

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




More information about the All-commits mailing list