To facilitate sharing LoopIdiomTransform between AArch64 and RISC-V, this first patch moves AArch64LoopIdiomTransform from lib/Target/AArch64 to lib/Transforms/Vectorize and renames it to LoopIdiomVectorize. The following patch (#94082) will teach LoopIdiomVectorize how to generate VP intrinsics (in addition to the current masked vector style) in favor of RVV.
30 lines
549 B
CMake
30 lines
549 B
CMake
add_llvm_component_library(LLVMVectorize
|
|
LoadStoreVectorizer.cpp
|
|
LoopIdiomVectorize.cpp
|
|
LoopVectorizationLegality.cpp
|
|
LoopVectorize.cpp
|
|
SLPVectorizer.cpp
|
|
Vectorize.cpp
|
|
VectorCombine.cpp
|
|
VPlan.cpp
|
|
VPlanAnalysis.cpp
|
|
VPlanHCFGBuilder.cpp
|
|
VPlanRecipes.cpp
|
|
VPlanSLP.cpp
|
|
VPlanTransforms.cpp
|
|
VPlanVerifier.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Vectorize
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
|
|
LINK_COMPONENTS
|
|
Analysis
|
|
Core
|
|
Support
|
|
TransformUtils
|
|
)
|