aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorHan-Kuan Chen <hankuan.chen@sifive.com>2024-07-10 11:50:35 +0800
committerGitHub <noreply@github.com>2024-07-10 11:50:35 +0800
commitac299ed2c752928d34b5db339a926286115f0718 (patch)
tree0348094e2cbf56f5558e4fa08de67a109352bd0a /llvm/lib/Object/ArchiveWriter.cpp
parent62a7562b828ee9df6a41b6ce3dfda7c5511816a6 (diff)
downloadllvm-ac299ed2c752928d34b5db339a926286115f0718.zip
llvm-ac299ed2c752928d34b5db339a926286115f0718.tar.gz
llvm-ac299ed2c752928d34b5db339a926286115f0718.tar.bz2
[SLP] Provide an universal interface for FixedVectorType::get. NFC. (#96845)
SLP vectorizes scalar type to vector type. In the future, we will try to make SLP vectorizes vector type to vector type. We add a getWidenedType as a helper function. For example, SLP will make the following code %v0 = load i32, ptr %in0, align 4 %v1 = load i32, ptr %in1, align 4 %v2 = load i32, ptr %in2, align 4 %v3 = load i32, ptr %in3, align 4 into a load <4 x i32>. The ScalarTy is i32 and VF is 4. In the future, SLP will make the following code %v0 = load <4 x i32>, ptr %in0, align 4 %v1 = load <4 x i32>, ptr %in1, align 4 %v2 = load <4 x i32>, ptr %in2, align 4 %v3 = load <4 x i32>, ptr %in3, align 4 into a load <16 x i32>. The ScalarTy is <4 x i32> and VF is 4. reference: https://discourse.llvm.org/t/rfc-make-slp-vectorizer-revectorize-vector-instructions/79436
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions