diff options
author | Shih-Po Hung <shihpo.hung@sifive.com> | 2025-02-03 15:49:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-03 15:49:07 +0800 |
commit | fc897450019bc0585f3592ee3a3d68bad2fdcbbc (patch) | |
tree | fbddb406c1c668ec7708e7598c3b81ccf10fa149 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | a1ff2d18466bc27d3dc9b8bba688454e2a1cf196 (diff) | |
download | llvm-fc897450019bc0585f3592ee3a3d68bad2fdcbbc.zip llvm-fc897450019bc0585f3592ee3a3d68bad2fdcbbc.tar.gz llvm-fc897450019bc0585f3592ee3a3d68bad2fdcbbc.tar.bz2 |
[RISCV][NFC] Clarify getRISCVInstructionCost usage (#121556)
This patch adds a comment to explicitly state that
getRISCVInstructionCost uses vtype associated with widening and
narrowing instructions.
For example, vtype = (SEW):
For vfwcvt.f.f.v, the source is (SEW), the destination is (2 * SEW)
For vfncvt.f.f.w, the source is (2 * SEW), the destination is (SEW).
In these cases, the type passed to `getRISCVInstructionCost` differs
- The source type is used for `vfwcvt.f.f.v`.
- The destination type is used for `vfncvt.f.f.w`.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions