[all-commits] [llvm/llvm-project] b20539: [IR] Add ConstantExpr::getPtrAdd() (#181365)

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Feb 16 02:10:36 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b205396086ef60143ba4849579c01c04241a23f6
      https://github.com/llvm/llvm-project/commit/b205396086ef60143ba4849579c01c04241a23f6
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-02-16 (Mon, 16 Feb 2026)

  Changed paths:
    M clang/lib/CodeGen/CGExprConstant.cpp
    M clang/lib/CodeGen/CGObjCMac.cpp
    M llvm/include/llvm/IR/Constants.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Transforms/IPO/GlobalSplit.cpp
    M llvm/lib/Transforms/IPO/LowerTypeTests.cpp
    M llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
    M llvm/unittests/IR/PatternMatch.cpp

  Log Message:
  -----------
  [IR] Add ConstantExpr::getPtrAdd() (#181365)

Add a ConstantExpr::getPtrAdd() API that creates a getelementptr i8
constant expression, similar to IRBuilder::CreatePtrAdd(). In the future
this will create a ptradd expression.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list