diff options
author | Philip Reames <preames@rivosinc.com> | 2025-01-08 10:58:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 10:58:37 -0800 |
commit | 983a957768c56d71ca710ff43eab4515e47f7d2c (patch) | |
tree | c60a0f1541b27e574a56ce46b9f0acc014783417 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0b722de4a57f6dfc032bb7ab6b101b4e05bf8e72 (diff) | |
download | llvm-983a957768c56d71ca710ff43eab4515e47f7d2c.zip llvm-983a957768c56d71ca710ff43eab4515e47f7d2c.tar.gz llvm-983a957768c56d71ca710ff43eab4515e47f7d2c.tar.bz2 |
[RISCV][VLOpt] Consolidate EMUL=SEW/EEW*LMUL logic [NFC] (#122021)
All but one of the cases in tree today have EMUL=SEW/EEW*LMUL. Repeating
this each time is verbose and introduces oppurtunity for error. (For
instance, the comment associated with vwmul.vv was out of sync with the
code for same.)
Introduce getOperandLog2EEW and move most complexity to it. Then
introduce getOperandInfo as a wrapper around previous, and special case
the one case which requires it.
---------
Co-authored-by: Luke Lau <luke_lau@icloud.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions