summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove another hasRawTextSupport.Rafael Espindola2014-01-3114-180/+79
| | | | | | | | | To remove this one simply move the end of file logic from the asm printer to the target mc streamer. This removes the last call to hasRawTextSupport from lib/Target. llvm-svn: 200590
* [PECOFF] Handle /machine option before handling all the other options.Rui Ueyama2014-01-312-13/+15
| | | | | | | | The target machine type affects the meaning of other options, in particular how to mangle symbols. So we want to handle the option first and then parse all the other options. llvm-svn: 200589
* Set -mcpu to make this test pass on atom botsReid Kleckner2014-01-311-1/+1
| | | | llvm-svn: 200588
* [ms-cxxabi] Use x86_cdeclmethodcc for __cdecl methods on win32Reid Kleckner2014-01-3113-98/+142
| | | | | | | | | | | | | | | | | | | This fixes PR15768, where the sret parameter and the 'this' parameter are in the wrong order. Instance methods compiled by MSVC never return records in registers, they always return indirectly through an sret pointer. That sret pointer always comes after the 'this' parameter, for both __cdecl and __thiscall methods. Unfortunately, the same is true for other calling conventions, so we'll have to change the overall approach here relatively soon. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D2664 llvm-svn: 200587
* [inliner] Print out extra stats about the cost, threshold, and vectorChandler Carruth2014-01-311-0/+3
| | | | | | | | bonus in the inline cost analysis. Split out of a patch by Dario Domizioli to commit separately. llvm-svn: 200586
* [ms-cxxabi] Raise aggregate memptr alignment to 8 for x86_32Reid Kleckner2014-01-314-34/+147
| | | | | | | | | | | | | | | | With this change, we give different results for __alignof than MSVC, but our record layout is compatible. Some data member pointers also now have a size that is not a multiple of their alignment. Fixes PR18618. Reviewers: majnemer Differential Revision: http://llvm-reviews.chandlerc.com/D2669 llvm-svn: 200585
* Fix comment typo in test.Richard Smith2014-01-311-1/+3
| | | | llvm-svn: 200584
* Remove the last hasRawTextSupport call from R600.Rafael Espindola2014-01-311-2/+1
| | | | | | | | There is nothing wrong with printing the disassembly section when printing text. An hypothetical assembler would then produce a .o just like our direct object emission produces. llvm-svn: 200583
* Replace another use with hasRawTextSupport+EmitRawText with emitRawComment.Rafael Espindola2014-01-311-2/+2
| | | | llvm-svn: 200582
* Use emitRawComment to avoid a call to hasRawTextSupport.Rafael Espindola2014-01-311-3/+1
| | | | llvm-svn: 200581
* Fix file header for APFloat.hDuncan P. N. Exon Smith2014-01-311-1/+1
| | | | llvm-svn: 200580
* Clean up whitespaceDuncan P. N. Exon Smith2014-01-312-3/+3
| | | | llvm-svn: 200579
* Mark the first dynamic elf symbol as SF_FormatSpecific.Rafael Espindola2014-01-312-2/+5
| | | | llvm-svn: 200578
* Replace X86 FMA intrinsic pseduo-instructions with def pats.Lang Hames2014-01-313-36/+23
| | | | | | | | | | | It looks like these pseudos were only used for pattern matching. Def pats are the appropriate way to do that. As a bonus, these intrinsics will now have memory operands folded properly, and better FMA3 variants selected where appropriate (see r199933). <rdar://problem/15611947> llvm-svn: 200577
* [SLPV] Recognize vectorizable intrinsics during SLP vectorization andChandler Carruth2014-01-312-3/+161
| | | | | | | | | | transform accordingly. Based on similar code from Loop vectorization. Subsequent commits will include vectorization of function calls to vector intrinsics and form function calls to vector library calls. Patch by Raul Silvera! (Much delayed due to my not running dcommit) llvm-svn: 200576
* Update for llvm api change.Rafael Espindola2014-01-311-2/+1
| | | | llvm-svn: 200575
* Simplify getSymbolFlags.Rafael Espindola2014-01-3110-35/+22
| | | | | | | None of the object formats require extra parsing to compute these flags, so the method cannot fail. llvm-svn: 200574
* Track the currently-being-built submodule inside the preprocessor (rather thanRichard Smith2014-01-314-39/+38
| | | | | | | just storing a flag indicating if there was one), and include it in the 'end of module' annotation. No functionality change. llvm-svn: 200573
* If we're not producing DWARF accel tables, don't waste memoryPaul Robinson2014-01-311-0/+4
| | | | | | keeping track of those entries. llvm-svn: 200572
* Add support for DW_FORM_flag and DW_FORM_flag_present to the DIE hashingEric Christopher2014-01-312-10/+50
| | | | | | | | algorithm. Sink the 'A' + Attribute hash into each form so we don't have to check valid forms before deciding whether or not we're going to hash which will let the default be to return without doing anything. llvm-svn: 200571
* Fix name of nested type in comment to match code.Eric Christopher2014-01-311-1/+1
| | | | llvm-svn: 200570
* DebugInfo: Flag type unit references as declarationsDavid Blaikie2014-01-312-0/+7
| | | | | | | | | This ensures DWARF consumers don't confuse these references for definitions. I'd argue it might be nice to improve debuggers so we don't need this, but it's just one field in an abbreviation anyway - so it doesn't seem worth the fight. llvm-svn: 200569
* MS Intrin.h: implement __cpuidex and simplify __cpuidHans Wennborg2014-01-311-7/+7
| | | | | | | The two identical implementations of __cpuid for X86 / X86_64 were leftovers from my first iteration on the patch that implemented it. llvm-svn: 200568
* [sanitizer] Partial revert of recent ioctl changes.Sergey Matveev2014-01-314-502/+0
| | | | | | | | Some build environments are missing the required headers. This reverts r200544, r200547, r200551. This does not revert the change that introduced READWRITE ioctl type. llvm-svn: 200567
* x86: Rename NumBytesForCalleeToPush to ...Pop for accuracyReid Kleckner2014-01-311-5/+5
| | | | | | | If we have a callee cleanup convention, the callee is going to pop the arguments off the stack, not push them on. llvm-svn: 200566
* Fixing the Windows build for the changes brought in from the iohandler merge.Deepak Panickal2014-01-3118-292/+240
| | | | llvm-svn: 200565
* Remove /FS as it's auto-added by CMake 2.8.12.1; also, remove /wd4221 as ↵Timur Iskhodzhanov2014-01-311-2/+0
| | | | | | 4221 is a linker warning, not a compiler warning llvm-svn: 200564
* [CMake] arcmt-test: Reorganize link libraries with *actually referenced* ↵NAKAMURA Takumi2014-01-311-6/+3
| | | | | | | | libs from arcmt-test.cpp. arcmt-test doesn't depend on llvm codegen. llvm-svn: 200563
* Revert r200560, "LTO itself hasn't depended on MCDisassembler any more."NAKAMURA Takumi2014-01-312-1/+2
| | | | | | Oh sorry, I missed LTO.exports, ... I checked just only *.cpp(s). llvm-svn: 200562
* [ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret'Reid Kleckner2014-01-3110-2/+124
| | | | | | | | | | | | | | | | | | | | MSVC always places the 'this' parameter for a method first. The implicit 'sret' pointer for methods always comes second. We already implement this for __thiscall by putting sret parameters on the stack, but __cdecl methods require putting both parameters on the stack in opposite order. Using a special calling convention allows frontends to keep the sret parameter first, which avoids breaking lots of assumptions in LLVM and Clang. Fixes PR15768 with the corresponding change in Clang. Reviewers: ributzka, majnemer Differential Revision: http://llvm-reviews.chandlerc.com/D2663 llvm-svn: 200561
* LTO itself hasn't depended on MCDisassembler any more.NAKAMURA Takumi2014-01-312-3/+1
| | | | llvm-svn: 200560
* llvm/tools: Prune redundant target_link_libraries.NAKAMURA Takumi2014-01-312-4/+0
| | | | llvm-svn: 200559
* [CMake] Move libgtest for external projects.NAKAMURA Takumi2014-01-311-1/+4
| | | | llvm-svn: 200558
* AddLLVM.cmake: Untabify.NAKAMURA Takumi2014-01-311-2/+2
| | | | llvm-svn: 200557
* HandleLLVMOptions.cmake: Typo, s/proerty/property/NAKAMURA Takumi2014-01-311-1/+2
| | | | llvm-svn: 200556
* Last option on -fexception for arm-disable-ehabiRenato Golin2014-01-311-3/+6
| | | | | | | Previous commit would have a following flag overriding the behaviour and not taken care of. llvm-svn: 200555
* [ASan] Implement __sanitizer::InstallDeadlySignalHandlers() and ↵Alexander Potapenko2014-01-312-1/+6
| | | | | | __asan::AsanOnSIGSEGV() on Windows. llvm-svn: 200554
* [ASan] Add a failing test that demonstrates that ASan currently breaks dead ↵Alexander Potapenko2014-01-311-0/+13
| | | | | | | | code stripping on Linux. See https://code.google.com/p/address-sanitizer/issues/detail?id=260 for more info. llvm-svn: 200553
* Sorting ARM Sources alphabeticallyRenato Golin2014-01-311-39/+38
| | | | llvm-svn: 200552
* [asan] Fix Android build.Evgeniy Stepanov2014-01-312-2/+2
| | | | llvm-svn: 200551
* [asan] Read extra flags from a system property on activation on Android.Evgeniy Stepanov2014-01-315-0/+27
| | | | llvm-svn: 200550
* [libsanitizer] Fix compilation for gotsan.Alexander Potapenko2014-01-312-1/+3
| | | | llvm-svn: 200549
* Add libs needed by iohandler merge to Makefile for FreeBSDEd Maste2014-01-311-1/+2
| | | | | | | Copied from the Linux case added in r200263. Discovered by the FreeBSD buildbot - I tested the branch with cmake. llvm-svn: 200548
* [sanitizer] Attempt to fix Android build.Sergey Matveev2014-01-314-7/+5
| | | | llvm-svn: 200547
* Enable compilation of RT on ARMRenato Golin2014-01-314-4/+70
| | | | | | | | | | | | Adding the ARM RT sources to the CMake files, and enabling some sanitizers to also build on ARM. This is far from supported or production quality, but enabling it to build will get us errors that we can actually fix. Having said that, the Compiler-RT and the Asan libraries are know to work on some variations of ARM. llvm-svn: 200546
* Connect -fno-exceptions to -arm-disable-ehabiRenato Golin2014-01-312-0/+10
| | | | llvm-svn: 200545
* [sanitizer] Support most ioctls from /usr/include/sound/.Sergey Matveev2014-01-315-7/+516
| | | | llvm-svn: 200544
* [mips][msa] Add insert.d instruction.Matheus Almeida2014-01-314-0/+46
| | | | | | This instruction is only available on Mips64 cores that implement the MSA ASE. llvm-svn: 200543
* [ASan] Move the SIGSEGV/SIGBUS handling to sanitizer_commonAlexander Potapenko2014-01-3112-31/+77
| | | | | | | This change is a part of refactoring intended to have common signal handling behavior in all tools. This particular CL moves InstallSignalHandlers() into sanitizer_common (making it InstallDeadlySignalHandlers()), but doesn't enable default signal handlers for any tool other than ASan. llvm-svn: 200542
* Update FileCheck prefixes in preparation for the addition of Mips64 MSA tests.Matheus Almeida2014-01-311-60/+62
| | | | | | No functional changes. llvm-svn: 200541
OpenPOWER on IntegriCloud