- Feb 13, 2014
-
-
Rafael Espindola authored
This is an optimistic version of create_diretories: it tries to create the directory first and looks at the parent only if that fails. Running strace on "mkdir -p" shows that it is pessimistic, calling mkdir on every element of the path. We could implement that if needed. In any case, with both strategies there is no reason to call stat, just check the return of mkdir. llvm-svn: 201347
-
Dmitri Gribenko authored
pointed out by Daniel Jasper in r201329 llvm-svn: 201346
-
Rafael Espindola authored
llvm-svn: 201345
-
Benjamin Kramer authored
No intended functionality change. llvm-svn: 201344
-
Alexander Kornienko authored
llvm-svn: 201343
-
Alexander Kornienko authored
Summary: This doesn't have any significant effect on the performance, but it looks like a good thing to do. Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2763 llvm-svn: 201340
-
Kostya Serebryany authored
[sanitizer] replace MostSignificantSetBitIndex with LeastSignificantSetBitIndex in bit vector (to iterate bits in increasing order) llvm-svn: 201339
-
Kostya Serebryany authored
llvm-svn: 201338
-
Rafael Espindola authored
llvm-svn: 201337
-
Rafael Espindola authored
llvm-svn: 201336
-
Rafael Espindola authored
llvm-svn: 201335
-
Ed Maste authored
Michael Sartain refactored RegisterContextPOSIX_* in r192332, and I must have missed the now-shadowed variable when I rebased the FreeBSD MIPS64 register context after that. llvm-svn: 201334
-
Daniel Sanders authored
Re-commit: Demote EmitRawText call in AsmPrinter::EmitInlineAsm() and remove hasRawTextSupport() call Summary: AsmPrinter::EmitInlineAsm() will no longer use the EmitRawText() call for targets with mature MC support. Such targets will always parse the inline assembly (even when emitting assembly). Targets without mature MC support continue to use EmitRawText() for assembly output. The hasRawTextSupport() check in AsmPrinter::EmitInlineAsm() has been replaced with MCAsmInfo::UseIntegratedAs which when true, causes the integrated assembler to parse inline assembly (even when emitting assembly output). UseIntegratedAs is set to true for targets that consider any failure to parse valid assembly to be a bug. Target specific subclasses generally enable the integrated assembler in their constructor. The default value can be overridden with -no-integrated-as. All tests that rely on inline assembly supporting invalid assembly (for example, those that use mnemonics such as 'foo' or 'hello world') have been updated to disable the integrated assembler. Changes since review (and last commit attempt): - Fixed test failures that were missed due to configuration of local build. (fixes crash.ll and a couple others). - Fixed tests that happened to pass because the local build was on X86 (should fix 2007-12-17-InvokeAsm.ll) - mature-mc-support.ll's should no longer require all targets to be compiled. (should fix ARM and PPC buildbots) - Object output (-filetype=obj and similar) now forces the integrated assembler to be enabled regardless of default setting or -no-integrated-as. (should fix SystemZ buildbots) Reviewers: rafael Reviewed By: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2686 llvm-svn: 201333
-
Evgeniy Stepanov authored
llvm-svn: 201332
-
Evgeniy Stepanov authored
Android headers define clone() as a 4-argument function without ellipsis. llvm-svn: 201331
-
Evgeniy Stepanov authored
Fixes AddressSanitizer.SignalTest breakage. llvm-svn: 201330
-
Daniel Jasper authored
This triggers on one of our internal tests. Dmitri: I do not understand this part of the codebase well enough to locate the underlying cause easily. If the correct fix is not obvious, I can try to debug the problem further or try to come up with reduced test case. llvm-svn: 201329
-
Yaron Keren authored
with Visual C++ 2013 by making libcxx definition text-identical to yvals.h. Persumably this definition is for older Visual C++ versions. In such cases it will still be defined so no functionality change. Other platforms should not be affected as this is inside #elif defined(_LIBCPP_MSVC) Patch by G M! llvm-svn: 201328
-
Rafael Espindola authored
llvm-svn: 201327
-
Evgeniy Stepanov authored
Seems stable enough. Fixes null_deref.cc test. llvm-svn: 201326
-
Evgeniy Stepanov authored
This will be covered by null_deref.cc test (requires one more fix to pass). llvm-svn: 201325
-
Evgeniy Stepanov authored
With zero base shadow, shadow for near-zero access is itself at near-zero location. As a result, this test crashes on the shadow access, and not on the app access. Relax a check to match this behavior. llvm-svn: 201324
-
Daniel Jasper authored
For reference: llvm.org/PR18690. Also updated generated help page and page creation script. llvm-svn: 201323
-
Kostya Serebryany authored
llvm-svn: 201322
-
Evgeniy Stepanov authored
It's not always true: on Android, strerror_r with invalid errno prints "Unknown error ..." to the buffer and returns 0. This test now only checks that strerror_r does not crash. llvm-svn: 201321
-
NAKAMURA Takumi authored
On unsupported platforms, llvm_add_library(MODULE) doesn't create any targets. Caller may be responsible to check and add extra target properties. llvm-svn: 201320
-
NAKAMURA Takumi authored
llvm-svn: 201319
-
NAKAMURA Takumi authored
llvm-svn: 201318
-
NAKAMURA Takumi authored
[CMake] llvm_add_library(MODULE) may use CMAKE_MODULE_LINKER_FLAGS instead of target property LINK_FLAGS. I mis-dropped Darwin's link flags (in clang side) since r201073. llvm-svn: 201317
-
NAKAMURA Takumi authored
[CMake] LLVM_PLUGIN_EXT: Use CMAKE_SHARED_LIBRARY_SUFFIX rather than CMAKE_SHARED_MODULE_SUFFIX in llvm tree. FIXME: llvm/test may be aware of LLVM_PLUGIN_EXT, like as clang/test does. FIXME: CMAKE_*_SUFFIX may be set in HandleLLVMOptions if those variables could be writable, rather than to set one as target properties. llvm-svn: 201316
-
NAKAMURA Takumi authored
llvm/test/CodeGen/AArch64/cpus.ll: Tweak to use -mtriple=aarch64-unknown-unknown, or this would crash for targeting pecoff like *-mingw32. llvm-svn: 201315
-
Tim Northover authored
The front-end is now generating the generic @llvm.fabs for this operation now, so the extra patterns are no longer needed. llvm-svn: 201314
-
Tim Northover authored
This changes ARM to use @llvm.fabs for floating-point vabs. Patterns already existed in the backend, and it might help mid-end phases since it's more likely to be understood than @llvm.arm.neon.vabs. llvm-svn: 201313
-
Robert Lytton authored
llvm-svn: 201312
-
Robert Lytton authored
see 'XCore target -fexceptions flag handling' llvm-svn: 201311
-
Robert Lytton authored
XCore target has -fno-exception as the default option Pass on "-fexceptions" flag to xcc (linker) llvm-svn: 201310
-
Renato Golin authored
llvm-svn: 201309
-
Alexander Kornienko authored
Summary: I'm not absolutely sure this is 100% correct solution, but it seems to do what I expect. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2756 llvm-svn: 201308
-
Renato Golin authored
This commit is not strictly correct nor accounts for all uses (shared objects, for example), but it allows one to test the compiler-rt library on GNU targets. Using this patch to run the test-suite has already shown me problems on ARM. Since this is a Darwin-only flag, nobody is using it, so it shouldn't be a problem. I will need extension to deal with the shared cases, but since we're not compiling libclang_rt.so, that's not yet applicable. Many other problems will have to be fixed first in compiler-rt (such as removing the 'arch' name from it and making it trully multi-arch, moving it to the default lib directory, make both .a and .so variants, etc). llvm-svn: 201307
-
Kostya Serebryany authored
llvm-svn: 201306
-