summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* LoopVectorizer: Don't count the induction variable multiple timesArnold Schwaighofer2014-01-291-0/+9
| | | | | | | | When estimating register pressure, don't count the induction variable mulitple times. It is unlikely to be unrolled. This is currently disabled and hidden behind a flag ("enable-ind-var-reg-heur"). llvm-svn: 200371
* We do use pipefail these days. Update the test.Rafael Espindola2014-01-291-4/+2
| | | | llvm-svn: 200370
* [ELF][Hexagon] typeZeroFillQuick is not associated with bss section.Shankar Easwaran2014-01-296-1/+28
| | | | | | | We need to increase the memory and the filesize when we add a typeZeroFillQuick atom. llvm-svn: 200369
* [SparcV9] Use correct register class (I64RegClass) to hold the address of ↵Venkatraman Govindaraju2014-01-293-5/+42
| | | | | | _GLOBAL_OFFSET_TABLE_ in sparcv9. llvm-svn: 200368
* Use a raw_stream to implement the mangler.Rafael Espindola2014-01-293-67/+89
| | | | | | | | | This is a bit more convenient for some callers, but more importantly, it is easier to implement correctly. Doing this removes the patching of already printed data that was used for fastcall, fixing a crash with private fastcall symbols. llvm-svn: 200367
* Add support for more instruction prefixes so we can intercept functions in ↵Timur Iskhodzhanov2014-01-291-0/+22
| | | | | | the VS2013 RTL llvm-svn: 200366
* [AArch64 NEON] Lower SELECT_CC with vector operand.Kevin Qin2014-01-293-56/+362
| | | | | | | | When the scalar compare is between floating point and operands are vector, we custom lower SELECT_CC to use NEON SIMD compare for generating less instructions. llvm-svn: 200365
* lit.site.cfg:cxx_under_test should take precedence over 'which clang++'David Fang2014-01-291-4/+5
| | | | | | (reviewed by Marshall Clow) llvm-svn: 200364
* clang-cl: Better error message when trying to compile stdin (PR18640)Hans Wennborg2014-01-293-1/+12
| | | | | | | We should suggest using /Tc or /Tp to set the input type, instead of erroneously suggesting -x, which isn't a clang-cl flag. llvm-svn: 200362
* [ARM] Remove superfluous inline asm mode switch testDavid Woodhouse2014-01-291-23/+0
| | | | llvm-svn: 200361
* Remove unnecessary call to pthread_mutexattr_setpshared()Mark Seaborn2014-01-291-7/+0
| | | | | | | | | | | | | | | | | | | The default value of this attribute is PTHREAD_PROCESS_PRIVATE, so there's no point in calling pthread_mutexattr_setpshared() to set that. See: http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutexattr_getpshared.html This removes some ifdefs that tend to need to be extended for other platforms (e.g. for NaCl). Note that this call was in the first implementation of Mutex, added in r22403, so it doesn't appear to have been added in response to a performance problem. Differential Revision: http://llvm-reviews.chandlerc.com/D2633 llvm-svn: 200360
* Fixing PR18430 by checking that the size of bitfields plus padding does notYunzhong Gao2014-01-292-1/+58
| | | | | | | | grow into the following virtual base. Differential Revision: http://llvm-reviews.chandlerc.com/D2560 llvm-svn: 200359
* MC: Clean up error paths in AsmParser::parseMacroArgumentDavid Majnemer2014-01-291-10/+20
| | | | | | | | | Use an RAII object Instead of inserting a call to AsmLexer::setSkipSpace(true) in all error paths. No functional change. llvm-svn: 200358
* Make createObjectFile's signature a bit less error prone.Rafael Espindola2014-01-293-5/+10
| | | | | | | This will be better with c++11, but right now file_magic converts to bool, which makes the api really easy to misuse. llvm-svn: 200357
* A new conversion warning for when an Objective-C object literal is implicitlyRichard Trieu2014-01-285-1/+88
| | | | | | | | | cast into a boolean true value. This warning will catch code like: if (@0) {} if (@"foo") {} llvm-svn: 200356
* [Sparc] Fix breakage in r200345David Woodhouse2014-01-281-9/+10
| | | | | | Oops. Don't do build tests on patches like that with --enable-targets=x86_64 llvm-svn: 200355
* Finish bringing file_type to the llvm style (other than its name).Rafael Espindola2014-01-281-6/+5
| | | | | | | | | | I assume that the name is file_type because it is the name of a c++11 type that we will use once we convert, but at least our current implementation can look like llvm code. Thanks to David Blakie for the push. llvm-svn: 200354
* Be more explicit about which overloaded variant to use. Caught by ASan!Nick Kledzik2014-01-281-1/+1
| | | | llvm-svn: 200353
* Convert to the inner enum so the compiler can warn about it in switches.Rafael Espindola2014-01-281-3/+2
| | | | llvm-svn: 200352
* Tests for mode switchingDavid Woodhouse2014-01-283-0/+40
| | | | | | | 1. test that inlineasm works 2. test that relaxable instructions are re-encoded in the correct mode. llvm-svn: 200351
* Delete MCSubtargetInfo data members from target MCCodeEmitter classesDavid Woodhouse2014-01-286-107/+99
| | | | | | | | The subtarget info is explicitly passed to the EncodeInstruction method and we should use that subtarget info to influence any encoding decisions. llvm-svn: 200350
* Propagate MCSubtargetInfo through TableGen's getBinaryCodeForInstr()David Woodhouse2014-01-2810-315/+555
| | | | llvm-svn: 200349
* Explictly pass MCSubtargetInfo to MCCodeEmitter::EncodeInstruction()David Woodhouse2014-01-2818-30/+52
| | | | llvm-svn: 200348
* Keep the MCSubtargetInfo in the MCRelxableFragment class.David Woodhouse2014-01-283-4/+15
| | | | | | | | | | | Needed to fix PR18303 to correctly re-encode the instruction if it is relaxed. We keep a copy of the MCSubtargetInfo to make sure that we are not effected by future changes to the subtarget info coming from the assembler (e.g. when parsing .code 16 directived). llvm-svn: 200347
* Modify MCObjectStreamer EmitInstTo* interfaceDavid Woodhouse2014-01-287-18/+26
| | | | | | | | Add MCSubtargetInfo parameter virtual void EmitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &); virtual void EmitInstToData(const MCInst &Inst, const MCSubtargetInfo &); llvm-svn: 200346
* Change MCStreamer EmitInstruction interface to take subtarget infoDavid Woodhouse2014-01-2831-159/+184
| | | | llvm-svn: 200345
* Intrin.h: include setjmp.h to get a jmp_buf definitionHans Wennborg2014-01-283-5/+14
| | | | | | | This makes sure that the ms-intrin.cpp test passes by providing a mock setjmp.h as a test input. llvm-svn: 200344
* Intrin.h: implement __rdtsc and __haltHans Wennborg2014-01-281-0/+12
| | | | llvm-svn: 200343
* Objective-C. Fixes a bug where "new" family attributeFariborz Jahanian2014-01-282-1/+16
| | | | | | | was not being overridden in the category method implementation resulting in bogus warning. // rdar://15919775 llvm-svn: 200342
* Disable the COFF tests on non-X86 archsTimur Iskhodzhanov2014-01-281-0/+3
| | | | llvm-svn: 200341
* Add line table debug info to COFF files when using a win32 triple.Timur Iskhodzhanov2014-01-2813-33/+1531
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D2232 llvm-svn: 200340
* Objective-C. provide legacy encoding of *id and *Class typesFariborz Jahanian2014-01-282-1/+21
| | | | | | instead of crashing. // rdar://15824769. llvm-svn: 200338
* clang-format: Understand __attribute__s preceding parameter lists.Daniel Jasper2014-01-284-13/+18
| | | | | | | | | | | | | | Before: ReturnType __attribute__((unused)) function(int i); After: ReturnType __attribute__((unused)) function(int i); This fixes llvm.org/PR18632. llvm-svn: 200337
* Use the proper SDK when building iOS sim builds of LLVM and/or Mac OS X builds.Owen Anderson2014-01-281-3/+6
| | | | llvm-svn: 200335
* fix templates to work with pre c++11Nick Kledzik2014-01-281-1/+1
| | | | llvm-svn: 200333
* [mips] Fix ELF header flags.Matheus Almeida2014-01-282-3/+30
| | | | | | | As opposed to GCC/GAS the default ABI for Mips64 is n64. Compatibility bit should be set if o32 ABI is used when targeting Mips64. llvm-svn: 200332
* Add BumpPtrAllocator::allocateCopy() utilitiesNick Kledzik2014-01-282-0/+64
| | | | | | Makes it easy to use BumpPtrAllocator to make a copy of StringRef strings. llvm-svn: 200331
* [Mips] Declare MipsDynamicTable class in a separate header file.Simon Atanasyan2014-01-284-81/+107
| | | | llvm-svn: 200328
* clang-format: Fix option formatting in protocol buffer files.Daniel Jasper2014-01-282-0/+5
| | | | | | | | | | Before: optional int32 foo[ default = true, deprecated = true ]; After: optional int32 foo[default = true, deprecated = true]; llvm-svn: 200327
* Show help dialog the first time the "gui" is run to help users find their way.Greg Clayton2014-01-281-6/+61
| | | | llvm-svn: 200326
* [NVPTX] Fix emitting aggregate parametersGautam Chakrabarti2014-01-282-3/+23
| | | | | | | | The code was missing the case for aggregate parameters and hence was emitting them as .b0 type. Also fixed a couple of comments. llvm-svn: 200325
* [X86] Add extra rules for combining vselect dag nodes into movsd.Andrea Di Biagio2014-01-283-2/+75
| | | | | | | | | | | | | | | | | | | This improves the fix committed at revision 199683 adding the following new target specific combine rules: 1) fold (v4i32: vselect <0,0,-1,-1>, A, B) -> (v4i32 (bitcast (movsd (v2i64 (bitcast A)), (v2i64 (bitcast B))) )) 2) fold (v4f32: vselect <0,0,-1,-1>, A, B) -> (v4f32 (bitcast (movsd (v2f64 (bitcast A)), (v2f64 (bitcast B))) )) 3) fold (v4i32: vselect <-1,-1,0,0>, A, B) -> (v4i32 (bitcast (movsd (v2i64 (bitcast B)), (v2i64 (bitcast A))) )) 4) fold (v4f32: vselect <-1,-1,0,0>, A, B) -> (v4f32 (bitcast (movsd (v2i64 (bitcast B)), (v2i64 (bitcast A))) )) llvm-svn: 200324
* typoAdrian Prantl2014-01-281-1/+1
| | | | llvm-svn: 200323
* Fix pr14893.Rafael Espindola2014-01-284-0/+99
| | | | | | | | | | | When simplifycfg moves an instruction, it must drop metadata it doesn't know is still valid with the preconditions changes. In particular, it must drop the range and tbaa metadata. The patch implements this with an utility function to drop all metadata not in a white list. llvm-svn: 200322
* The llvm_headers_do_not_build project needs to be excluded from the default ↵Aaron Ballman2014-01-281-2/+3
| | | | | | | | build, otherwise it gets built (at least in Visual Studio 2013). Thanks to chapuni200000 for help with this in IRC! llvm-svn: 200321
* clang-format: Add support for a space after @propertyDaniel Jasper2014-01-284-0/+20
| | | | | | | | | Mozilla and WebKit seem to use a space after @property (verified by grepping their codebases) so we turn this on there as well. Change by Christian Legnitto. Thank you! llvm-svn: 200320
* [ASan] Reinstate ASAN_LOW_MEMORY, which has nothing to do with signal ↵Alexander Potapenko2014-01-282-2/+6
| | | | | | handling and thus should not be moved to common. llvm-svn: 200319
* [ASan] Remove an accidentally added include of signal.hAlexander Potapenko2014-01-281-1/+0
| | | | llvm-svn: 200318
* Cache invalidation for AARCH64. Disabled for Apple for now as requestedJoerg Sonnenberger2014-01-281-0/+21
| | | | | | | | by Tim Northover. Written by Matt Thomas. Differential Revision: http://llvm-reviews.chandlerc.com/D2631 llvm-svn: 200317
* [msan] Rewrite strto* interceptors and add a few more.Sergey Matveev2014-01-282-163/+96
| | | | | | | | | Express the strto* interceptors though macros. This removes a lot of duplicate code and fixes a couple of copypasto bugs (where "res" was declared of a different type than the actual return type). Also, add a few more interceptors for strto*_l. llvm-svn: 200316
OpenPOWER on IntegriCloud