[all-commits] [llvm/llvm-project] 0fd018: [NFC] [AAPointerInfo] OffsetAndSize is no longer a...

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Wed Oct 26 22:32:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fd018f9a99fd51567dabf570e9a379f1ab15ccd
      https://github.com/llvm/llvm-project/commit/0fd018f9a99fd51567dabf570e9a379f1ab15ccd
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

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

  Log Message:
  -----------
  [NFC] [AAPointerInfo] OffsetAndSize is no longer an std::pair

The struct OffsetAndSize is a simple tuple of two int64_t. Treating it as a
derived class of std::pair has no special benefit, but it makes the code
verbose since we need get/set functions that avoid using "first" and "second" in
client code. Eliminating the std::pair makes this more readable.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list