[all-commits] [llvm/llvm-project] e27f92: [NVPTX][NFC] Simplify printing initialization of a...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Mon Jul 18 04:09:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e27f9214c0465fab2d5efa3cf462019836f5eb08
      https://github.com/llvm/llvm-project/commit/e27f9214c0465fab2d5efa3cf462019836f5eb08
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h

  Log Message:
  -----------
  [NVPTX][NFC] Simplify printing initialization of aggregates

This simplifies NVPTXAsmPrinter::AggBuffer and its usage.
It is also a preparation for D127504.

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


  Commit: 04e978ccba1e6c8b600b2fbad1a82b4b64ffc34b
      https://github.com/llvm/llvm-project/commit/04e978ccba1e6c8b600b2fbad1a82b4b64ffc34b
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
    M llvm/lib/Target/NVPTX/NVPTXSubtarget.h
    A llvm/test/CodeGen/NVPTX/packed-aggr.ll

  Log Message:
  -----------
  [NVPTX] Use the mask() operator to initialize packed structs with pointers

The current implementation assumes that all pointers used in the
initialization of an aggregate are aligned according to the pointer size
of the target; that might not be so if the object is packed. In that
case, an array of .u8 should be used and pointers should be decorated
with the mask() operator.

The operator was introduced in PTX ISA 7.1, so an error is issued if the
case is detected for an earlier version.

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


Compare: https://github.com/llvm/llvm-project/compare/db8fcb2c2537...04e978ccba1e


More information about the All-commits mailing list