[all-commits] [llvm/llvm-project] 5ee9ef: [TypeSize] Extend UnivariateLinearPolyBase with ge...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Fri Nov 6 01:02:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ee9ef85190cff09c4d3718d8683af1900a33348
      https://github.com/llvm/llvm-project/commit/5ee9ef85190cff09c4d3718d8683af1900a33348
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2020-11-06 (Fri, 06 Nov 2020)

  Changed paths:
    M llvm/include/llvm/Support/TypeSize.h
    M llvm/unittests/Support/LinearPolyBaseTest.cpp

  Log Message:
  -----------
  [TypeSize] Extend UnivariateLinearPolyBase with getWithIncrement/Decrement methods

This patch adds getWithIncrement/getWithDecrement methods to
ElementCount and TypeSize to allow:

  TypeSize::getFixed(8).getWithIncrement(8)     <=> TypeSize::getFixed(16)
  TypeSize::getFixed(16).getWithDecrement(8)    <=> TypeSize::getFixed(8)
  TypeSize::getScalable(8).getWithIncrement(8)  <=> TypeSize::getScalable(16)
  TypeSize::getScalable(16).getWithDecrement(8) <=> TypeSize::getScalable(8)

This patch implements parts of the POC in D90342.

Reviewed By: ctetreau, dmgreen

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




More information about the All-commits mailing list