From 72a84e5b9468232fe7eaa4bf946ff0203bf76e30 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 21 Aug 2025 11:21:09 -0700 Subject: [PATCH] [RISCV] Use llvm_anyint_ty instead of llvm_any_type for scalar intrinsics. NFC --- llvm/include/llvm/IR/IntrinsicsRISCV.td | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/IR/IntrinsicsRISCV.td b/llvm/include/llvm/IR/IntrinsicsRISCV.td index 243100f0c7180..c74cc3c04833a 100644 --- a/llvm/include/llvm/IR/IntrinsicsRISCV.td +++ b/llvm/include/llvm/IR/IntrinsicsRISCV.td @@ -80,11 +80,11 @@ let TargetPrefix = "riscv" in { let TargetPrefix = "riscv" in { class BitManipGPRIntrinsics - : DefaultAttrsIntrinsic<[llvm_any_ty], + : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>], [IntrNoMem, IntrSpeculatable]>; class BitManipGPRGPRIntrinsics - : 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>]>; def int_riscv_moprr - : DefaultAttrsIntrinsic<[llvm_any_ty], + : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem, IntrSpeculatable, ImmArg>]>; } // 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(NAME); bits<4> ScalarOperand = NoScalarOperand;