[all-commits] [llvm/llvm-project] 67346b: [Attributor] Use MemoryLocation to get pointer ope...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jan 24 01:13:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67346b43e0ed28047b3a4e40ea18d2218febcbf8
      https://github.com/llvm/llvm-project/commit/67346b43e0ed28047b3a4e40ea18d2218febcbf8
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [Attributor] Use MemoryLocation to get pointer operand and accessed type (NFCI)

This relies on existing APIs and avoids accessing the pointer
element type. The alternative would be to extend getPointerOperand()
to also return the accessed type, but I figured going through
MemoryLocation would be cleaner.

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




More information about the All-commits mailing list