[all-commits] [llvm/llvm-project] 1d1e29: [IR] Extract method to get single GEP index from o...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Dec 10 08:23:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d1e29ba6c80a78db488deb28670e779c48e1e06
      https://github.com/llvm/llvm-project/commit/1d1e29ba6c80a78db488deb28670e779c48e1e06
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-10 (Fri, 10 Dec 2021)

  Changed paths:
    M llvm/include/llvm/IR/DataLayout.h
    M llvm/lib/IR/DataLayout.cpp

  Log Message:
  -----------
  [IR] Extract method to get single GEP index from offset (NFC)

This exposes the core logic of getGEPIndicesForOffset() as a
getGEPIndexForOffset() method that only returns a single offset,
instead of following the whole chain.




More information about the All-commits mailing list