[all-commits] [llvm/llvm-project] 81a150: [TableGen][RISCV][Hexagon][LoongArch] Add a list o...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Mar 14 13:00:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 81a150656b7d856255d8073ec86fd304edd90aad
https://github.com/llvm/llvm-project/commit/81a150656b7d856255d8073ec86fd304edd90aad
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-03-14 (Tue, 14 Mar 2023)
Changed paths:
M llvm/include/llvm/Target/Target.td
M llvm/lib/Target/Hexagon/Hexagon.td
M llvm/lib/Target/LoongArch/LoongArch.td
M llvm/lib/Target/RISCV/RISCVFeatures.td
M llvm/test/TableGen/HwModeEncodeDecode.td
M llvm/test/TableGen/HwModeSelect.td
M llvm/utils/TableGen/CodeGenDAGPatterns.cpp
M llvm/utils/TableGen/CodeGenHwModes.cpp
M llvm/utils/TableGen/CodeGenHwModes.h
Log Message:
-----------
[TableGen][RISCV][Hexagon][LoongArch] Add a list of Predicates to HwMode.
Use the predicate condition instead of checkFeatures in *GenDAGISel.inc.
This makes the code similar to isel pattern predicates.
checkFeatures is still used by code created by SubtargetEmitter so
we can't remove the string. Backends need to be careful to keep
the string and predicates in sync, but I don't think that's a big issue.
I haven't measured it, but this should be a compile time improvement
for isel since we don't have to do any of the string processing that's
inside checkFeatures.
Reviewed By: kparzysz
Differential Revision: https://reviews.llvm.org/D146012
More information about the All-commits
mailing list