[all-commits] [llvm/llvm-project] d9f36c: [ConstantFolding] Add ConstantFoldIntegerCast helper

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 1 03:13:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9f36c45da85b2086781a921606ea5f828b045ff
      https://github.com/llvm/llvm-project/commit/d9f36c45da85b2086781a921606ea5f828b045ff
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-01 (Wed, 01 Nov 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/ConstantFolding.h
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  [ConstantFolding] Add ConstantFoldIntegerCast helper

This is intended as the replacement for ConstantExpr::getIntegerCast(),
which does not require availability of the corresponding constant
expressions. It just forwards to ConstantFoldCastOperand with the
correct opcode.




More information about the All-commits mailing list