summaryrefslogtreecommitdiffstats
path: root/llvm/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Back out r166591, not sure why this made it through since I cancelled the ↵Micah Villmow2012-10-241-1/+1
| | | | | | command. Bleh, sorry about this! llvm-svn: 166596
* Delete a directory that wasn't supposed to be checked in yet.Micah Villmow2012-10-241-1/+1
| | | | llvm-svn: 166591
* Test commit accessQuentin Colombet2012-10-231-1/+1
| | | | llvm-svn: 166481
* ExceptionDemo.cpp: Use Function::setDoesNotReturn(). Attributes stuff was ↵NAKAMURA Takumi2012-10-121-2/+2
| | | | | | updated. llvm-svn: 165796
* ExceptionDemo.cpp: Whitespace.NAKAMURA Takumi2012-10-121-587/+586
| | | | llvm-svn: 165795
* Move TargetData to DataLayout.Micah Villmow2012-10-089-14/+14
| | | | llvm-svn: 165401
* Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.hChandler Carruth2012-06-298-10/+10
| | | | | | | | | | | | | | | | | This was always part of the VMCore library out of necessity -- it deals entirely in the IR. The .cpp file in fact was already part of the VMCore library. This is just a mechanical move. I've tried to go through and re-apply the coding standard's preferred header sort, but at 40-ish files, I may have gotten some wrong. Please let me know if so. I'll be committing the corresponding updates to Clang and Polly, and Duncan has DragonEgg. Thanks to Bill and Eric for giving the green light for this bit of cleanup. llvm-svn: 159421
* Remove trailing whitespacesArnaud A. de Grandmaison2012-06-211-3/+3
| | | | llvm-svn: 158943
* Fix typos found by http://github.com/lyda/misspell-checkBenjamin Kramer2012-06-021-1/+1
| | | | llvm-svn: 157885
* Remove llvm-ld and llvm-stub (which is only used by llvm-ld).Michael J. Spencer2012-04-191-1/+0
| | | | | | | | | | | | | | | | llvm-ld is no longer useful and causes confusion and so it is being removed. * Does not work very well on Windows because it must call a gcc like driver to assemble and link. * Has lots of hard coded paths which are wrong on many systems. * Does not understand most of ld's options. * Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} | ld, or fully replaced by Clang. I know of no production use of llvm-ld, and hacking use should be replaced by Clang's driver. llvm-svn: 155147
* Switch to a more idiomatic way of silencing unused variable warnings inChandler Carruth2012-02-201-1/+2
| | | | | | release builds. Silences clang's -Wself-assign. llvm-svn: 150942
* Update ExceptionDemo to use ConstantDataArray.Peter Collingbourne2012-02-061-2/+3
| | | | llvm-svn: 149867
* Update to the new EH system...remove OLD EH code.Bill Wendling2012-02-041-88/+4
| | | | llvm-svn: 149728
* Fix BrainF compilation.Francois Pichet2012-01-311-1/+2
| | | | llvm-svn: 149375
* LLVMBuild: Remove trailing newline, which irked me.Daniel Dunbar2011-12-121-1/+0
| | | | llvm-svn: 146409
* EngineBuilder: support for custom TargetOptions. Fixes thePeter Collingbourne2011-12-071-1/+3
| | | | | | ExceptionDemo example. llvm-svn: 146108
* build: Add initial cut at LLVMBuild.txt files.Daniel Dunbar2011-11-031-0/+22
| | | | llvm-svn: 143634
* Changed comments on foreign C++ exceptions (generated with type info 7), Garrison Venn2011-09-281-8/+9
| | | | | | | handling with references to http://sourcery.mentor.com/public/cxx-abi/abi-eh.html (r 1.22). llvm-svn: 140695
* Modified demo to use 3.0 resume instruction vs calling _Unwine_Resume.Garrison Venn2011-09-231-93/+116
| | | | | | | | | | | | | | Also conducted some reformatting. As the LLVM coding standard doc does not seem to touch on how to align function arguments, and format code longer than 80 cols in general, the confusion persists. There is the golden rule, but as this code has gone through several styles to deal with this, the golden rule seems to be ignored. The latest reformatting effort tries to match the other source files as much as possible. Tested on OS X 10.7.1 with, and without the OLD_EXC_SYSTEM defined. Have NOT tested on LINUX. llvm-svn: 140379
* Converted Exception demo over to using new 3.0 landingpad instruction. ThisGarrison Venn2011-09-221-22/+59
| | | | | | | was compiled and tested on OS X 10.7.1. It was not tested on LINUX. In addition the defined OLD_EXC_SYSTEM was not tested with this version. llvm-svn: 140303
* This is a hack to get the demo working with the new 3.0 exception Garrison Venn2011-09-221-4/+18
| | | | | | | | | | infrastructure. As this makes the demo no longer a demo, and especially not a demo on how to use the llvm exception mechanism, this hack will shortly be changed to use the new 3.0 exception infrastructure. However for the time being this demo is an example on how to use the AutoUpgrade UpgradeExceptionHandling(...) function on < 3.0 exception handling code. llvm-svn: 140301
* Move TargetRegistry and TargetSelect from Target to Support where they belong.Evan Cheng2011-08-249-9/+9
| | | | | | These are strictly utilities for registering targets and components. llvm-svn: 138450
* Convert ConstantExpr::getGetElementPtr andJay Foad2011-07-211-2/+1
| | | | | | ConstantExpr::getInBoundsGetElementPtr to use ArrayRef. llvm-svn: 135673
* update for recent api changes. I have a hard time believing that this is ↵Chris Lattner2011-07-181-2/+2
| | | | | | actually a useful example. llvm-svn: 135374
* update this to build with a recent IRBuilder change and de-constify types.Chris Lattner2011-07-181-10/+6
| | | | llvm-svn: 135373
* Convert CallInst and InvokeInst APIs to use ArrayRef. For the LLVM examples.Francois Pichet2011-07-156-10/+10
| | | | llvm-svn: 135266
* Change Intrinsic::getDeclaration and friends to take an ArrayRef.Benjamin Kramer2011-07-141-1/+1
| | | | llvm-svn: 135154
* Remove the const from Type after of Jay deconstify work.Francois Pichet2011-07-121-1/+1
| | | | llvm-svn: 135000
* Reverted 134901 because of 134959. Did not use svn merge -r but rather:Garrison Venn2011-07-121-24/+24
| | | | | | | | | | | | | 1,$s/llvm::Type::getInt\(..\)Ty(builder.getContext())/builder.getInt\1Ty()/g 1,$s/builder.getInt\(..*\)Ty()->getPointerTo()/builder.getInt\1PtrTy()/g vi sub commands (second one was not a reversion but requested by Tobias Grosser. Mod was tested, but other examples have failed to build as they are currently being thrashed with the const qualifier removal change. llvm-svn: 134985
* Fix the BrainF build.Francois Pichet2011-07-121-1/+1
| | | | llvm-svn: 134975
* fix some examplesJohn Wiegley2011-07-116-11/+11
| | | | llvm-svn: 134933
* Modified demo to work with non const Type parameters as is required by newGarrison Venn2011-07-111-15/+16
| | | | | | | | | | | type system. However most of these modifications were due to IRBuilder (IRBuilderBase), not having been modified to NOT return such const qualified free types. If IRBuilder does not change, as can also be seen in its instruction creation methods, to use const free types, it may be useful to have ExceptionDemo drop IRBuilder usage. Modifying builder.getInt32Ty() to llvm::Type::getInt32Ty(builder.getContext()) is pretty ugly. llvm-svn: 134901
* Modify comment.Johnny Chen2011-06-091-1/+1
| | | | llvm-svn: 132800
* Have the JIT tutorial use IRBuilder for the IR.Eric Christopher2011-06-091-8/+17
| | | | | | Patch by Jake Waskett! llvm-svn: 132770
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-151-1/+1
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558
* Added new FIXME noteGarrison Venn2011-04-121-0/+9
| | | | llvm-svn: 129360
* Get rid of useless comment; if a file uses functions from a given header,Eli Friedman2011-04-111-4/+0
| | | | | | it is obvious that it should be included. llvm-svn: 129295
* Because some systems have reported that this example would not build theGarrison Venn2011-04-111-0/+5
| | | | | | header file cstdio was added as an include. llvm-svn: 129291
* Fixed more best practices, and explicit/implicit style guide issues.Garrison Venn2011-04-101-131/+128
| | | | llvm-svn: 129245
* reindent this whole file and do a variety of stylistic cleanups.Chris Lattner2011-04-081-1422/+1400
| | | | | | This code is still a long way from following best practices. llvm-svn: 129140
* fix this to build with the recent StructType changes.Chris Lattner2011-04-081-6/+6
| | | | llvm-svn: 129139
* Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad2011-03-304-14/+8
| | | | | | PHINode::Create() giving the (known or expected) number of operands. llvm-svn: 128537
* (Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad2011-03-303-0/+5
| | | | llvm-svn: 128535
* Fix compiling the ocaml kaleidoscope tutorialsErick Tryzelaar2011-02-092-0/+18
| | | | llvm-svn: 125202
* Do not re-test for the existence of pthread.h.Oscar Fuentes2010-12-231-3/+0
| | | | | | It was causing problems on the MinGW build. See PR8849. llvm-svn: 122518
* Fix missing includes of "llvm/Analysis/Passes.h" in the tutorials. ThanksDan Gohman2010-11-164-0/+4
| | | | | | for Arnaud Allard de Grandmaison for preparing a patch. llvm-svn: 119351
* Update examples and documentation to explicitly add basicaa, now that it'sDan Gohman2010-11-155-0/+11
| | | | | | no longer included by default. llvm-svn: 119169
* Build with RTTI and exceptions disabled. Only in GCC for now.Oscar Fuentes2010-10-172-0/+2
| | | | llvm-svn: 116682
* Convert a bunch of uses of 'bytecode' into 'bitcode'. ThisDuncan Sands2010-09-291-1/+1
| | | | | | is not everything, but the remaining cases are less trivial. llvm-svn: 115080
* Removed TracingBrainF from examples Makefile.Garrison Venn2010-09-151-2/+1
| | | | llvm-svn: 113970
OpenPOWER on IntegriCloud