[PATCH] D117060: [RISCV] Add RISCVProcFamilyEnum and add SiFive7.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 11 15:48:45 PST 2022


craig.topper created this revision.
craig.topper added reviewers: asb, luismarques, jrtc27, mcberg2021, evandro.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, StephenFan, vkmr, frasercrmck, apazos, sameer.abuasal, pengfei, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, kristof.beyls.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

Use it to remove explicit string compares from unrolling preferences.

I'm of two minds on this. Ideally, we would define things in terms
of architectural or microarchitectural features, but it's hard to
do that with things like unrolling preferences without just ending up
with FeatureSiFive7UnrollingPreferences.

Having a proc enum is consistent with ARM and AArch64. X86 only has
a few and is trying to move away from it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117060

Files:
  llvm/lib/Target/RISCV/RISCV.td
  llvm/lib/Target/RISCV/RISCVSubtarget.h
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117060.399103.patch
Type: text/x-patch
Size: 4702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220111/e14530f1/attachment.bin>


More information about the llvm-commits mailing list