aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-03-22 10:16:53 -0700
committerCraig Topper <craig.topper@sifive.com>2022-03-22 10:29:06 -0700
commit51940d69cb5d95417b914ec75961ffb78901fb53 (patch)
tree78b11e15a9ac992a18ab114b58f775094643e83f /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentc3fe8ddd8385832fde9f16a261908afbaf9878a4 (diff)
downloadllvm-51940d69cb5d95417b914ec75961ffb78901fb53.zip
llvm-51940d69cb5d95417b914ec75961ffb78901fb53.tar.gz
llvm-51940d69cb5d95417b914ec75961ffb78901fb53.tar.bz2
[RISCV] Special case sign extended scalars when type legalizing nxvXi64 .vx instrinsics on RV32.
On RV32, we need to type legalize i64 scalar arguments to intrinsics. We usually do this by splatting the value into a vector separately. If the scalar happens to be sign extended, we can continue using a .vx intrinsic. We already special cased sign extended constants, this extends it to any sign extended value. I've only added tests for one case of vadd. Most intrinsics go through the same check. Reviewed By: khchen Differential Revision: https://reviews.llvm.org/D122186
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions