1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/lib
Craig Topper 356602eddf [APInt] Give the value union a name so we can remove assumptions on VAL being the larger member
Currently several places assume the VAL member is always at least the same size as pVal. In particular for a memcpy in the move assignment operator. While this is a true assumption, it isn't good practice to assume this.

This patch gives the union a name so we can write the memcpy in terms of the union itself. This also adds a similar memcpy to the move constructor where we previously just copied using VAL directly.

This patch is mostly just a mechanical addition of the U in front of VAL and pVAL everywhere. But several constructors had to be modified since we can't directly initializer a field of named union from the initializer list.

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

llvm-svn: 302040
2017-05-03 15:46:24 +00:00
..
Analysis Replace hardcoded intrinsic list with speculatable attribute. 2017-05-03 02:26:10 +00:00
AsmParser AMDGPU: Add AMDGPU_HS calling convention 2017-05-02 15:41:10 +00:00
Bitcode Bitcode: Simplify how we enumerate summaries in the index. NFCI. 2017-05-02 17:48:39 +00:00
CodeGen [PowerPC, DAGCombiner] Fold a << (b % (sizeof(a) * 8)) back to a single instruction 2017-05-03 00:07:02 +00:00
DebugInfo Verify that no compile units share the same line table in "llvm-dwarfdump --verify" 2017-05-03 15:45:31 +00:00
Demangle Add support for demangling C++11 thread_local variables. 2017-01-31 15:56:36 +00:00
ExecutionEngine [APInt] Use inplace shift methods where possible. NFCI 2017-04-28 03:36:24 +00:00
Fuzzer Fuzzer: Mark test/cxxstring.test UNSUPPORTED: windows 2017-04-28 23:59:53 +00:00
IR [APInt] Give the value union a name so we can remove assumptions on VAL being the larger member 2017-05-03 15:46:24 +00:00
IRReader
LibDriver Fix some ArgList uses after API change in r300135. 2017-04-12 23:43:58 +00:00
LineEditor
Linker [Linker] Provide callback for internalization 2017-03-13 18:08:11 +00:00
LTO Bitcode: Make the summary reader responsible for merging. NFCI. 2017-05-01 22:04:36 +00:00
MC [LLVM][inline-asm] Altmacro absolute expression '%' feature 2017-05-01 13:20:12 +00:00
Object Add llvm::object::getELFSectionTypeName(). 2017-05-02 14:04:52 +00:00
ObjectYAML [WebAssembly] Allow for signed relocation addends 2017-04-26 00:02:31 +00:00
Option ArgList: cache index ranges containing arguments with each ID 2017-04-12 23:19:51 +00:00
Passes [PM/LoopUnswitch] Introduce a new, simpler loop unswitch pass. 2017-04-27 18:45:20 +00:00
ProfileData [ProfileData] Unify getInstrProf*SectionName helpers 2017-04-15 00:09:57 +00:00
Support [APInt] Give the value union a name so we can remove assumptions on VAL being the larger member 2017-05-03 15:46:24 +00:00
TableGen Use print() instead of dump() in code 2017-01-28 02:47:46 +00:00
Target Revert rL302028 due to accidental line ending changes. 2017-05-03 15:42:29 +00:00
Transforms [Loop Deletion] Delete loops that are never executed 2017-05-03 11:47:11 +00:00
XRay [XRay] - Fix spelling error to test commit access. 2017-04-06 03:32:01 +00:00
CMakeLists.txt [XRay] Define the library for XRay trace logs 2017-01-11 06:39:09 +00:00
LLVMBuild.txt