- May 16, 2015
-
-
Ahmed Bougacha authored
llvm-svn: 237501
-
Bill Schmidt authored
This patch adds support for the following new instructions in the Power ISA 2.07: vpksdss vpksdus vpkudus vpkudum vupkhsw vupklsw These instructions are available through the vec_packs, vec_packsu, vec_unpackh, and vec_unpackl built-in interfaces. These are lane-sensitive instructions, so the built-ins have different implementations for big- and little-endian, and the instructions must be marked as killing the vector swap optimization for now. The first three instructions perform saturating pack operations. The fourth performs a modulo pack operation, which means it can be represented with a vector shuffle, and conversely the appropriate vector shuffles may cause this instruction to be generated. The other instructions are only generated via built-in support for now. I noticed during patch preparation that the macro __VSX__ was not previously predefined when the power8-vector or direct-move features are requested. This is an error, and I've corrected that here as well. Appropriate tests have been added. There is a companion patch to llvm for the rest of this support. llvm-svn: 237500
-
Bill Schmidt authored
This patch adds support for the following new instructions in the Power ISA 2.07: vpksdss vpksdus vpkudus vpkudum vupkhsw vupklsw These instructions are available through the vec_packs, vec_packsu, vec_unpackh, and vec_unpackl built-in interfaces. These are lane-sensitive instructions, so the built-ins have different implementations for big- and little-endian, and the instructions must be marked as killing the vector swap optimization for now. The first three instructions perform saturating pack operations. The fourth performs a modulo pack operation, which means it can be represented with a vector shuffle, and conversely the appropriate vector shuffles may cause this instruction to be generated. The other instructions are only generated via built-in support for now. Appropriate tests have been added. There is a companion patch to clang for the rest of this support. llvm-svn: 237499
-
Duncan P. N. Exon Smith authored
Transition one API from `MCSymbolData` to `MCSymbol`. The function needs both, and the backpointer from `MCSymbolData` to `MCSymbol` is going away. llvm-svn: 237498
-
Duncan P. N. Exon Smith authored
Change `MCFragment::Atom` from an `MCSymbolData` to an `MCSymbol`, moving in the direction of removing the back-pointer. llvm-svn: 237497
-
Duncan P. N. Exon Smith authored
Instead of storing a list of the `MCSymbolData` in use, store the `MCSymbol`s. Churning in the direction of removing the back pointer from `MCSymbolData`. llvm-svn: 237496
-
Evgeniy Stepanov authored
Current code tries to find the dynamic TLS header to the left of the TLS block without checking that it's not a static TLS allocation. llvm-svn: 237495
-
Filipe Cabecinhas authored
This would trigger an assertion later. Bug found with AFL fuzz. llvm-svn: 237494
-
Vince Harron authored
llvm-svn: 237493
-
NAKAMURA Takumi authored
MSVCRT's stdio doesn't do line buffering. llvm-svn: 237492
-
Lang Hames authored
CIE, not just the most recently encountered one. llvm-svn: 237491
-
Duncan P. N. Exon Smith authored
Turn `MCSymbolData` into a field inside of `MCSymbol`. Keep all the old API alive for now, so that consumers can be updated in a later commit. This means we still temporarily need the back pointer from `MCSymbolData` to `MCSymbol`, but I'll remove it in a follow-up. This optimizes for object emission over assembly emission. By removing the `DenseMap` in `MCAssembler`, llc memory usage drops from around 1040 MB to 1001 MB (3.8%). (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 237490
-
Duncan P. N. Exon Smith authored
Prepare for always including symbol data in MCSymbol. llvm-svn: 237489
-
Filipe Cabecinhas authored
llvm-svn: 237488
-
Duncan P. N. Exon Smith authored
Instead of an intrusive double-linked linked list, use a `std::vector<>`. This saves a pointer per symbol and simplifies `MCSymbolData`. Otherwise, no functionality change here. While I measured a memory drop from around 1047MB to 1040MB (0.6%) -- and this is a decent cleanup in its own right -- it's primarily a preparation patch for merging `MCSymbol` and `MCSymbolData`. I'll post an updated patch for that to the list in a moment. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 237487
-
Duncan P. N. Exon Smith authored
Stop exposing the storage for `MCAssembler::Symbols`, and have `MCAssembler` add symbols directly to its list instead of using a hook in `MCSymbolData`. This opens up room for a follow-up commit to switch from a linked list to a vector. llvm-svn: 237486
-
Greg Clayton authored
Don't crash if we have bad debug info that has a DW_TAG_inheritance with a bad DW_AT_type reference. Emit an error with instructions to file a bug. <rdar://problem/20944860> llvm-svn: 237485
-
Greg Clayton authored
<rdar://problem/20925061> llvm-svn: 237484
-
Pete Cooper authored
llvm-svn: 237483
-
Richard Trieu authored
The error has the form ... 'int' ... 'const int' ... dropped qualifiers. At first glance, it appears that the const qualifier is added. Reverse the types so that the second type is less qualified than the first. llvm-svn: 237482
-
Pete Cooper authored
llvm-svn: 237481
-
Vince Harron authored
It times out on TestMyVar:113 self.expect("\^done,value=\"0x[0-9a-f]+\"") llvm-svn: 237480 -
Vince Harron authored
TestExitDuringStep.py TestNumThreads.py TestThreadExit.py TestThreadStates.py llvm-svn: 237479
-
Pete Cooper authored
MCInstrDesc.h includes things like MCInst.h which i can now remove after this. That will be a future commit. Reviewed by Jim Grosbach. llvm-svn: 237478
-
Greg Clayton authored
<rdar://problem/20821289> llvm-svn: 237477
-
David Majnemer authored
isInt is a little easier to read, let's use that more consistently. Incidentally, this also silences a warning for shifting a negative number. This fixes PR23532. llvm-svn: 237476
-
Peter Collingbourne authored
Use llvm::StringSwitch<std::string> to take advantage of implicit asserting conversion to std::string. llvm-svn: 237475
-
David Majnemer authored
Other pieces of CodeGen want to negate frame object offsets to account for architectures where the stack grows down. Our object is a pseudo object so it's offset doesn't matter. However, we shouldn't choose an offset which results in undefined behavior if you negate it. llvm-svn: 237474
-
Richard Smith authored
With this change, enabling -fmodules-local-submodule-visibility results in name visibility rules being applied to submodules of the current module in addition to imported modules (that is, names no longer "leak" between submodules of the same top-level module). This also makes it much safer to textually include a non-modular library into a module: each submodule that textually includes that library will get its own "copy" of that library, and so the library becomes visible no matter which including submodule you import. llvm-svn: 237473
-
Jonathan Peyton authored
Add xexpand macro to the FTN_IS_INITIAL_DEVICE api function Patch by Davide Italiano Differential Revision: http://reviews.llvm.org/D9798 llvm-svn: 237472
-
Jim Grosbach authored
s/InitMCCodeGenInfo/initMCCodeGenInfo/ llvm-svn: 237471
-
Jim Grosbach authored
llvm-svn: 237470
-
Jim Grosbach authored
s/EncodeInstruction/encodeInstruction/ llvm-svn: 237469
-
Jim Grosbach authored
s/MCFixup::Create/MCFixup::create/ llvm-svn: 237468
-
Robert Flack authored
In http://reviews.llvm.org/D9754 I enabled the mangled symbol name lookup workaround used to find global and anonymous namespace symbols in linux binaries for all platforms, however we should still only check for these symbols when processing Linux or FreeBSD binaries where they are relevant. This patch makes this change. Test Plan: The tests from the original revision still pass: TestCallCPPFunction.py TestCallStopAndContinue.py TestExprs.py TestExprsChar.py TestNamespace.py TestOverloadedFunctions.py TestRvalueReferences.py TestThreadExit.py Differential Revision: http://reviews.llvm.org/D9782 llvm-svn: 237467
-
Robert Flack authored
When compiling programs for the test suite we currently choose which stdlib to use based on the host platform, but should be basing this on the target platform. Test Plan: ./dotest.py $DOTEST_OPTS -t -p TestThreadExit.py This test previously failed mac->linux most of the time due to using the mac host's atomic declaration. Differential Revision: http://reviews.llvm.org/D9797 llvm-svn: 237466
-
Greg Clayton authored
OperatingSystem plug-ins need to avoid running code when fetching thread lists. This patch helps with that by making all SBValue objects that are fetched not try to do dynamic type resolution. Objective C can end up running code to fetch a list of all ISA pointers so we can tell when something is dynamic and this running code could cause the OS plug-in to continue the target. This fix disabled dynamic types, fetches the new threads from the OS plug-in, then restores the setting. <rdar://problem/20768407> llvm-svn: 237465
-
Greg Clayton authored
llvm-svn: 237464
-
Peter Collingbourne authored
Differential Revision: http://reviews.llvm.org/D9631 llvm-svn: 237463
-
Jingyue Wu authored
llvm-svn: 237462
-