[PATCH] D141789: [WIP][12/N][Clang][RISCV][NFC] Refine the way to check for Policy in riscv_vector_builtin_cg.inc

Yueh-Ting (eop) Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 15 04:21:29 PST 2023


eopXD created this revision.
Herald added subscribers: sunshaoce, VincentWu, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, arichardson.
Herald added a project: All.
eopXD requested review of this revision.
Herald added subscribers: cfe-commits, pcwang-thead, MaskRay.
Herald added a project: clang.

The current way creates a fallacy that checking for
`PolicyAttrs == TAIL_AGNOSTIC` is implicitly equivalant to
`TAIL_AGNOSTIC_MASK_UNDISTURBED`.

This way of checking is wrong when the default policy is not TAMU.
As this patch-set is changing the default from TAMU to TAMA, we need
to perform this refactoring before chaning the default.

Depends on D141768 <https://reviews.llvm.org/D141768>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141789

Files:
  clang/include/clang/Basic/riscv_vector.td
  clang/include/clang/Support/RISCVVIntrinsicUtils.h
  clang/lib/CodeGen/CGBuiltin.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141789.489344.patch
Type: text/x-patch
Size: 11796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230115/1b0b5e4a/attachment-0001.bin>


More information about the cfe-commits mailing list