| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main observation is that we never need both the filesize and the map size.
When mapping a slice of a file, it doesn't make sense to request a null
terminator and that would be the only case where the filesize would be used.
There are other cleanups that should be done in this area:
* A client should not have to pass the size (even an explicit -1) to say if
it wants a null terminator or not, so we should probably swap the argument
order.
* The default should be to not require a null terminator. Very few clients
require this, but many end up asking for it just because it is the default.
llvm-svn: 186984
|
|
|
|
| |
llvm-svn: 186887
|
|
|
|
| |
llvm-svn: 186676
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The plan is to use it for clang and lld.
Major behavior changes:
- We can now parse UTF-16 files that have a byte order mark.
- PR16209: Don't drop backslashes on the floor if they don't escape
anything.
The actual parsing loop was based on code from Clang's driver.cpp,
although it's been rewritten to track its state with control flow rather
than state variables.
Reviewers: hans
Differential Revision: http://llvm-reviews.chandlerc.com/D1170
llvm-svn: 186587
|
|
|
|
| |
llvm-svn: 186561
|
|
|
|
|
|
|
|
|
|
|
| |
We don't want cast and dyn_cast to work on temporaries. They don't extend
lifetime like a direct bind to a reference would, so they can introduce
hard to find bugs.
I added tests to make sure we don't regress this. Thanks to Eli Friedman for
noticing this and for his suggestions on how to test it.
llvm-svn: 186559
|
|
|
|
|
|
|
| |
This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).
llvm-svn: 186447
|
|
|
|
|
|
|
|
|
|
|
| |
This is to support parsing UTF16 response files in LLVM/lib/Option for
lld and clang.
Reviewers: hans
Differential Revision: http://llvm-reviews.chandlerc.com/D1138
llvm-svn: 186426
|
|
|
|
| |
llvm-svn: 186375
|
|
|
|
| |
llvm-svn: 186372
|
|
|
|
| |
llvm-svn: 185834
|
|
|
|
| |
llvm-svn: 185730
|
|
|
|
| |
llvm-svn: 185719
|
|
|
|
| |
llvm-svn: 185226
|
|
|
|
|
|
|
|
|
|
|
| |
Allow a BlockFrequency to be divided by a non-zero BranchProbability
with saturating arithmetic. This will be used to compute the frequency
of a loop header given the probability of leaving the loop.
Our long division algorithm already saturates on overflow, so that was a
freebie.
llvm-svn: 185184
|
|
|
|
|
|
|
|
|
|
|
| |
There are a few valid situation where we care about the structure inside a
directory, but not about the directory itself. A simple example is for unit
testing directory traversal.
PathV1 had a function like this, add one to V2 and port existing users of the
created temp file and delete it hack to using it.
llvm-svn: 185059
|
|
|
|
|
|
| |
llvm itself is now PathV1 clean.
llvm-svn: 184947
|
|
|
|
|
|
| |
I will remove the V1 version as soon as I change clang in the next commit.
llvm-svn: 184914
|
|
|
|
|
|
|
|
| |
frequency with a branch probability."
This reverts commit r184584. Breaks PPC selfhost.
llvm-svn: 184590
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a branch probability.
Zero is used by BlockFrequencyInfo as a special "don't know" value. It also
causes a sink for frequencies as you can't ever get off a zero frequency with
more multiplies.
This recovers a 10% regression on MultiSource/Benchmarks/7zip. A zero frequency
was propagated into an inner loop causing excessive spilling.
PR16402.
llvm-svn: 184584
|
|
|
|
| |
llvm-svn: 184431
|
|
|
|
|
|
| |
actually finds a unique identifier for a file. Also adds unit tests for GetUniqueID.
llvm-svn: 184351
|
|
|
|
| |
llvm-svn: 183940
|
|
|
|
|
|
|
| |
It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
those two functions and make Execute and Wait implementations details.
llvm-svn: 183864
|
|
|
|
|
|
|
| |
Most clients have already been moved from Path V1 to V2. The ones using V1
now include PathV1.h explicitly.
llvm-svn: 183801
|
|
|
|
|
|
| |
handle on Windows. Patch thanks to Kim Gräsman!
llvm-svn: 183621
|
|
|
|
| |
llvm-svn: 183054
|
|
|
|
| |
llvm-svn: 183053
|
|
|
|
| |
llvm-svn: 182900
|
|
|
|
| |
llvm-svn: 182693
|
|
|
|
|
|
|
| |
Add a stringize method to make dumping a bit easier, and add a testcase
exercising a few different paths.
llvm-svn: 182692
|
|
|
|
| |
llvm-svn: 182690
|
|
|
|
| |
llvm-svn: 182679
|
|
|
|
| |
llvm-svn: 182667
|
|
|
|
|
|
| |
-DLLVM_ENABLE_THREADS=false.
llvm-svn: 181788
|
|
|
|
|
|
|
|
| |
sink options) command line options at runtime.
Patch by Dan Liew!
llvm-svn: 181254
|
|
|
|
|
|
| |
Patch by Dan Liew!
llvm-svn: 181253
|
|
|
|
|
|
|
| |
This seemed like the cleanest way to find the test executable. Also fix
the file mode.
llvm-svn: 180770
|
|
|
|
|
|
|
|
|
| |
That seems to interact poorly with the environ and _environ macros
defined in MSVC's <stdlib.h>.
Also remove the incorrect comment about _NSGetEnviron().
llvm-svn: 180200
|
|
|
|
|
|
|
|
|
|
| |
This was r180041 and r180046, which was reverted in r180066.
Re-committing this should fix the dragonegg bootstrap, which I presume
needs LD_LIBRARY_PATH to be propagated to the child.
Tested on Linux, Windows, and Mac OS 10.6.
llvm-svn: 180099
|
|
|
|
| |
llvm-svn: 180084
|
|
|
|
|
|
| |
compression/uncompression in selected LLVM tools.
llvm-svn: 180083
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Revert "[Support] Propagate the environment into the test child process"
This reverts commit r180046.
This reverts commit r180041.
These have broken buildbots for ~3 hours:
http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RAincremental/builds/763
llvm-svn: 180066
|
|
|
|
|
|
|
| |
Pointed out by Eli. The test passes for me either way, so I missed
this.
llvm-svn: 180046
|
|
|
|
|
|
|
| |
Should fix the dragonegg bootstrap builder, which reasonably needs
LD_LIBRARY_PATH to be set.
llvm-svn: 180041
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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: 178905
|
|
|
|
|
|
| |
Fails due to insufficient thread stack.
llvm-svn: 178135
|
|
|
|
|
|
| |
to Paul Robinson!
llvm-svn: 177223
|
|
|
|
| |
llvm-svn: 176996
|