This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Infer mask type for vector intrinsics from the data type
ClosedPublic

Authored by craig.topper on Dec 16 2020, 10:48 AM.

Details

Summary

We can use LLVMScalarOrSameVectorWidth<0, llvm_i1_ty> to infer the mask type from the any_vector_ty. This will save us from needing to pass it to the 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 or intrinsic doesn't need to mention all the types as long as there isn't a name conflict in the file.

Diff Detail