[all-commits] [llvm/llvm-project] 2c68ec: [OpaquePtr] Remove uses of CreateGEP() without ele...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Jul 17 14:03:08 PDT 2021


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

  Changed paths:
    M clang/lib/CodeGen/CGBuilder.h
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGClass.cpp
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/lib/CodeGen/CGObjC.cpp
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/CodeGen/ItaniumCXXABI.cpp
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp
    M clang/lib/CodeGen/TargetInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUReplaceLDSUseWithPointer.cpp
    M mlir/lib/ExecutionEngine/ExecutionEngine.cpp
    M polly/lib/CodeGen/IslExprBuilder.cpp
    M polly/lib/CodeGen/RuntimeDebugBuilder.cpp

  Log Message:
  -----------
  [OpaquePtr] Remove uses of CreateGEP() without element type

Remove uses of to-be-deprecated API. In cases where the correct
element type was not immediately obvious to me, fall back to
explicit getPointerElementType().


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

  Changed paths:
    M llvm/include/llvm/IR/IRBuilder.h

  Log Message:
  -----------
  [IRBuilder] Deprecate CreateGEP() without element type

This API is incompatible with opaque pointers and deprecated in
favor of the version that accepts an explicit element type.

Also remove the separate overload for a single index, as this is
already covered by the ArrayRef overload.


Compare: https://github.com/llvm/llvm-project/compare/f95d26006e06...f164bc52b61a


More information about the All-commits mailing list