[PATCH] D146872: [1/N][IR] Permit load/store/alloca for struct of the same scalable vector type

Yueh-Ting (eop) Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 05:38:13 PDT 2023


eopXD updated this revision to Diff 511066.
eopXD marked 7 inline comments as done.
eopXD added a comment.

Changes:

- Address comments from Craig
  - Let `isSize` return true for homogeneous scalable vector structs.
  - Function rename `isContainHomogeneousScalableVectorType` -> `containsHomogenousScalableVectorTypes`
- Fix return value for `DataLayout::getTypeSizeInBits`
- Let `Type::isScalableTy` return true for `StructType` with scalable vectors


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146872/new/

https://reviews.llvm.org/D146872

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/CodeGen/Analysis.h
  llvm/include/llvm/IR/DataLayout.h
  llvm/include/llvm/IR/DerivedTypes.h
  llvm/include/llvm/IR/Instructions.h
  llvm/include/llvm/IR/Type.h
  llvm/lib/Analysis/Loads.cpp
  llvm/lib/Analysis/ScalarEvolution.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/CodeGen/Analysis.cpp
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
  llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/IR/DataLayout.cpp
  llvm/lib/IR/Type.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
  llvm/test/CodeGen/RISCV/rvv/alloca-load-store-scalable-struct.ll
  llvm/test/Other/load-scalable-vector-struct.ll
  llvm/test/Other/store-scalable-vector-struct.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146872.511066.patch
Type: text/x-patch
Size: 41276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230405/6009bd26/attachment.bin>


More information about the llvm-commits mailing list