Author: Craig Topper Date: 2021-10-11T09:55:04-07:00 New Revision: a5c3508ac71bf30a6d2da35f438e90cc153d8d84
URL: https://github.com/llvm/llvm-project/commit/a5c3508ac71bf30a6d2da35f438e90cc153d8d84 DIFF: https://github.com/llvm/llvm-project/commit/a5c3508ac71bf30a6d2da35f438e90cc153d8d84.diff LOG: [RISCV] Require tail policy argument to builtins to be an integer constant expression The IR intrinsics use ImmArg for the policy operand so this needs to be enforced as a constant in the frontend. Differential Revision: https://reviews.llvm.org/D110779 Added: Modified: clang/utils/TableGen/RISCVVEmitter.cpp Removed: ################################################################################ diff --git a/clang/utils/TableGen/RISCVVEmitter.cpp b/clang/utils/TableGen/RISCVVEmitter.cpp index 152500610a293..f71df8b3063a3 100644 --- a/clang/utils/TableGen/RISCVVEmitter.cpp +++ b/clang/utils/TableGen/RISCVVEmitter.cpp @@ -1184,7 +1184,7 @@ void RVVEmitter::createRVVIntrinsics( } if (HasPolicy) { - ProtoMaskSeq.push_back("z"); + ProtoMaskSeq.push_back("Kz"); } // Create Intrinsics for each type and LMUL. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits