Rafael Espindola
24be43d22b
Update examples for API change. NFC.
...
llvm-svn: 325157
2018-02-14 19:23:27 +00:00
Teresa Johnson
5923864597
Fix examples files to reflect header split in r286566.
...
I missed these files in examples/
llvm-svn: 286570
2016-11-11 06:02:04 +00:00
Eugene Zelenko
2b8e41705e
Fix some Include What You Use warnings in examples; other minor fixes.
...
Differential revision: http://reviews.llvm.org/D20607
llvm-svn: 270645
2016-05-25 01:18:36 +00:00
Chandler Carruth
005f27a0d3
Update the examples for the new header file locations.
...
Sorry for the fallout here, I forgot the examples aren't built by
default any more.
llvm-svn: 171371
2013-01-02 11:56:33 +00:00
Chandler Carruth
605e30e93c
Sort the #include lines of the examples/... tree.
...
llvm-svn: 169249
2012-12-04 10:16:57 +00:00
Chris Lattner
6973395cc7
eliminate the std::ostream forms of the bitcode writing APIs.
...
llvm-svn: 79840
2009-08-23 07:49:08 +00:00
Owen Anderson
55f1c09e31
Push LLVMContexts through the IntegerType APIs.
...
llvm-svn: 78948
2009-08-13 21:58:54 +00:00
Owen Anderson
4056ca9568
Move types back to the 2.5 API.
...
llvm-svn: 77516
2009-07-29 22:17:13 +00:00
Owen Anderson
edb4a70325
Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks to contexts-on-types. More to come.
...
llvm-svn: 77011
2009-07-24 23:12:02 +00:00
Owen Anderson
b6b2530000
Move EVER MORE stuff over to LLVMContext.
...
llvm-svn: 75703
2009-07-14 23:09:55 +00:00
Owen Anderson
1cf085d558
Hold the LLVMContext by reference rather than by pointer.
...
llvm-svn: 74640
2009-07-01 21:22:36 +00:00
Owen Anderson
6773d388aa
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot
...
of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools.
Patches for Clang and LLVM-GCC to follow.
llvm-svn: 74614
2009-07-01 16:58:40 +00:00
Chris Lattner
96122debc1
improve the APIs for creating struct and function types with no arguments/elements
...
to not have to create a temporary vector (in the API at least). Patch by Jay Foad!
llvm-svn: 74584
2009-07-01 04:13:31 +00:00
Gabor Greif
e1f6e4b21d
API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.)
...
llvm-svn: 51200
2008-05-16 19:29:10 +00:00
Gabor Greif
e9ecc68d8f
API changes for class Use size reduction, wave 1.
...
Specifically, introduction of XXX::Create methods
for Users that have a potentially variable number of
Uses.
llvm-svn: 49277
2008-04-06 20:25:17 +00:00
Chris Lattner
bcf65db6f3
remove attributions from examples.
...
llvm-svn: 45420
2007-12-29 20:37:57 +00:00
Gabor Greif
e16561cd5d
Here is the bulk of the sanitizing.
...
Almost all occurrences of "bytecode" in the sources have been eliminated.
llvm-svn: 37913
2007-07-05 17:07:56 +00:00
Chris Lattner
41528e6e42
switch this to bitcode instead of bytecode
...
llvm-svn: 36867
2007-05-06 09:29:13 +00:00
Reid Spencer
bc013ba367
For PR950:
...
Convert signed integer types to signless.
llvm-svn: 32786
2006-12-31 05:50:28 +00:00
Bill Wendling
f3baad3ee1
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
...
now cerr, cout, and NullStream resp.
llvm-svn: 32298
2006-12-07 01:30:32 +00:00
Bill Wendling
afd54eb8b6
Replacing std::iostreams with llvm iostreams. Some of these changes involve
...
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
2006-11-29 00:19:40 +00:00
Reid Spencer
e0fc4dfc22
For PR950:
...
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
2006-10-20 07:07:24 +00:00
Chris Lattner
5dbafa8aad
WriteBytecodeToFile actually can't throw.
...
llvm-svn: 29397
2006-07-28 22:08:23 +00:00
Chris Lattner
5eae951603
Catch a potentially thrown exception.
...
llvm-svn: 28295
2006-05-14 19:08:39 +00:00
Misha Brukman
2f72bafb60
Remove trailing whitespace at the end of lines
...
llvm-svn: 21380
2005-04-20 16:42:34 +00:00
Chris Lattner
3779fd6521
add missing copyright header
...
llvm-svn: 20614
2005-03-15 15:46:23 +00:00
Reid Spencer
987319d3a7
Correct the file header to reflect the new "examples" home for the file.
...
llvm-svn: 16295
2004-09-11 20:30:11 +00:00
Reid Spencer
5b81eea7a5
Moved small examples from /projects/SmallExamples to /examples.
...
Made the "ModuleMaker" into an example since its just one source file.
llvm-svn: 16003
2004-08-23 19:29:54 +00:00