|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| ... |  | 
| | 
| 
| 
| | llvm-svn: 57944 | 
| | 
| 
| 
| | llvm-svn: 56682 | 
| | 
| 
| 
| | llvm-svn: 56419 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | use raw_ostream instead of std::ostream.  Among other goodness,
this speeds up llvm-dis of kc++ with a release build from 0.85s
to 0.49s (88% faster).
Other interesting changes:
 1) This makes Value::print be non-virtual.
 2) AP[S]Int and ConstantRange can no longer print to ostream directly, 
    use raw_ostream instead.
 3) This fixes a bug in raw_os_ostream where it didn't flush itself 
    when destroyed.
 4) This adds a new SDNode::print method, instead of only allowing "dump".
A lot of APIs have both std::ostream and raw_ostream versions, it would
be useful to go through and systematically anihilate the std::ostream 
versions.
This passes dejagnu, but there may be minor fallout, plz let me know if
so and I'll fix it.
llvm-svn: 55263 | 
| | 
| 
| 
| | llvm-svn: 55259 | 
| | 
| 
| 
| | llvm-svn: 54890 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | returning an std::string by value, it fills in a SmallString/SmallVector
passed in.  This significantly reduces string thrashing in some cases.
More specifically, this:
 - Adds an operator<< and a print method for APInt that allows you to 
   directly send them to an ostream.
 - Reimplements APInt::toString to be much simpler and more efficient
   algorithmically in addition to not thrashing strings quite as much.
This speeds up llvm-dis on kc++ by 7%, and may also slightly speed up the
asmprinter.  This also fixes a bug I introduced into the asmwriter in a
previous patch w.r.t. alias printing.
llvm-svn: 54873 | 
| | 
| 
| 
| 
| 
| 
| | names. This can save a lot of allocations if you aren't going to be
looking at the output.
llvm-svn: 54546 | 
| | 
| 
| 
| 
| 
| | Legacy interfaces will be in place for some time.  (Merge from use-diet branch.)
llvm-svn: 51200 | 
| | 
| 
| 
| 
| 
| | makefile targets to find these better.
llvm-svn: 51143 | 
| | 
| 
| 
| 
| 
| | the result IRBuilder.  Patch by Dominic Hamon.
llvm-svn: 49604 | 
| | 
| 
| 
| | llvm-svn: 49371 | 
| | 
| 
| 
| | llvm-svn: 49338 | 
| | 
| 
| 
| 
| 
| 
| 
| | Specifically, introduction of XXX::Create methods
for Users that have a potentially variable number of
Uses.
llvm-svn: 49277 | 
| | 
| 
| 
| | llvm-svn: 48323 | 
| | 
| 
| 
| | llvm-svn: 45420 | 
| | 
| 
| 
| | llvm-svn: 45416 | 
| | 
| 
| 
| 
| 
| | of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space.
llvm-svn: 45082 | 
| | 
| 
| 
| | llvm-svn: 41881 | 
| | 
| 
| 
| 
| 
| | Add an APSInt::toString() method.
llvm-svn: 41309 | 
| | 
| 
| 
| 
| 
| | Almost all occurrences of "bytecode" in the sources have been eliminated.
llvm-svn: 37913 | 
| | 
| 
| 
| 
| 
| 
| 
| | practices for making
a LLVM frontend in C++.  Maybe someday it will be rewritten..
llvm-svn: 37858 | 
| | 
| 
| 
| | llvm-svn: 36867 | 
| | 
| 
| 
| | llvm-svn: 34970 | 
| | 
| 
| 
| | llvm-svn: 34969 | 
| | 
| 
| 
| | llvm-svn: 34962 | 
| | 
| 
| 
| | llvm-svn: 34227 | 
| | 
| 
| 
| | llvm-svn: 33385 | 
| | 
| 
| 
| | llvm-svn: 33384 | 
| | 
| 
| 
| | llvm-svn: 32984 | 
| | 
| 
| 
| 
| 
| | Convert signed integer types to signless.
llvm-svn: 32786 | 
| | 
| 
| 
| 
| 
| 
| 
| | This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.
llvm-svn: 32751 | 
| | 
| 
| 
| 
| 
| | now cerr, cout, and NullStream resp.
llvm-svn: 32298 | 
| | 
| 
| 
| 
| 
| 
| 
| | Add HAVE_PTHREAD to makefiles with support from configure and use it to
determine whether to build examples/ParallelJIT.
Patch by Anton Korobeynikov.
llvm-svn: 32054 | 
| | 
| 
| 
| 
| 
| 
| | adding a temporary wrapper around the ostream to make it friendly to
functions expecting an LLVM stream. This should be fixed in the future.
llvm-svn: 31990 | 
| | 
| 
| 
| 
| 
| 
| 
| | This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.
llvm-svn: 31063 | 
| | 
| 
| 
| | llvm-svn: 30092 | 
| | 
| 
| 
| | llvm-svn: 29397 | 
| | 
| 
| 
| | llvm-svn: 29392 | 
| | 
| 
| 
| 
| 
| 
| | BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.
llvm-svn: 28610 | 
| | 
| 
| 
| 
| 
| 
| 
| | 1. Capture the ENABLE_THREADS configure variable in Makefile.config
2. Use ENABLE_THREADS to avoid building ParallelJIT if threads are not
   present.
llvm-svn: 28609 | 
| | 
| 
| 
| | llvm-svn: 28532 | 
| | 
| 
| 
| | llvm-svn: 28295 | 
| | 
| 
| 
| | llvm-svn: 27042 | 
| | 
| 
| 
| | llvm-svn: 26483 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | pointer marking the end of the list, the zero *must* be cast to the pointer
type.  An un-cast zero is a 32-bit int, and at least on x86_64, gcc will
not extend the zero to 64 bits, thus allowing the upper 32 bits to be
random junk.
The new END_WITH_NULL macro may be used to annotate a such a function
so that GCC (version 4 or newer) will detect the use of un-casted zero
at compile time.
llvm-svn: 23888 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | These patches make threading optional in LLVM. The configuration scripts are now
modified to accept a --disable-threads switch. If this is used, the Mutex class
will be implemented with all functions as no-op. Furthermore, linking against
libpthread will not be done. Finally, the ParallelJIT example needs libpthread
so its makefile was changed to always add -lpthread to the link line.
llvm-svn: 23003 | 
| | 
| 
| 
| | llvm-svn: 22523 | 
| | 
| 
| 
| | llvm-svn: 22428 | 
| | 
| 
| 
| | llvm-svn: 22414 |