[all-commits] [llvm/llvm-project] aeab9d: [GlobalISel] NFC: Have LLT::getSizeInBits/Bytes re...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Fri Jun 25 09:07:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aeab9d9570ac8cb554aff6e1af24a471fdf5b4e5
      https://github.com/llvm/llvm-project/commit/aeab9d9570ac8cb554aff6e1af24a471fdf5b4e5
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-06-25 (Fri, 25 Jun 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
    M llvm/include/llvm/Support/LowLevelTypeImpl.h
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
    M llvm/unittests/CodeGen/LowLevelTypeTest.cpp
    M llvm/utils/TableGen/GlobalISelEmitter.cpp

  Log Message:
  -----------
  [GlobalISel] NFC: Have LLT::getSizeInBits/Bytes return a TypeSize.

To reflect that the size may be scalable, a TypeSize is returned
instead of an unsigned. In places where the result is used,
it currently relies on an implicit cast of TypeSize -> uint64_t,
which asserts that the type is not scalable.

This patch is NFC for fixed-width vectors.

Reviewed By: aemerson

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




More information about the All-commits mailing list