[PATCH] D32530: [SVE] Scalable Vector IR Type

Graham Hunter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 04:12:47 PDT 2017


huntergr created this revision.
Herald added subscribers: tschuett, mgorny, mehdi_amini.

- Adds a 'scalable' flag to VectorType
- Adds an 'ElementCount' class to VectorType to pass (possibly scalable) vector lengths, with overloaded operators.
- Modifies existing helper functions to use ElementCount
- Adds support for serializing/deserializing to/from both textual and bitcode IR formats
- Adds unit tests
- Updates documentation

I'm picking up this work from Paul now that the SVE documentation is available. See the previous version of this patch here: https://reviews.llvm.org/D27101

I'll post updated versions of the other patches in the series later.

Couldn't find a recommended reviewer for core IR changes in the code owners file, suggestions welcome.


https://reviews.llvm.org/D32530

Files:
  docs/LangRef.rst
  include/llvm/IR/DerivedTypes.h
  include/llvm/IR/Type.h
  lib/AsmParser/LLLexer.cpp
  lib/AsmParser/LLParser.cpp
  lib/AsmParser/LLToken.h
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/IR/AsmWriter.cpp
  lib/IR/LLVMContextImpl.h
  lib/IR/Type.cpp
  test/Bitcode/compatibility.ll
  unittests/IR/CMakeLists.txt
  unittests/IR/VectorTypesTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32530.96705.patch
Type: text/x-patch
Size: 19468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170426/411546c0/attachment.bin>


More information about the llvm-commits mailing list