In RISC-V, we have VLENB register to know the real vector size at run time. vscale is the run time constant in LLVM to know the factor in the scalable vector types. We could use VLENB to get vscale value in LLVM.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td | ||
---|---|---|
2330 | I think int_vscale becomes (vscale 1) in SelectionDAGBuilder so we can probably drop this pattern? |
I think int_vscale becomes (vscale 1) in SelectionDAGBuilder so we can probably drop this pattern?