diff options
author | Marcello Maggioni <hayarms@gmail.com> | 2019-10-10 21:46:26 +0000 |
---|---|---|
committer | Marcello Maggioni <hayarms@gmail.com> | 2019-10-10 21:46:26 +0000 |
commit | 0112123eea5f36ecc8880632f70d80b6522518d0 (patch) | |
tree | ddfdb048064922e9da089bc4072fbb6e6a0918e9 /lldb/packages/Python/lldbsuite/test/commands/expression/context-object-objc/TestContextObjectObjc.py | |
parent | 3f2d42baa010c5295a8ca5c57a2f15a40def7674 (diff) | |
download | bcm5719-llvm-0112123eea5f36ecc8880632f70d80b6522518d0.tar.gz bcm5719-llvm-0112123eea5f36ecc8880632f70d80b6522518d0.zip |
[GISel] Allow getConstantVRegVal() to return G_FCONSTANT values.
In GISel we have both G_CONSTANT and G_FCONSTANT, but because
in GISel we don't really have a concept of Float vs Int value
the only difference between the two is where the data originates
from.
What both G_CONSTANT and G_FCONSTANT return is just a bag of bits
with the constant representation in it.
By making getConstantVRegVal() return G_FCONSTANTs bit representation
as well we allow ConstantFold and other things to operate with
G_FCONSTANT.
Adding tests that show ConstantFolding to work on mixed G_CONSTANT
and G_FCONSTANT sources.
Differential Revision: https://reviews.llvm.org/D68739
llvm-svn: 374458
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/context-object-objc/TestContextObjectObjc.py')
0 files changed, 0 insertions, 0 deletions