summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add Windows error code and tidy formatting for system errors.Paul Robinson2015-11-234-11/+15
| | | | | | Differential Revision: http://reviews.llvm.org/D14892 llvm-svn: 253888
* Make tbm-builtins.c as X86 specific unit testSumanth Gundapaneni2015-11-231-0/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D14887 llvm-svn: 253887
* Disable frame pointer elimination when using -pg Xinliang David Li2015-11-233-1/+20
| | | | | | | | | | | | | | | | (Re-apply patch after bug fixing) This diff makes sure that the driver does not pass -fomit-frame-pointer or -momit-leaf-frame-pointer to the frontend when -pg is used. Currently, clang gives an error if -fomit-frame-pointer is used in combination with -pg, but -momit-leaf-frame-pointer was forgotten. Also, disable frame pointer elimination in the frontend when -pg is set. Patch by Stefan Kempf. llvm-svn: 253886
* [PGO] Use common definition of raw magic and versionXinliang David Li2015-11-231-15/+3
| | | | | | | - Replace duplicate definition and use of magic in profile runtime - Replace hard coded version reference in profile runtime llvm-svn: 253885
* [ELF/AArch64] Factor out overflow checks into a separate function. NFC.Igor Kudrin2015-11-231-17/+14
| | | | | | Differential revision: http://reviews.llvm.org/D14922 llvm-svn: 253884
* [PGO] Start use InstrProf template file in compiler-rt/lib/profileXinliang David Li2015-11-232-22/+14
| | | | | | | - Replace use of __llvm_profile_value_data with common data structure. - Remve duplicate InstrProfValueNode llvm-svn: 253883
* Add an AST matcher for narrowing when a type is volatile-qualified.Aaron Ballman2015-11-234-0/+46
| | | | llvm-svn: 253882
* Sync up InstrProfData.inc with masterXinliang David Li2015-11-231-2/+2
| | | | llvm-svn: 253881
* Fix comment not allowed in C90Xinliang David Li2015-11-231-2/+2
| | | | llvm-svn: 253880
* [ELF/AArch64] Fix overflow checks for R_AARCH64_PREL16 and _PREL32 relocations.Igor Kudrin2015-11-231-2/+2
| | | | llvm-svn: 253879
* [WebAssembly] Emit .param, .result, and .local through MC.Dan Gohman2015-11-2321-157/+132
| | | | | | This eliminates one of the main remaining uses of EmitRawText. llvm-svn: 253878
* SamplePGO - Clear coverage tracking when clearing per-function data.Diego Novillo2015-11-231-0/+2
| | | | llvm-svn: 253877
* [WebAssembly] Use dominator information to improve BLOCK placementDan Gohman2015-11-232-48/+166
| | | | | | | | | | Always starting blocks at the top of their containing loops works, but creates unnecessarily deep nesting because it makes all blocks in a loop overlap. Refine the BLOCK placement algorithm to start blocks at nearest common dominating points instead, which significantly shrinks them and reduces overlapping. llvm-svn: 253876
* [mips] .ent and .end should also set the type and size of the symbol ↵Daniel Sanders2015-11-232-1/+67
| | | | | | | | | | | | respectively. Reviewers: vkalintiris Subscribers: llvm-commits, seanbruno, emaste, vkalintiris, dsanders Differential Revision: http://reviews.llvm.org/D14221 llvm-svn: 253875
* Revert part of r253813Martell Malone2015-11-231-7/+0
| | | | | | The new lld gnu frontend does not support the -target option llvm-svn: 253874
* clang-format: Signficantly refactor the cast detection.Daniel Jasper2015-11-231-49/+60
| | | | | | No functional changes intended. llvm-svn: 253873
* clang-format: Fix incorrect cast detection.Daniel Jasper2015-11-232-17/+16
| | | | | | | | | | Before: bool b = f(g<int>)&&c; After: bool b = f(g<int>) && c; llvm-svn: 253872
* clang-format: If the template list of a variable declaration spansDaniel Jasper2015-11-232-1/+3
| | | | | | | | | | | | | | | multiple lines, also break before the variable name. Before: std::vector<aaaaaa, // wrap aa> aaa; After: std::vector<aaaaaa, // wrap aa> aaa; llvm-svn: 253871
* [Support] Fix SaturatingMultiply<T>() to be correct (and fast), Re-enable ↵Nathan Slingerland2015-11-232-6/+72
| | | | | | | | | | | | | | | | | | Unit Tests Summary: This change fixes the SaturatingMultiply<T>() function template to not cause undefined behavior with T=uint16_t. Thanks to Richard Smith's contribution, it also no longer requires an integer division. Patch by Richard Smith. Reviewers: silvas, davidxl Subscribers: rsmith, davidxl, llvm-commits Differential Revision: http://reviews.llvm.org/D14845 llvm-svn: 253870
* Fix Elf_Rel processing for .eh_frame.Rafael Espindola2015-11-232-1/+8
| | | | | | Thanks to Simon for the bug report. llvm-svn: 253869
* SamplePGO - Use newly introduced local variable. NFC.Diego Novillo2015-11-231-2/+2
| | | | llvm-svn: 253868
* [Hexagon] Update instruction formatsKrzysztof Parzyszek2015-11-234-35/+41
| | | | llvm-svn: 253867
* [OPENMP] 'out' dependency for 'task' directives must be the same as 'inout'.Alexey Bataev2015-11-232-5/+4
| | | | | | Runtime library requires, that codegen for 'depend' clause for 'out' dependency kind must be the same as codegen for 'depend' clause with 'inout' dependency. llvm-svn: 253866
* ARM: address WoA division overflow crashMartell Malone2015-11-235-46/+71
| | | | | | | Disable custom handling of signed 32-bit and 64-bit integer divide. Add test cases for both 32-bit and 64-bit integer overflow crashes. llvm-svn: 253865
* [LLDB][MIPS] Getting 0 index for H/W watchpoint is not necessarily an errorMohit K. Bhakkad2015-11-231-2/+2
| | | | | | | | Reviewers: jaydeep. Subscribers: bhushan, sagar, nitesh.jain, lldb-commits. Differential Revision: http://reviews.llvm.org/D14860 llvm-svn: 253864
* [OpenCL 2.0] Apply default address space (AS).Anastasia Stulova2015-11-233-31/+83
| | | | | | | | | | | | If AS of a variable/parameter declaration is not set by the source, OpenCL v2.0 s6.5 defines explicit rules for default ASes: - The AS of global and local static variables defaults to global; - All pointers point to generic AS. http://reviews.llvm.org/D13168 llvm-svn: 253863
* Use SmallVector instead of std::vectorTobias Grosser2015-11-231-1/+1
| | | | | | | | This was proposed as post-commit review comment for commit r253818. Suggested by: Johannes Doerfert <doerfert@cs.uni-saarland.de> llvm-svn: 253862
* Fix clang-format test. I believe that the new behavior is better.Daniel Jasper2015-11-231-1/+1
| | | | llvm-svn: 253861
* clang-format: Make moving of the Cursor work properly when sorting #includes.Daniel Jasper2015-11-234-43/+75
| | | | llvm-svn: 253860
* Fix calculation of shifted cursor/code positions. Specifically supportDaniel Jasper2015-11-232-27/+34
| | | | | | | | | the case where a specific range is replaced by new text. Previously, the calculation would shift any position from within a replaced region to the first character after the region. This is undersirable, e.g. for clang-format's include sorting. llvm-svn: 253859
* [tsan] Modify the tls_race.cc and tls_race2.cc tests to pass on OS XKuba Brecka2015-11-232-5/+8
| | | | | | | | On OS X, __thread variables are lazily heap-allocated (with malloc). Therefore, they're recognized as heap blocks (which is what they are) and not as TLS variables in TSan reports. Figuring out if a heap block is a TLS or not is difficult (in malloc interceptor we could analyze the caller and then mark the object), so let's instead modify the tests so that we expect the report to say "Location is heap block" instead of "Location is TLS". Differential Revision: http://reviews.llvm.org/D14873 llvm-svn: 253858
* [TableGen] Use std::remove_if instead of manually coded loops that called ↵Craig Topper2015-11-231-15/+13
| | | | | | erase inside them. NFC llvm-svn: 253857
* [TableGen] Use empty() instead of checking if size of vector is greater than ↵Craig Topper2015-11-231-1/+2
| | | | | | or equal to 1. llvm-svn: 253856
* [Mips] Remove an unnecessary wrapping of a predicate with std::ptr_fun. NFCCraig Topper2015-11-231-1/+1
| | | | llvm-svn: 253855
* OpenMPClause.h: Fix typos. [-Wdocumentation]NAKAMURA Takumi2015-11-231-3/+3
| | | | llvm-svn: 253854
* [Driver] Mark isForDiagnostics as const. NFC.Vedant Kumar2015-11-231-1/+1
| | | | llvm-svn: 253853
* [PGO] Make InstrProfData.inc available to compiler-rt.Xinliang David Li2015-11-231-0/+257
| | | | | | This will enable a series of cleanup/refactoring. llvm-svn: 253852
* Revert r253846 (build bot failure))Xinliang David Li2015-11-233-19/+1
| | | | llvm-svn: 253851
* [OpenMP] Parsing and sema support for map clause - add test caseKelvin Li2015-11-231-0/+207
| | | | | | http://reviews.llvm.org/D14134 llvm-svn: 253850
* [OpenMP] Parsing and sema support for map clauseKelvin Li2015-11-2321-17/+811
| | | | | | http://reviews.llvm.org/D14134 llvm-svn: 253849
* Move two Value Profiler data structs to InstrProfData.inc (NFC)Xinliang David Li2015-11-232-7/+19
| | | | llvm-svn: 253848
* Fix a bug introduced in cleanupXinliang David Li2015-11-231-1/+1
| | | | llvm-svn: 253847
* Disable frame pointer elimination when using -pgXinliang David Li2015-11-233-1/+19
| | | | | | | | | | | | | | This diff makes sure that the driver does not pass -fomit-frame-pointer or -momit-leaf-frame-pointer to the frontend when -pg is used. Currently, clang gives an error if -fomit-frame-pointer is used in combination with -pg, but -momit-leaf-frame-pointer was forgotten. Also, disable frame pointer elimination in the frontend when -pg is set. Patch by Stefan Kempf. llvm-svn: 253846
* [PGO] Compiler-rt cleanup -- introduces macros for various macrosXinliang David Li2015-11-239-88/+75
| | | | | | | This makes code more readable and be made more portable in the future. There is no functional change. llvm-svn: 253845
* [PGO] Fix remaining bugs in ProfData template file (when used by compiler-rt)Xinliang David Li2015-11-232-17/+17
| | | | | | | | 1. move const qualifier out of raw header field type as runtime use of the header needs to initialze the fields 2. use C style casting for integer types. llvm-svn: 253844
* [MS ABI] Tolerate invokes of __RTDynamicCastDavid Majnemer2015-11-232-1/+21
| | | | | | | | | | | | The pointer returned by __RTDynamicCast must be bitcasted. However, it was not expected that __RTDynamicCast would be invoked, resulting in the bitcast occuring in a different BasicBlock than the invoke. This caused a down-stream PHI to get confused about which BasicBlock the incomming value was from. This fixes PR25606. llvm-svn: 253843
* [Analysis/CallGraph] Switch dump() definitions over to LLVM_DUMP_METHOD.Davide Italiano2015-11-231-6/+3
| | | | llvm-svn: 253842
* [LoopStrengthReduce] Mark dump() definitions as LLVM_DUMP_METHOD.Davide Italiano2015-11-231-14/+7
| | | | llvm-svn: 253841
* Add const qualifier for FunctionInfoIndex in ModuleLinker and linkInModule() ↵Mehdi Amini2015-11-232-4/+5
| | | | | | | (NFC) From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 253840
* Add const qualifier on FunctionInfoIndex::hasExportedFunctions() (NFC)Mehdi Amini2015-11-231-1/+1
| | | | | From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 253839
OpenPOWER on IntegriCloud