|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| | because some MSVC 2010 SP1 installations do not have the _xgetbv intrinsic.  Patch thanks to Serge Pavlov!
llvm-svn: 180125 | 
| | 
| 
| 
| | llvm-svn: 180103 | 
| | 
| 
| 
| | llvm-svn: 180094 | 
| | 
| 
| 
| | llvm-svn: 180087 | 
| | 
| 
| 
| | llvm-svn: 180084 | 
| | 
| 
| 
| 
| 
| | compression/uncompression in selected LLVM tools.
llvm-svn: 180083 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Summary:
This is http://llvm.org/PR15802.  Backslashes preceding double quotes in
arguments must be escaped.  The interesting bit is that all other
backslashes should *not* be escaped, because the un-escaping logic is
only triggered by the presence of a double quote character.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D705
llvm-svn: 180035 | 
| | 
| 
| 
| | llvm-svn: 179995 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | I will remove the isBigEndianHost function once I update clang.
The ifdef logic is designed to
* not use configure/cmake to avoid breaking -arch i686 -arch ppc.
* default to little endian
* be as small as possible
It looks like sys/endian.h is the preferred header on most modern BSD systems,
but it is better to change this in a followup patch as machine/endian.h is
available on FreeBSD, OpenBSD, NetBSD and OS X.
llvm-svn: 179527 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | This will be used in clang to decide if it should create an @file or not. It
will be tested on the clang side.
Patch by Nathan Froyd.
llvm-svn: 179285 | 
| | 
| 
| 
| 
| 
| 
| 
| | It's possible for the lock file to disappear and the owning process to
return before we're able to see the generated file. Spin for a little
while to see if it shows up before failing. 
llvm-svn: 178909 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | If the directory that will contain the unique file doesn't exist when
we tried to create the file, but another process creates it before we
get a chance to try creating it, we would bail out rather than try to
create the unique file.
llvm-svn: 178908 | 
| | 
| 
| 
| | llvm-svn: 178905 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Summary:
Sets a report hook that emulates pressing "retry" in the "abort, retry,
ignore" dialog box that _CrtDbgReport normally raises.  There are many
other ways to disable assertion reports, but this was the only way I
could find that still calls our exception handler.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D625
llvm-svn: 178880 | 
| | 
| 
| 
| | llvm-svn: 178674 | 
| | 
| 
| 
| 
| 
| | intrinsic.  This also fixes a minor code formatting issue.
llvm-svn: 178666 | 
| | 
| 
| 
| 
| 
| | when getting the host processor information.  It emits a .byte sequence on GNUC compilers to work around lack of xgetbv support with older assemblers, and resolves a comment typo found in the previous patch.
llvm-svn: 178636 | 
| | 
| 
| 
| 
| 
| | doesn't understand the xgetbv instruction for some reason.  Will revisit when time permits.
llvm-svn: 178614 | 
| | 
| 
| 
| | llvm-svn: 178604 | 
| | 
| 
| 
| 
| 
| | when getting the host processor information.
llvm-svn: 178598 | 
| | 
| 
| 
| | llvm-svn: 178420 | 
| | 
| 
| 
| 
| 
| | This time tested on both OSX and Linux.
llvm-svn: 178377 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | prone to"
This reverts commit 617330909f0c26a3f2ab8601a029b9bdca48aa61.
It broke the bots:
/home/clangbuild2/clang-ppc64-2/llvm.src/unittests/ADT/SmallVectorTest.cpp:150: PushPopTest
/home/clangbuild2/clang-ppc64-2/llvm.src/unittests/ADT/SmallVectorTest.cpp:118: Failure
Value of: v[i].getValue()
  Actual: 0
