[all-commits] [llvm/llvm-project] 2fe296: [CodeGen] Simplify LLT bitfields. NFC. (#120074)

Jay Foad via All-commits all-commits at lists.llvm.org
Mon Dec 16 13:23:56 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fe296965930932be9b7b155bf8c10a0f81c58cf
      https://github.com/llvm/llvm-project/commit/2fe296965930932be9b7b155bf8c10a0f81c58cf
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M llvm/include/llvm/CodeGenTypes/LowLevelType.h
    M llvm/lib/CodeGenTypes/LowLevelType.cpp

  Log Message:
  -----------
  [CodeGen] Simplify LLT bitfields. NFC. (#120074)

- Put the element size field in the same place for all non-pointer
  types.
- Put the element size and address space fields in the same place for
  all pointer types.
- Put the number of elements and scalable fields in the same place for
  all vector types.

This simplifies initialization and accessor methods isScalable,
getElementCount, getScalarSizeInBits and getAddressSpace.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list