[PATCH] D98302: Add ConstantDataVector::getRaw() to create a constant data vector from raw data.

Nick Lewycky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 15:49:11 PST 2021


nickwasmer created this revision.
nickwasmer added reviewers: stuij, spatel.
nickwasmer requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This parallels ConstantDataArray::getRaw() and can be used with ConstantDataSequential::getRawDataValues() in the base class for both types.

      

Update BuildConstantData{Array,Vector} test to use the getRaw API. Also removes its unused Module and update some variable names.

      

In passing, update some comments to include the support for half and bfloat. Update tests to include testing for bfloat.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98302

Files:
  include/llvm/IR/Constants.h
  unittests/IR/ConstantsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98302.329490.patch
Type: text/x-patch
Size: 7269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210309/9e0815e2/attachment.bin>


More information about the llvm-commits mailing list