- Jul 01, 2014
-
-
Ehsan Akhgari authored
Refactor the code in clang to find a file in a PATH like environment variable into a helper function llvm-svn: 212057
-
Alp Toker authored
llvm-svn: 212056
-
Alp Toker authored
Some versions of Android don't have futimes/futimens and this code wasn't updated during the recent errc refactoring. Patch by Luqman Aden! llvm-svn: 212055
-
Kevin Enderby authored
universal file. This also includes support for -arch all, selecting the host architecture by default from a universal file and checking if -arch is used with a standard Mach-O it matches that architecture. llvm-svn: 212054
-
Andrea Di Biagio authored
This patch adds intrinsic __rdpmc to header file 'ia32intrin.h'. Intrinsic __rdmpc can be used to read performance monitoring counters. It is implemented as a direct call to __builtin_ia32_rdpmc. It takes as input a value representing the index of the performance counter to read. The value of the performance counter is then returned as a unsigned 64-bit quantity. llvm-svn: 212053
-
Matt Arsenault authored
llvm-svn: 212052
-
Matt Arsenault authored
llvm-svn: 212051
-
Adrian Prantl authored
separate MDNode so they can be uniqued via folding set magic. To conserve space, DIVariable nodes are still variable-length, with the last two fields being optional. No functional change. http://reviews.llvm.org/D3526 llvm-svn: 212050
-
Andrea Di Biagio authored
This patch adds support for a new builtin instruction called __builtin_ia32_rdpmc. Builtin '__builtin_ia32_rdpmc' is defined as a 'GCC builtin'; on X86, it can be used to read performance monitoring counters. It takes as input the index of the performance counter to read, and returns the value of the specified performance counter as a 64-bit number. Calls to this new builtin will map to instruction RDPMC. The index in input to the builtin call is moved to register %ECX. The result of the builtin call is the value of the specified performance counter (RDPMC would return that quantity in registers RDX:RAX). This patch: - Adds builtin int_x86_rdpmc as a GCCBuiltin; - Adds a new x86 DAG node called 'RDPMC_DAG'; - Teaches how to lower this new builtin; - Adds an ISel pattern to select instruction RDPMC; - Fixes the definition of instruction RDPMC adding %RAX and %RDX as implicit definitions, and adding %ECX as implicit use; - Adds a LLVM test to verify that the new builtin is correctly selected. llvm-svn: 212049
-
Peter Zotov authored
llvm-svn: 212048
-
Ben Langmuir authored
llvm-svn: 212047
-
- Jun 30, 2014
-
-
Marshall Clow authored
Fix a typo in the noexcept calculation for __compressed_pair::swap. Thanks to EricWF for the bug report and the fix. llvm-svn: 212046
-
Chad Rosier authored
PR20109 llvm-svn: 212045
-
Chad Rosier authored
The combine for mul x, pow2 +/- 1 is unchanged. Test cases for both combines as well as mul x, pow2 have been added as well. llvm-svn: 212044
-
Tim Northover authored
I want to check them in lld. llvm-svn: 212043
-
Alexander Kornienko authored
Initialize ClangTidyMessage::FileOffset field to avoid unitialized variable access when sorting errors on output. llvm-svn: 212042
-
Daniel Jasper authored
Before: string // break operator()() & {} After: string // break operator()() & {} llvm-svn: 212041 -
Daniel Jasper authored
Upon encountering a binary operator inside parentheses, assume that the parentheses contain an expression. Before: MACRO('0' <= c&& c <= '9'); After: MACRO('0' <= c && c <= '9'); llvm-svn: 212040 -
Aaron Ballman authored
llvm-svn: 212039
-
Daniel Jasper authored
This worked initially but was broken by r210887. Before: function outer1(a, b) { function inner1(a, b) { return a; } inner1(a, b); } function outer2(a, b) { function inner2(a, b) { return a; } inner2(a, b); } After: function outer1(a, b) { function inner1(a, b) { return a; } inner1(a, b); } function outer2(a, b) { function inner2(a, b) { return a; } inner2(a, b); } Thanks to Adam Strzelecki for working on this. llvm-svn: 212038 -
Logan Chien authored
This commit reverts the LSDA-related change in r211745. The r211745 adds a new argument to scan_eh_tab(), i.e. lsda. However, IMO, calling _Unwind_GetLanguageSpecificData() directly in scan_eh_tab() was more intuitive and reduces several function call to _Unwind_GetLanguageSpecificData() in __cxx_personality_v0(). llvm-svn: 212037
-
Evgeniy Stepanov authored
Stack origins were created with unlimited length by mistake. llvm-svn: 212036
-
Tim Northover authored
When trying to map atom types to sections, we were iterating through an array until we hit a sentinel value. There's no need for such dances when range-based for loops are available. llvm-svn: 212035
-
Alexey Bataev authored
[OPENMP] Added table with allowed nesting info for OpenMP regions (per request from Samuel F Antao). llvm-svn: 212034
-
Alexander Kornienko authored
llvm-svn: 212033
-
Tim Northover authored
This isn't really the right place to put them in final object files (that would be __TEXT,__unwind_info), but the format is different between relocatable and final objects, which means we really need a pass to handle the translation. For now, re-emitting in __LD,__compact_unwind is harmless (dyld ignores it and moves straight on to inspecting __TEXT,__eh_frame), and sidesteps an assertion failure when processing files containing compact-unwind info. llvm-svn: 212032
-
Tim Northover authored
Segments must occupy a multiple of the page size in memory (4096 currently). We check for this when emitting files, but the placement algorithm broke down for the second non-__TEXT segment encountered: the offset wasn't aligned up to 4096 before starting its layout. llvm-svn: 212031
-
Tim Northover authored
Because of how we were calculating fileOffset and fileSize for segments, most ended up at a single offset in a finalised MachO file. This meant the data often didn't even get written in the final object, let alone where it would be useful. llvm-svn: 212030
-
Scott Douglass authored
This fixes LNT SingleSource/UnitTests/Threads with -mthumb. Differential Revision: http://reviews.llvm.org/D4324 llvm-svn: 212029
-
Alexey Bataev authored
llvm-svn: 212028
-
Tim Northover authored
For .dylib files, we refrain from actually creating any atoms until they're requested via the "exports" method. llvm-svn: 212027
-
Alexey Bataev authored
llvm-svn: 212026
-
Alexey Bataev authored
llvm-svn: 212025
-
Alexey Bataev authored
llvm-svn: 212024
-
Simon Atanasyan authored
No functional changes. llvm-svn: 212023
-
Simon Atanasyan authored
No functional changes. llvm-svn: 212022
-
Scott Douglass authored
llvm-svn: 212021
-
Scott Douglass authored
llvm-svn: 212020
-
Erik Eckstein authored
llvm-svn: 212019
-
Alexey Bataev authored
llvm-svn: 212018
-