[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)
commit474e5de72de95414c883fc2759f8a75b20ee42be
treef13d33b65158e97a5fc761ac17773af01ee740cd
parentcdd5ae6676aac86531d0b5fed97f57727d094bc5
[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.

llvm-svn: 301105
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/Target/Hexagon/HexagonMCInstLower.cpp