summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2013-09-18 09:08:52 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2013-09-18 09:08:52 +0000
commitb88c30facd07c2d3b6a37138f66a9001ddc442c7 (patch)
tree81625cf1250bf5b1e3392212fa9dba5395eb2be8 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parent718ce62b3cc3bb2ee356788bbd4bfda23bce1f74 (diff)
downloadbcm5719-llvm-b88c30facd07c2d3b6a37138f66a9001ddc442c7.tar.gz
bcm5719-llvm-b88c30facd07c2d3b6a37138f66a9001ddc442c7.zip
Recommited:
Fix for PR16752. Second commit. PR16752: 'mode' attribute for unusual targets doesn't work properly Description: Troubles could be happened due to some assumptions in handleModeAttr function (see SemaDeclAttr.cpp). For example, it assumes that 32 bit integer is 'int', while it could be 16 bit only. Instead of asking target: 'which type do you want to use for int32_t ?' it just hardcodes general opinion. That doesn't looks pretty correct. Please consider the next solution: 1. In Basic/TargetInfo add getIntTypeByWidth and getRealTypeByWidth methods. Methods asks target for proper type for given bit width. 2. Fix handleModeAttr according to new methods in TargetInfo. Fixes: 1st Commit (Done): Add new methods for TargetInfo: getRealTypeByWidth and getIntTypeByWidth for ASTContext names are almost same(invokes new methods from TargetInfo): getIntTypeForBitwidth and getRealTypeForBitwidth 2nd Commit (Current): Fix SemaDeclAttr, handleModeAttr function. Also test/Sema/attr-mode.c was fixed. 'XC' mode test was disabled for PPC64 machines. llvm-svn: 190926
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud