[PATCH] D110779: [RISCV] Require tail policy argument to builtins to be an integer constant expression
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 29 14:59:26 PDT 2021
craig.topper created this revision.
craig.topper added reviewers: HsiangKai, kito-cheng, khchen, arcbbb.
Herald added subscribers: achieveartificialintelligence, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
The IR intrinsics use ImmArg for the policy operand so this needs to be enforced as a constant in the frontend.
https://reviews.llvm.org/D110779
Files:
clang/utils/TableGen/RISCVVEmitter.cpp
Index: clang/utils/TableGen/RISCVVEmitter.cpp
===================================================================
--- clang/utils/TableGen/RISCVVEmitter.cpp
+++ clang/utils/TableGen/RISCVVEmitter.cpp
@@ -1184,7 +1184,7 @@
}
if (HasPolicy) {
- ProtoMaskSeq.push_back("z");
+ ProtoMaskSeq.push_back("Kz");
}
// Create Intrinsics for each type and LMUL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110779.376045.patch
Type: text/x-patch
Size: 385 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210929/95b3e04f/attachment.bin>
More information about the llvm-commits
mailing list