Go to file
Stepan Dyatkovskiy 5a63792239 Add new methods for TargetInfo:
getRealTypeByWidth and getIntTypeByWidth
  for ASTContext names are almost same(invokes new methods from TargetInfo):
     getIntTypeForBitwidth and getRealTypeForBitwidth.

As first commit for PR16752 fix: '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 virtual methods. By default current behaviour could be implemented here.
2. Fix handleModeAttr according to new methods in TargetInfo.
This approach is implemented in the patch attached to this post.

Fixes:
1st Commit (Current): Add new methods for TargetInfo:
     getRealTypeByWidth and getIntTypeByWidth
  for ASTContext names are almost same(invokes new methods from TargetInfo):
     getIntTypeForBitwidth and getRealTypeForBitwidth

2nd Commit (Next): Fix SemaDeclAttr, handleModeAttr function.

llvm-svn: 190044
2013-09-05 11:23:21 +00:00
clang Add new methods for TargetInfo: 2013-09-05 11:23:21 +00:00
clang-tools-extra modularize - Fix of header dependencies - this time with the source. 2013-09-04 20:46:24 +00:00
compiler-rt sanitizers: Make sure Visual Studio gets error reports 2013-09-05 03:19:57 +00:00
debuginfo-tests Only fail this on darwin since most other platforms should have a newer 2013-09-04 05:06:10 +00:00
libclc Add mul_hi implementation [v2] 2013-08-19 18:31:49 +00:00
libcxx N3545: Quoted strings 2013-09-05 04:48:45 +00:00
libcxxabi Change the two last remaining _LIBCPP_CANTTHROW to _NOEXCEPT 2013-08-29 19:19:27 +00:00
lld [lld][cleanup] remove unused ReaderFunc to avoid confusion. 2013-09-05 04:27:17 +00:00
lldb Remove a spurious comment. 2013-09-05 01:52:29 +00:00
llvm ARM: Add GPR register class excluding LR for use with the ADR instruction. 2013-09-05 11:10:31 +00:00
polly [CodeGen] Fixup assert fails caused by incorrect LoopInfo update 2013-09-02 16:13:00 +00:00