aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorShih-Po Hung <shihpo.hung@sifive.com>2025-02-03 15:49:07 +0800
committerGitHub <noreply@github.com>2025-02-03 15:49:07 +0800
commitfc897450019bc0585f3592ee3a3d68bad2fdcbbc (patch)
treefbddb406c1c668ec7708e7598c3b81ccf10fa149 /clang/lib/CodeGen/CodeGenModule.cpp
parenta1ff2d18466bc27d3dc9b8bba688454e2a1cf196 (diff)
downloadllvm-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