llvm-project/clang/lib/Driver
Leonard Chan db01c3adc6 [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals
This diff includes the logic for setting the precision bits for each primary fixed point type in the target info and logic for initializing a fixed point literal.

Fixed point literals are declared using the suffixes

```
hr: short _Fract
uhr: unsigned short _Fract
r: _Fract
ur: unsigned _Fract
lr: long _Fract
ulr: unsigned long _Fract
hk: short _Accum
uhk: unsigned short _Accum
k: _Accum
uk: unsigned _Accum
```
Errors are also thrown for illegal literal values

```
unsigned short _Accum u_short_accum = 256.0uhk;   // expected-error{{the integral part of this literal is too large for this unsigned _Accum type}}
```

Differential Revision: https://reviews.llvm.org/D46915

llvm-svn: 335148
2018-06-20 17:19:40 +00:00
..
ToolChains [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals 2018-06-20 17:19:40 +00:00
Action.cpp [HIP] Add hip offload kind 2018-05-08 21:02:12 +00:00
CMakeLists.txt Add HIP toolchain 2018-05-30 00:53:50 +00:00
Compilation.cpp [Driver] Clean up tmp files when deleting Compilation objects 2018-05-31 09:05:22 +00:00
Distro.cpp Add support of the next Ubuntu (Ubuntu 18.10 - Cosmic Canimal) 2018-05-10 08:45:43 +00:00
Driver.cpp Modules: Fix implicit output file for .cppm to .pcm instead of stdout 2018-06-14 23:09:06 +00:00
DriverOptions.cpp Revert "Revert r311552: [Bash-autocompletion] Add support for static analyzer flags" 2017-08-29 00:09:31 +00:00
InputInfo.h Add an Action* member to InputInfo. 2016-01-11 23:15:21 +00:00
Job.cpp Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
Multilib.cpp [Driver] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-20 21:08:59 +00:00
Phases.cpp
SanitizerArgs.cpp Do not enable RTTI with -fexceptions, for PS4 2018-05-18 23:32:01 +00:00
Tool.cpp Rename the version of ConstructJob for multiple outputs to ConstructJobMultipleOutputs. 2016-11-03 15:41:50 +00:00
ToolChain.cpp Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
Types.cpp [HIP] Set proper triple and offload kind for the toolchain 2018-05-11 19:21:39 +00:00
XRayArgs.cpp Permit -fxray-instrument for NetBSD/amd64 2018-05-11 00:58:55 +00:00