[all-commits] [llvm/llvm-project] b5a7da: [NVPTX] Pass explicit GEP type (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 8 12:22:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5a7da43916ca61d7449892a2bb8ffa784953693
      https://github.com/llvm/llvm-project/commit/b5a7da43916ca61d7449892a2bb8ffa784953693
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp

  Log Message:
  -----------
  [NVPTX] Pass explicit GEP type (NFC)

Use source element type of original GEP, as we're just changing
the address space.


  Commit: cfb94212d49a1a28208b09bb7d80b86956854b4b
      https://github.com/llvm/llvm-project/commit/cfb94212d49a1a28208b09bb7d80b86956854b4b
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp

  Log Message:
  -----------
  [AMDGPU] Pass explicit GEP type in printf transform (NFC)

This code is working on an i8*. Avoid nullptr element type in
preparation for removing support.


  Commit: 9e225a2a71ce43cb74283d3bcf8c9d1eb7c30bd4
      https://github.com/llvm/llvm-project/commit/9e225a2a71ce43cb74283d3bcf8c9d1eb7c30bd4
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp

  Log Message:
  -----------
  [AMDGPU] Simplify GEP construction (NFC)

Noticed while making a related change. This code was doing
something really peculiar: Creating an APInt by parsing a string.
And then creating a SmallVector with one element to create the
GEP.

Instead create the APInt from integers and directly pass the single
index to GetElementPtrInst::Create().


  Commit: a0ea3675629a1aecc60326e5439d811956b0f92a
      https://github.com/llvm/llvm-project/commit/a0ea3675629a1aecc60326e5439d811956b0f92a
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp

  Log Message:
  -----------
  [CodeGen] Avoid nullptr arg to CreateStructGEP (NFC)

For now just make the getPointerElementType() explicit.


Compare: https://github.com/llvm/llvm-project/compare/f57d396dcab2...a0ea3675629a


More information about the All-commits mailing list