]> granicus.if.org Git - llvm/commit
[APInt] Fix a few places that use APInt::getRawData to operate within the normal...
authorCraig Topper <craig.topper@gmail.com>
Sun, 23 Apr 2017 06:41:11 +0000 (06:41 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 23 Apr 2017 06:41:11 +0000 (06:41 +0000)
commitaeda13660512365c4308dae642ca52311e005b22
tree57befeb75372b775408ec3ac1386d79847804dd7
parente3ba85012765d1150e02d5f0d0da1738d531efc7
[APInt] Fix a few places that use APInt::getRawData to operate within the normal API.

getRawData exposes the internal type of the APInt class directly to its users. Ideally we wouldn't expose such an implementation detail.

This patch fixes a few of the easy cases by using truncate, extract, or a rotate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
lib/Target/Hexagon/HexagonMCInstLower.cpp