diff --git a/llvm/include/llvm/IR/IntrinsicsAArch64.td b/llvm/include/llvm/IR/IntrinsicsAArch64.td --- a/llvm/include/llvm/IR/IntrinsicsAArch64.td +++ b/llvm/include/llvm/IR/IntrinsicsAArch64.td @@ -1273,9 +1273,9 @@ // Prefetch // -def int_aarch64_sve_prf : Intrinsic<[], [llvm_anyvector_ty, - llvm_ptr_ty, - llvm_i32_ty], [IntrArgMemOnly]>; +def int_aarch64_sve_prf + : Intrinsic<[], [llvm_anyvector_ty, llvm_ptr_ty, llvm_i32_ty], + [IntrArgMemOnly, ImmArg<2>]>; // // Scalar to vector operations diff --git a/llvm/lib/Target/AArch64/SVEInstrFormats.td b/llvm/lib/Target/AArch64/SVEInstrFormats.td --- a/llvm/lib/Target/AArch64/SVEInstrFormats.td +++ b/llvm/lib/Target/AArch64/SVEInstrFormats.td @@ -33,7 +33,7 @@ let RenderMethod = "addPrefetchOperands"; } -def sve_prfop : Operand, ImmLeaf, TImmLeaf { let PrintMethod = "printPrefetchOp";