[PATCH] D120226: [RISCV] Support mask policy for RVV IR intrinsics.
ShihPo Hung via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 18:55:28 PDT 2022
arcbbb added inline comments.
Herald added a subscriber: sunshaoce.
================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h:120
enum {
TAIL_UNDISTURBED = 0,
TAIL_AGNOSTIC = 1,
----------------
craig.topper wrote:
> Is 0 now TAIL_UNDISTURBED_MASK_UNDISTURBED? And 1 TAIL_AGNOSTIC_MASK_UNDISTURBED, etc. Or maybe we just remove TAIL_UNDISTURBED?
Sorry I didn't notice this change.
I saw there are two places using 0 as TAIL_UNDISTURBED.
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
It looks like policy is a 2-bit value representing TU_MU, TA_MU, TU_MA, and TA_MA as below
| TU_MU | 0
|TA_MU | 1
|TU_MA | 2
|TA_MA | 3
Maybe we still need the TU definition in enum.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120226/new/
https://reviews.llvm.org/D120226
More information about the llvm-commits
mailing list