diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-11-03 09:50:17 -0500 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-12-22 22:23:58 -0500 |
commit | 581d13f8aeb66c040d5ea69ad4385f766e1f97c9 (patch) | |
tree | 149f288a6be13dccfe2437ec86ca4b66d80938bc /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 77fb45e59e49d25fbc57854b62599ae24aa2c4c9 (diff) | |
download | llvm-581d13f8aeb66c040d5ea69ad4385f766e1f97c9.zip llvm-581d13f8aeb66c040d5ea69ad4385f766e1f97c9.tar.gz llvm-581d13f8aeb66c040d5ea69ad4385f766e1f97c9.tar.bz2 |
GlobalISel: Return APInt from getConstantVRegVal
Returning int64_t was arbitrarily limiting for wide integer types, and
the functions should handle the full generality of the IR.
Also changes the full form which returns the originally defined
vreg. Add another wrapper for the common case of just immediately
converting to int64_t (arguably this would be useful for the full
return value case as well).
One possible issue with this change is some of the existing uses did
break without conversion to getConstantVRegSExtVal, and it's possible
some without adequate test coverage are now broken.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions