- Dec 10, 2013
-
-
Richard Sandiford authored
One unusual feature of the z architecture is that the result of a previous load can be reused indefinitely for subsequent loads, even if a cache-coherent store to that location is performed by another CPU. A special serializing instruction must be used if you want to force a load to be reattempted. Since volatile loads are not supposed to be omitted in this way, we should insert a serializing instruction before each such load. The same goes for atomic loads. The patch implements this at the IR->DAG boundary, in a similar way to atomic fences. It is a no-op for targets other than SystemZ. llvm-svn: 196905
-
Kostya Serebryany authored
llvm-svn: 196904
-
Alexander Kornienko authored
llvm-svn: 196903
-
NAKAMURA Takumi authored
[CMake] lli/CMakeLists.txt: Move add_subdirectory(ChildTarget) to the front. It depends on nothing described in LLVM_LINK_COMPONENTS. llvm-svn: 196902
-
Alexander Kornienko authored
Summary: The rule from the GNU style states: "We find it easier to read a program when it has spaces before the open-parentheses and after the commas." http://www.gnu.org/prep/standards/standards.html#index-spaces-before-open_002dparen This patch makes clang-format adds an option to put spaces before almost all open parentheses, except the cases, where different behavior is dictated by the style rules or language syntax: * preprocessor: ** function-like macro definitions can't have a space between the macro name and the parenthesis; ** `#if defined(...)` can have a space, but it seems, that it's more frequently used without a space in GCC, for example; * never add spaces after unary operators; * adding spaces between two opening parentheses is controlled with the `SpacesInParentheses` option; * never add spaces between `[` and `(` (there's no option yet). Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2326 llvm-svn: 196901
-
Kostya Serebryany authored
[asan] remove one test from SizedStackTest which relied on a now-wrong assumption that the left stack redzone is >= 32 bytes (PR18195) llvm-svn: 196900
-
Rui Ueyama authored
llvm-svn: 196898
-
Rui Ueyama authored
llvm-svn: 196897
-
Rui Ueyama authored
llvm-svn: 196896
-
Rui Ueyama authored
Code to create COFF section header was scattered across many member functions of SectionChunk. Consolidate it to a member function of SectionHeaderTableChunk. llvm-svn: 196895
-
Timur Iskhodzhanov authored
llvm-svn: 196894
-
Richard Smith authored
llvm-svn: 196893
-
Richard Smith authored
more than one such initializer in a union, make mem-initializers override default initializers for other union members, handle anonymous unions with anonymous struct members better. Fix a couple of semi-related bugs exposed by the tests for same. llvm-svn: 196892
-
Rui Ueyama authored
llvm-svn: 196891
-
Rui Ueyama authored
... because they are used only in the function for relocations. llvm-svn: 196890
-
Kevin Qin authored
This is a small change to be strict. Just want get pattern safer. llvm-svn: 196889
-
Kevin Qin authored
llvm-svn: 196888
-
Kevin Qin authored
llvm-svn: 196887
-
Rui Ueyama authored
llvm-svn: 196884
-
Rui Ueyama authored
llvm-svn: 196883
-
NAKAMURA Takumi authored
llvm-svn: 196882
-
NAKAMURA Takumi authored
I'll prune redundant deps in LLVMBuild.txt, later. llvm-svn: 196881
-
NAKAMURA Takumi authored
llvm-svn: 196880
-
Reid Kleckner authored
This reverts commit r196876. Its tests failed on the bots, so I'll figure it out tomorrow. llvm-svn: 196879
-
Rui Ueyama authored
Use of static is recommended by the style guide. llvm-svn: 196877
-
Reid Kleckner authored
For stack frames requiring realignment, three pointers may be needed: - ebp to address incoming arguments - esi (could be any callee-saved register) to address locals - esp to address outgoing arguments We would use esi unconditionally without verifying that it did not conflict with inline assembly. This change doesn't do the verification, it simply emits a fatal error on functions that use stack realignment, dynamic SP adjustments, and inline assembly. Because stack realignment is common on Windows, we also no longer assume that MS inline assembly clobbers esp. Instead, we analyze the inline instructions for implicit definitions and check if esp is there. If so, we require the use of a base pointer and consider it in the condition above. Mostly fixes PR16830, but we could try harder to find a non-conflicting base pointer. Reviewers: sunfish Differential Revision: http://llvm-reviews.chandlerc.com/D1317 llvm-svn: 196876
-
Chandler Carruth authored
it to the LLVM project through the appropriate channels. This reverts: r195837: "[Sanitizer] Add rudimentary support for using libbacktrace in ..." llvm-svn: 196875
-
Andrew Trick authored
MCJIT needs to be able to run in hostile environments, even when PWD is invalid. There's no need to crash MCJIT in this case. The obvious fix is to simply leave MCContext's CompilationDir empty when PWD can't be determined. This way, MCJIT clients, and other clients that link with LLVM don’t need a valid working directory. If we do want to guarantee valid CompilationDir, that should be done only for clients of getCompilationDir(). This is as simple as checking for an empty string. The only current use of getCompilationDir is EmitGenDwarfInfo, which won’t conceivably run with an invalid working dir. However, in the purely hypothetically and untestable case that this happens, the AT_comp_dir will be omitted from the compilation_unit DIE. llvm-svn: 196874
-
Andrew Trick authored
llvm-svn: 196873
-
Rui Ueyama authored
llvm-svn: 196867
-
Rui Ueyama authored
These member functions are not overriden and not intended to be, so adding virtual does not make sense. llvm-svn: 196866
-
NAKAMURA Takumi authored
llvm-svn: 196865
-
NAKAMURA Takumi authored
llvm-svn: 196864
-
John Thompson authored
llvm-svn: 196863
-
Dmitri Gribenko authored
llvm-svn: 196862
-
Warren Hunt authored
In order to address latent bugs that were easier to expose in 64-bit mode, we move the application of __declspec(align) to before the layout of vbases rather than after. llvm-svn: 196861
-
NAKAMURA Takumi authored
llvm-svn: 196860
-
Dmitri Gribenko authored
llvm-svn: 196859
-
Nadav Rotem authored
llvm-svn: 196858
-
Eric Christopher authored
llvm-svn: 196857
-