[all-commits] [llvm/llvm-project] 224872: [NFC] Remove more uses of PointerType::getElementT...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jan 25 01:14:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22487280dcea8261996385b852ca4470b8e4846b
      https://github.com/llvm/llvm-project/commit/22487280dcea8261996385b852ca4470b8e4846b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-25 (Tue, 25 Jan 2022)

  Changed paths:
    M llvm/unittests/AsmParser/AsmParserTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
    M mlir/lib/Target/LLVMIR/TypeFromLLVM.cpp

  Log Message:
  -----------
  [NFC] Remove more uses of PointerType::getElementType() (NFC)

Replace more uses which I missed in the first pass with
Type::getPointerElementType().


  Commit: 184591aeeb5a531f2315c3d7cddcd199c87ecb2c
      https://github.com/llvm/llvm-project/commit/184591aeeb5a531f2315c3d7cddcd199c87ecb2c
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-25 (Tue, 25 Jan 2022)

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

  Log Message:
  -----------
  [OpaquePtrs] Deprecate PointerType::getElementType()

This deprecates PointerType::getElementType() in favor of
Type::getPointerElementType(). The motivation is to make it more
apparent when code accesses the pointer element type, because
getElementType() may also also refer to at least
ArrayType::getElementType() and VectorType::getElementType().

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


Compare: https://github.com/llvm/llvm-project/compare/aa97bc116d34...184591aeeb5a


More information about the All-commits mailing list