Expected: value
Which is: 2
llvm-svn: 178334 | 
| | 
| 
| 
| 
| 
| | being power-of-two sized.
llvm-svn: 178332 | 
| | 
| 
| 
| 
| 
| 
| | likely the crash diagnostics generation will fail as well.
Part of rdar://13296693
llvm-svn: 178163 | 
| | 
| 
| 
| 
| 
| 
| | if crash diagnostics should be generated.  By default this is enabled.
Part of rdar://13296693
llvm-svn: 178161 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | if execution failed.  ExecuteAndWait returns -1 upon an execution failure, but
checking the return value isn't sufficient because the wait command may
return -1 as well.  This new parameter is to be used by the clang driver in a
subsequent commit.
Part of rdar://13362359
llvm-svn: 178087 | 
| | 
| 
| 
| | llvm-svn: 177963 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | timeouts, so
it's only really useful if you're going to crash anyways. Use it in the pretty stack trace
printer to kill the compiler if we hang while printing the stack trace.
llvm-svn: 177962 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | -time-ir-parsing flag
This breaks the layering of the Support library. We can't add an
implementation side to IRReader because it refers directly to entities
only accessible as part of the IR, AsmParser, and BitcodeReader
libraries. It can only be used in a context where all of those libraries
will be available.
We'll need to find some other way to get this functionality, and
hopefully solve the long-standing layering problem of IRReader.h...
llvm-svn: 177695 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | DARWIN_USER_CACHE_DIR for the system temporary directory.
The DARWIN_USER_TEMP_DIR and DARWIN_USER_CACHE_DIR configuration
settings are more idiomatic for Darwin than the TMPDIR environment
variable.
llvm-svn: 177669 | 
| | 
| 
| 
| 
| 
| | They are generally faster (at least not slower) than post-inc, post-dec.
llvm-svn: 177608 | 
| | 
| 
| 
| | llvm-svn: 177543 | 
| | 
| 
| 
| | llvm-svn: 177472 | 
| | 
| 
| 
| 
| 
| | CloseFD is false.
llvm-svn: 177175 | 
| | 
| 
| 
| 
| 
| | Patch by Stephen Hines.
llvm-svn: 177101 | 
| | 
| 
| 
| 
| 
| 
| | Clients of MemoryBuffer::getOpenFile expect it not to take ownership of the file
descriptor passed in. So don't.
llvm-svn: 176995 | 
| | 
| 
| 
| 
| 
| | This was tickled by a Clang diagnostic; Clang test case to follow.
llvm-svn: 176911 | 
| | 
| 
| 
| 
| 
| | Patch by Paul Robinson.
llvm-svn: 176908 | 
| | 
| 
| 
| 
| 
| 
| 
| | sys::Path::MapInFilePages.
This gives us memory mapped file I/O on Windows.
llvm-svn: 176886 | 
| | 
| 
| 
| 
| 
| | variable to be a local variable in the only method that uses it.
llvm-svn: 176778 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Summary:
Statistics are still available in Release+Asserts (any +Asserts builds),
and stats can also be turned on with LLVM_ENABLE_STATS.
Move some of the FastISel stats that were moved under DEBUG()
back out of DEBUG(), since stats are disabled across the board now.
Many tests depend on grepping "-stats" output.  Move those into
a orig_dir/Stats/. so that they can be marked as unsupported
when building without statistics.
Differential Revision: http://llvm-reviews.chandlerc.com/D486
llvm-svn: 176733 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | The sys::fs::is_directory() check is unnecessary because, if the filename is
a directory, the function will fail anyway with the same error code returned.
Remove the check to avoid an unnecessary stat call.
Someone needs to review on windows and see if the check is necessary there or not.
llvm-svn: 176386 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | infinite loop by constantly trying
to create the parent path.
This can happen if the path is a relative filename and the current directory was removed.
Thanks to Daniel D. for the hint in fixing it.
llvm-svn: 176226 | 
| | 
| 
| 
| | llvm-svn: 176130 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | to lib/DebugInfo, with dumping in llvm-dwarfdump. This patch adds
initial ability to parse and dump CFA instructions contained in
entries.
To keep it manageable, the patch omits some more advanced capabilities
(accounted in TODOs):
* Parsing of instructions with BLOCK arguments (expression lists)
* Dumping of actual instruction arguments (currently only names are
dumped). This is quite tricky since the dumper has to effectively
"interpret" the instructions.
llvm-svn: 175820 | 
| | 
| 
| 
| 
| 
| 
| | This implementation of NoneType/None does have some holes but I haven't
found one that doesn't - open to improvement.
llvm-svn: 175696 | 
| | 
| 
| 
| 
| 
| | missed before but probably what was intended.
llvm-svn: 175687 | 
| | 
| 
| 
| 
| 
| | option description.
llvm-svn: 175682 | 
| | 
| 
| 
| | llvm-svn: 175651 |