[all-commits] [llvm/llvm-project] b743bb: Add ConstantDataVector::getRaw() to create a const...

nlewycky via All-commits all-commits at lists.llvm.org
Tue Mar 16 11:58:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b743bbc50586151514cd9f7f6487ad4d9838aded
      https://github.com/llvm/llvm-project/commit/b743bbc50586151514cd9f7f6487ad4d9838aded
  Author: Nick Lewycky <nick at wasmer.io>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M llvm/include/llvm/IR/Constants.h
    M llvm/unittests/IR/ConstantsTest.cpp

  Log Message:
  -----------
  Add ConstantDataVector::getRaw() to create a constant data vector from raw data.

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

Update BuildConstantData{Array,Vector} tests to test the getRaw API. Also removes its unused Module.

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

Differential Revision: https://reviews.llvm.org/D98302




More information about the All-commits mailing list