[all-commits] [llvm/llvm-project] 5a80dc: [VP][SelectionDAG] Add a target-configurable EVL o...
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Thu May 27 07:35:52 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5a80dc498818d7f22a04d06986e78d151fb6e103
https://github.com/llvm/llvm-project/commit/5a80dc498818d7f22a04d06986e78d151fb6e103
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2021-05-27 (Thu, 27 May 2021)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLowering.h
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.h
Log Message:
-----------
[VP][SelectionDAG] Add a target-configurable EVL operand type
This patch adds a way for the target to configure the type it uses for
the explicit vector length operands of VP SDNodes. The type must be a
legal integer type (there is still no target-independent legalization of
this operand) and must currently be at least as big as i32, the type
used by the IR intrinsics. An implicit zero-extension takes place on
targets which choose a larger type. All VP nodes should be created with
this type used for the EVL operand.
This allows 64-bit RISC-V to avoid custom legalization of all VP nodes,
keeping them in their target-independent form for that bit longer.
Reviewed By: simoll
Differential Revision: https://reviews.llvm.org/D103027
More information about the All-commits
mailing list