Erick Tryzelaar
83d984101e
Sync c++ kaleidoscope tutorial with test.
...
llvm-svn: 82572
2009-09-22 21:14:49 +00:00
Nick Lewycky
d89dea7a2e
Update the tutorial to match changes to examples/Kaleidoscope.
...
One change I'm not folding in is the removal of two unused variables that
caused warnings, because those were there for expository purposes.
llvm-svn: 81721
2009-09-13 21:38:54 +00:00
Reid Kleckner
f6b832774f
Allocate the module provider in the Kaleidoscope code on the heap, not the stack, so that it can be properly deleted. Also update the tutorial with the new code. This fixes PR4762, hopefully better than the last time.
...
llvm-svn: 80138
2009-08-26 20:58:25 +00:00
Owen Anderson
9df206d02d
Push LLVMContexts through the IntegerType APIs.
...
llvm-svn: 78948
2009-08-13 21:58:54 +00:00
Owen Anderson
1dc40e205b
Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are
...
metadata related, which I'm waiting on to avoid conflicting with Devang.
llvm-svn: 77721
2009-07-31 20:28:14 +00:00
Owen Anderson
881d928f9b
Move types back to the 2.5 API.
...
llvm-svn: 77516
2009-07-29 22:17:13 +00:00
Owen Anderson
256c2c250e
Move ConstantFP construction back to the 2.5-ish API.
...
llvm-svn: 77247
2009-07-27 20:59:43 +00:00
Owen Anderson
cc287b28c9
Get rid of the Pass+Context magic.
...
llvm-svn: 76702
2009-07-22 00:24:57 +00:00
Reid Kleckner
5460ad390c
Add EngineBuilder to ExecutionEngine in favor of the five optional argument EE::create().
...
Also a test commit.
llvm-svn: 76276
2009-07-18 00:42:18 +00:00
Owen Anderson
c63b0e7a30
Privatize the ConstantFP table. I'm on a roll!
...
llvm-svn: 76097
2009-07-16 19:05:41 +00:00
Owen Anderson
393d8b0a0c
Begin the painful process of tearing apart the rat'ss nest that is Constants.cpp and ConstantFold.cpp.
...
This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's
the only way I could figure out to make this process vaguely incremental.
llvm-svn: 75445
2009-07-13 04:09:18 +00:00
Owen Anderson
9331034838
Push LLVMContext _back_ through IRBuilder.
...
llvm-svn: 75040
2009-07-08 20:50:47 +00:00
Gabor Greif
5805f37f74
Fix exaples using IRBuilder. Thanks, Quadrescence and Glip7 from IRC!
...
llvm-svn: 66687
2009-03-11 19:51:07 +00:00
Gabor Greif
fb9820af36
adjust calls to ConstantFP::get to new API
...
llvm-svn: 52165
2008-06-10 01:52:17 +00:00
Gabor Greif
441be4d65b
merge of 49966 from branches/ggreif/use-diet to trunk. these are already active API changes
...
llvm-svn: 49968
2008-04-19 22:25:09 +00:00
Chris Lattner
d98e026e57
improve diagnostics in call parsing, patch suggested by
...
Matthijs Kooijman
llvm-svn: 49648
2008-04-14 16:44:41 +00:00
Duncan Sands
c5f548f784
Merge LLVMBuilder and FoldingBuilder, calling
...
the result IRBuilder. Patch by Dominic Hamon.
llvm-svn: 49604
2008-04-13 06:22:09 +00:00
Chris Lattner
85c2d36cfe
Various updates from Sam Bishop:
...
"I have been working my way through the JIT and Kaleidoscope tutorials in my
(minuscule) spare time. Thanks again for writing them! I have attached a
patch containing some minor changes, ranging from spelling and grammar fixes
to adding a "Next: <next tutorial section>" hyperlink to the bottom of each
page.
Every page has been given the "next link" treatment, but otherwise I'm only
half way through the Kaleidoscope tutorial. I will send a follow-on patch
if time permits."
llvm-svn: 46933
2008-02-10 19:11:04 +00:00
Chris Lattner
4cb265227d
dump the module *before* we delete it, not after.
...
llvm-svn: 46741
2008-02-05 06:18:42 +00:00
Chris Lattner
76c4290c55
fix typo noticed by Joshua Pennington
...
llvm-svn: 44522
2007-12-02 22:46:01 +00:00
Chris Lattner
4aab2642b9
!< is >=, not >. Thanks to Max Hailperin for pointing this out!
...
llvm-svn: 44291
2007-11-23 22:19:33 +00:00
Chris Lattner
e29010c2f0
many edits, patch by Kelly Wilson!
...
llvm-svn: 44157
2007-11-15 04:51:31 +00:00
Chris Lattner
fcfe2b1eb9
edits for chapter 7
...
llvm-svn: 43810
2007-11-07 06:06:38 +00:00
Chris Lattner
d0d6643883
fixes from Ryan Brown.
...
llvm-svn: 43747
2007-11-06 01:39:12 +00:00
Chris Lattner
da6aed91db
add some links to the tutorial index and between chapters.
...
llvm-svn: 43730
2007-11-05 20:04:56 +00:00
Chris Lattner
7f1e211d7a
add table of contents to each chapter.
...
llvm-svn: 43723
2007-11-05 19:06:59 +00:00
Chris Lattner
c81a619924
spell identifier correctly.
...
llvm-svn: 43718
2007-11-05 17:54:34 +00:00
Chris Lattner
aa3229f2f1
fix typos
...
llvm-svn: 43637
2007-11-02 05:54:25 +00:00
Chris Lattner
781dbc1099
Finish chapter 6, and add a spiffy demo that shows off the language.
...
llvm-svn: 43636
2007-11-02 05:42:52 +00:00
Chris Lattner
a5a3acd512
Add the start of chapter 6, still much to go.
...
llvm-svn: 43607
2007-11-01 06:49:54 +00:00