| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is testing the bitcode reader's functionality, not VMCore's. Add the
what is a hope sufficient build system mojo to build and run a new
unittest.
Also clean up some of the test's naming. The goal for the file should be
to unittest the Bitcode Reader, and this is just one particular test
among potentially many in the future. Also, reverse my position and
relegate the PR# to a comment, but stash the comment on the same line as
the test name so it doesn't get lost. This makes the code more
self-documenting hopefully w/o losing track of the PR number.
llvm-svn: 147431
|
| |
|
|
|
|
|
|
|
|
|
| |
build. This didn't show up in the CMake build because the CMake build
for the unittests is rather poorly factored.
This probably isn't the correct fix. This should be a bitcode reader
unittest not a VMCore unittest. I'll move it and clean various parts of
the unittest up in a follow-up patch, but I wanted to unbreak the bots.
llvm-svn: 147427
|
| |
|
|
|
|
| |
PR11677.
llvm-svn: 147425
|
| |
|
|
| |
llvm-svn: 147186
|
| |
|
|
|
|
|
|
| |
Diagnostics are now emitted via the SourceMgr and we use MemoryBuffer
for buffer management. Switched the code to make use of the trailing
'0' that MemoryBuffer guarantees where it makes sense.
llvm-svn: 147063
|
| |
|
|
|
|
| |
http://llvm.org/docs/CodingStandards.html#ll_virtual_anch
llvm-svn: 146960
|
| |
|
|
|
|
|
|
|
| |
make VariadicFunction actually be trivial. Do so, and also make it look
more like your standard trivial functor by making it a struct with no
access specifiers. The unit test is updated to initialize its functors
properly.
llvm-svn: 146827
|
| |
|
|
|
|
|
|
| |
Hexatridecimal was added in r139695.
And fix the unittest that now triggers the assert.
llvm-svn: 146754
|
| |
|
|
|
|
| |
regressions.
llvm-svn: 146735
|
| |
|
|
|
|
| |
bit of style, sorry.
llvm-svn: 146733
|
| |
|
|
|
|
|
|
|
|
|
|
| |
variadic-like functions in C++98. See the comments in the header file
for a more detailed description of how these work. We plan to use these
extensively in the AST matching library. This code and idea were
originally authored by Zhanyong Wan. I've condensed it using macros
to reduce repeatition and adjusted it to fit better with LLVM's ADT.
Thanks to both David Blaikie and Doug Gregor for the review!
llvm-svn: 146729
|
| |
|
|
| |
llvm-svn: 146725
|
| |
|
|
|
|
|
| |
library names in line with those used by CMake.
- Patch by Johannes Obermayr, with tweaks by me.
llvm-svn: 146706
|
| |
|
|
|
|
|
| |
Original commit message:
Support/FileSystem: Implement canonicalize.
llvm-svn: 146378
|
| |
|
|
| |
llvm-svn: 146364
|
| |
|
|
| |
llvm-svn: 146363
|
| |
|
|
|
|
| |
Accidentally left out since r145214/r145217.
llvm-svn: 146356
|
| |
|
|
|
|
|
| |
end iterator.
FIXME: It should be more robust.
llvm-svn: 146294
|
| |
|
|
|
|
| |
dontlookhere check must be after it.
llvm-svn: 146217
|
| |
|
|
|
|
|
| |
I have run these tests under many configurations on the exact same OS as
the failures, and I can't reproduce them :(.
llvm-svn: 146214
|
| |
|
|
|
|
| |
directory_iterator preserve InputIterator semantics on copy.
llvm-svn: 146200
|
| |
|
|
| |
llvm-svn: 145801
|
| |
|
|
|
|
| |
Makes failures more self-explanatory.
llvm-svn: 145704
|
| |
|
|
|
|
|
|
| |
was returning incorrect values in rare cases, and incorrectly marking
exact conversions as inexact in some more common cases. Fixes PR11406, and a
missed optimization in test/CodeGen/X86/fp-stack-O0.ll.
llvm-svn: 145141
|
| |
|
|
|
|
| |
available.
llvm-svn: 144574
|
| |
|
|
|
|
|
|
|
|
|
|
| |
These annotations are disabled entirely when either ENABLE_THREADS is off, or
building a release build. When enabled, they add calls to functions with no
statements to ManagedStatic's getters.
Use these annotations to inform tsan that the race used inside ManagedStatic
initialization is actually benign. Thanks to Kostya Serebryany for helping
write this patch!
llvm-svn: 144567
|
| |
|
|
|
|
|
|
|
| |
--enable-shared.
getPointerToNamedFunction might be indirect jump on Win32 --enable-shared.
FF 25 <disp32>: jmp *(pointer to IAT)
llvm-svn: 144178
|
| |
|
|
|
|
|
|
| |
overflow INT64_MAX.
Add a test case for the edge case that triggers this. Thanks to Chandler for bringing this to my attention.
llvm-svn: 142794
|
| |
|
|
|
|
| |
edge is hot.
llvm-svn: 142751
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
does. Enhance
the X86 asmparser to produce ranges in the one case that was annoying me, for example:
test.s:10:15: error: invalid operand for instruction
movl 0(%rax), 0(%edx)
^~~~~~~
It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use
ranges where appropriate if someone is interested.
llvm-svn: 142106
|
| |
|
|
|
|
|
|
|
| |
Based on Horspool's simplified version of Boyer-Moore. We use a constant-sized table of
uint8_ts to keep cache thrashing low, needles bigger than 255 bytes are uncommon anyways.
The worst case is still O(n*m) but we do a lot better on the average case now.
llvm-svn: 142061
|
| |
|
|
| |
llvm-svn: 141831
|
| |
|
|
|
|
| |
Found by accident while reviewing a patch to nearby code.
llvm-svn: 141816
|
| |
|
|
|
|
| |
integers where there is unsigned overflow. Fix APFloat::toString so that it doesn't depend on the incorrect behavior in common cases (and computes the correct result in some rare cases). Fixes PR11086.
llvm-svn: 141441
|
| |
|
|
| |
llvm-svn: 141066
|
| |
|
|
|
|
| |
Thanks to Alexandru Dura and Jonas Paulsson for finding it.
llvm-svn: 140859
|
| |
|
|
|
|
| |
__attribute((sentinel)), even though it usually works. Use (void*)0 instead. PR11002.
llvm-svn: 140720
|
| |
|
|
| |
llvm-svn: 139695
|
| |
|
|
|
|
|
|
| |
constants.
It seems i686-cygwin-gcc-4.3 does not accept 64-bit constant without LL.
llvm-svn: 139664
|
| |
|
|
|
|
|
|
|
|
| |
It is an endian-aware helper that can read data from a StringRef. It will
come in handy for DWARF parsing. This class is inspired by LLDB's
DataExtractor, but is stripped down to the bare minimum needed for DWARF.
Comes with unit tests!
llvm-svn: 139626
|
| |
|
|
| |
llvm-svn: 139074
|
| |
|
|
|
|
|
| |
In the case of EDInstInfo, this would actually cause a bug when -1 became 255
and was then compared >=0 in llvm-mc/Disassembler.cpp.
llvm-svn: 138825
|
| |
|
|
|
|
|
|
| |
The APFloat "Zero" test was actually calling the
APFloat(const fltSemantics &, integerPart) constructor, and EXPECT_EQ was
treating 0 and -0 as equal.
llvm-svn: 138745
|
| |
|
|
|
|
| |
flip these tests around.
llvm-svn: 138708
|
| |
|
|
| |
llvm-svn: 138676
|
| |
|
|
|
|
| |
These are strictly utilities for registering targets and components.
llvm-svn: 138450
|
| |
|
|
|
|
|
| |
whatever the size of unsigned is), though this can't actually
occur for any integer value of NUM_NODES.
llvm-svn: 136460
|
| |
|
|
| |
llvm-svn: 136432
|
| |
|
|
|
|
|
|
|
| |
more graphs, like all graphs with 5 nodes or less. With a 32 bit
unsigned type, the maximum is graphs with 6 nodes or less, but that
would take a while to test - 5 nodes or less already requires a few
seconds.
llvm-svn: 136354
|
| |
|
|
|
|
| |
iterates over SCC's.
llvm-svn: 136353
|