[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
Author: Adrian Prantl <aprantl at apple.com>
Date: 2022-07-27 (Wed, 27 Jul 2022)
[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
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