[RISCV] Use llvm_anyint_ty instead of llvm_any_ty for scalar intrinsics. NFC (#154816)

This commit is contained in:
Craig Topper 2025-08-21 22:18:39 -07:00 committed by GitHub
parent fc5fcc0c95
commit c346f4079a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,11 +80,11 @@ let TargetPrefix = "riscv" in {
let TargetPrefix = "riscv" in {
class RISCVBitManipGPRIntrinsics
: DefaultAttrsIntrinsic<[llvm_any_ty],
: DefaultAttrsIntrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable]>;
class RISCVBitManipGPRGPRIntrinsics
: DefaultAttrsIntrinsic<[llvm_any_ty],
: DefaultAttrsIntrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>, LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable]>;
@ -115,11 +115,11 @@ let TargetPrefix = "riscv" in {
// Zimop
def int_riscv_mopr
: DefaultAttrsIntrinsic<[llvm_any_ty],
: DefaultAttrsIntrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>, LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable, ImmArg<ArgIndex<1>>]>;
def int_riscv_moprr
: DefaultAttrsIntrinsic<[llvm_any_ty],
: DefaultAttrsIntrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable, ImmArg<ArgIndex<2>>]>;
} // TargetPrefix = "riscv"
@ -135,7 +135,7 @@ defvar NoScalarOperand = 0xF;
defvar NoVLOperand = 0x1F;
class RISCVVIntrinsic {
// These intrinsics may accept illegal integer values in their llvm_any_ty
// These intrinsics may accept illegal integer values in their llvm_anyint_ty
// operand, so they have to be extended.
Intrinsic IntrinsicID = !cast<Intrinsic>(NAME);
bits<4> ScalarOperand = NoScalarOperand;