[all-commits] [llvm/llvm-project] 719ab0: [GlobalISel] Handle IntToPtr constants in dbg.value

Adrian Prantl via All-commits all-commits at lists.llvm.org
Wed Jul 27 13:42:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 719ab04acf97dde76249835b25ab3d246ff95877
      https://github.com/llvm/llvm-project/commit/719ab04acf97dde76249835b25ab3d246ff95877
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2022-07-27 (Wed, 27 Jul 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/debug-insts.ll

  Log Message:
  -----------
  [GlobalISel] Handle IntToPtr constants in dbg.value

Currently, the IR to MIR translator can only handle two kinds of constant
inputs to dbg.values intrinsics: constant integers and constant floats. In
particular, it cannot handle pointers created from IntToPtr ConstantExpression
objects.

This patch addresses the limitation above by replacing the IntToPtr with
its input integer prior to converting the dbg.value input.

Patch by Felipe Piovezan!

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




More information about the All-commits mailing list