summaryrefslogtreecommitdiffstats
path: root/llvm/examples
Commit message (Collapse)AuthorAgeFilesLines
* API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. ↵Gabor Greif2008-05-164-9/+9
| | | | | | Legacy interfaces will be in place for some time. (Merge from use-diet branch.) llvm-svn: 51200
* Fix a bunch of 80col violations that arose from the Create API change. Tweak ↵Gabor Greif2008-05-151-3/+4
| | | | | | makefile targets to find these better. llvm-svn: 51143
* Merge LLVMBuilder and FoldingBuilder, callingDuncan Sands2008-04-132-9/+9
| | | | | | the result IRBuilder. Patch by Dominic Hamon. llvm-svn: 49604
* silence warning when assertions are disabled.Chris Lattner2008-04-081-1/+1
| | | | llvm-svn: 49371
* Use Intrinsic::getDeclaration in more places.Duncan Sands2008-04-071-5/+2
| | | | llvm-svn: 49338
* API changes for class Use size reduction, wave 1.Gabor Greif2008-04-066-44/+44
| | | | | | | | Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. llvm-svn: 49277
* Fix an incorrect comment, PR2147.Chris Lattner2008-03-131-1/+1
| | | | llvm-svn: 48323
* remove attributions from examples.Chris Lattner2007-12-297-14/+14
| | | | llvm-svn: 45420
* remove attributions from the rest of the llvm makefiles.Chris Lattner2007-12-296-12/+12
| | | | llvm-svn: 45416
* Change the PointerType api for creating pointer types. The old functionality ↵Christopher Lamb2007-12-172-5/+5
| | | | | | 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
* add a new BF->LLVM translator, contributed by Sterling Stein.Chris Lattner2007-09-125-1/+721
| | | | llvm-svn: 41881
* rename APInt::toString -> toStringUnsigned for symmetry with toStringSigned()Chris Lattner2007-08-232-2/+2
| | | | | | Add an APSInt::toString() method. llvm-svn: 41309
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-2/+2
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* Remove BFtoLLVM. It was old, and a poor example because it didn't use best ↵Owen Anderson2007-07-036-274/+1
| | | | | | | | practices for making a LLVM frontend in C++. Maybe someday it will be rewritten.. llvm-svn: 37858
* switch this to bitcode instead of bytecodeChris Lattner2007-05-062-4/+4
| | | | llvm-svn: 36867
* Revert last patch. The examples build now.Reid Spencer2007-03-061-2/+2
| | | | llvm-svn: 34970
* Adjust for changes in GenericValue type.Reid Spencer2007-03-063-5/+5
| | | | llvm-svn: 34969
* temporarily disable this until Reid has a chance to fix it.Chris Lattner2007-03-061-2/+2
| | | | llvm-svn: 34962
* eliminate vector-related ctorsChris Lattner2007-02-131-3/+1
| | | | llvm-svn: 34227
* Fix a #include to resolve IntegerType class.Reid Spencer2007-01-191-1/+1
| | | | llvm-svn: 33385
* Add a #include to resolve IntegerType class.Reid Spencer2007-01-191-1/+1
| | | | llvm-svn: 33384
* add some casts to support a change in the getOrInsertFunction interfaceChris Lattner2007-01-073-13/+16
| | | | llvm-svn: 32984
* For PR950:Reid Spencer2006-12-314-20/+20
| | | | | | Convert signed integer types to signless. llvm-svn: 32786
* For PR950:Reid Spencer2006-12-232-2/+2
| | | | | | | | 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
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-1/+1
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* For PR1019:Reid Spencer2006-12-011-1/+1
| | | | | | | | 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
* Replacing std::iostreams with llvm iostreams. Some of these changes involveBill Wendling2006-11-291-3/+2
| | | | | | | 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
* For PR950:Reid Spencer2006-10-204-9/+9
| | | | | | | | 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
* Use llvm-config to determine what to link inChris Lattner2006-09-044-7/+5
| | | | llvm-svn: 30092
* WriteBytecodeToFile actually can't throw.Chris Lattner2006-07-282-7/+1
| | | | llvm-svn: 29397
* WriteBytecodeToFile throws, so this needs EH info.Chris Lattner2006-07-281-0/+1
| | | | llvm-svn: 29392
* Use archive libraries instead of object files for VMCore, BCReader,Reid Spencer2006-06-011-1/+1
| | | | | | | BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate these changes. This was done to speed up link times. llvm-svn: 28610
* Support correct build:Reid Spencer2006-06-011-2/+5
| | | | | | | | 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
* Correct some grammar and describe current reality.Reid Spencer2006-05-291-5/+4
| | | | llvm-svn: 28532
* Catch a potentially thrown exception.Chris Lattner2006-05-141-1/+6
| | | | llvm-svn: 28295
* Minor corrections.Jeff Cohen2006-03-243-3/+6
| | | | llvm-svn: 27042
* Upgrade this to use the new intrinsic namesChris Lattner2006-03-031-2/+3
| | | | llvm-svn: 26483
* When a function takes a variable number of pointer arguments, with a zeroJeff Cohen2005-10-233-5/+9
| | | | | | | | | | | | | 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
* For PR616:Reid Spencer2005-08-241-0/+2
| | | | | | | | | | 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
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-55/+55
| | | | llvm-svn: 22523
* Get rid of warnings on AlphaReid Spencer2005-07-131-4/+4
| | | | llvm-svn: 22428
* Correct the file title.Reid Spencer2005-07-121-2/+2
| | | | llvm-svn: 22414
* For PR418:Reid Spencer2005-07-123-1/+312
| | | | | | | | | | | Add an example program that utilizes multiple threads in the JIT to process work. This was used by Evan Jones as the original test case for ensuring that the ExecutionEngine was thread safe. Original source by Evan Jones (adapted from other LLVM JIT examples) and made LLVM style compliant by Reid Spencer. llvm-svn: 22411
* Don't forget these are callsChris Lattner2005-05-061-4/+4
| | | | llvm-svn: 21730
* These are legal for tail callsChris Lattner2005-05-062-1/+5
| | | | llvm-svn: 21723
* Convert tabs to spacesMisha Brukman2005-04-221-2/+2
| | | | llvm-svn: 21433
* Remove trailing whitespace at the end of linesMisha Brukman2005-04-204-41/+41
| | | | llvm-svn: 21380
* add missing copyright headerChris Lattner2005-03-151-0/+7
| | | | llvm-svn: 20614
* Stop using abegin and aend.Alkis Evlogimenos2005-03-151-2/+2
| | | | llvm-svn: 20610
* Stop using abegin.Alkis Evlogimenos2005-03-151-1/+1
| | | | llvm-svn: 20609
OpenPOWER on IntegriCloud