5a1acd9912 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								b292b8ce70 
								
							 
						 
						
							
							
								
								Move more code back to 2.5 APIs.  
							
							... 
							
							
							
							llvm-svn: 77635 
							
						 
						
							2009-07-30 23:03:37 +00:00  
				
					
						
							
							
								 
						
							
								4056ca9568 
								
							 
						 
						
							
							
								
								Move types back to the 2.5 API.  
							
							... 
							
							
							
							llvm-svn: 77516 
							
						 
						
							2009-07-29 22:17:13 +00:00  
				
					
						
							
							
								 
						
							
								487375e9a2 
								
							 
						 
						
							
							
								
								Move ConstantExpr to 2.5 API.  
							
							... 
							
							
							
							llvm-svn: 77494 
							
						 
						
							2009-07-29 18:55:55 +00:00  
				
					
						
							
							
								 
						
							
								4aa3295a65 
								
							 
						 
						
							
							
								
								Return ConstantVector to 2.5 API.  
							
							... 
							
							
							
							llvm-svn: 77366 
							
						 
						
							2009-07-28 21:19:26 +00:00  
				
					
						
							
							
								 
						
							
								c2c7932c64 
								
							 
						 
						
							
							
								
								Change ConstantArray to 2.5 API.  
							
							... 
							
							
							
							llvm-svn: 77347 
							
						 
						
							2009-07-28 18:32:17 +00:00  
				
					
						
							
							
								 
						
							
								45308b578b 
								
							 
						 
						
							
							
								
								Move ConstantStruct back to 2.5 API.  
							
							... 
							
							
							
							llvm-svn: 77266 
							
						 
						
							2009-07-27 22:29:26 +00:00  
				
					
						
							
							
								 
						
							
								69c464dec4 
								
							 
						 
						
							
							
								
								Move ConstantFP construction back to the 2.5-ish API.  
							
							... 
							
							
							
							llvm-svn: 77247 
							
						 
						
							2009-07-27 20:59:43 +00:00  
				
					
						
							
							
								 
						
							
								9813b0b025 
								
							 
						 
						
							
							
								
								Eliminate some uses of DOUT, cerr, and getNameStart().  
							
							... 
							
							
							
							llvm-svn: 77145 
							
						 
						
							2009-07-26 07:49:05 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								2dd0bf8db0 
								
							 
						 
						
							
							
								
								Change the casting of linkage types into a map. This makes this much more robust  
							
							... 
							
							
							
							as it no longer depends upon two different enums being kept in sync with each
other.
llvm-svn: 76465 
							
						 
						
							2009-07-20 20:34:46 +00:00  
				
					
						
							
							
								 
						
							
								bfc2d8e5de 
								
							 
						 
						
							
							
								
								Fix compiler warning (for -Asserts).  
							
							... 
							
							
							
							llvm-svn: 76110 
							
						 
						
							2009-07-16 22:06:22 +00:00  
				
					
						
							
							
								 
						
							
								dac44ec99b 
								
							 
						 
						
							
							
								
								Update the C bindings to keep the LLVMTypeKind up to date between the C/C++  
							
							... 
							
							
							
							stuff.  Patch by Zoltan Varga!
llvm-svn: 75842 
							
						 
						
							2009-07-15 22:00:31 +00:00  
				
					
						
							
							
								 
						
							
								fbcc663cbf 
								
							 
						 
						
							
							
								
								llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.  
							
							... 
							
							
							
							This adds location info for all llvm_unreachable calls (which is a macro now) in
!NDEBUG builds.
In NDEBUG builds location info and the message is off (it only prints
"UREACHABLE executed").
llvm-svn: 75640 
							
						 
						
							2009-07-14 16:55:14 +00:00  
				
					
						
							
							
								 
						
							
								56d0659726 
								
							 
						 
						
							
							
								
								assert(0) -> LLVM_UNREACHABLE.  
							
							... 
							
							
							
							Make llvm_unreachable take an optional string, thus moving the cerr<< out of
line.
LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for
NDEBUG builds.
llvm-svn: 75379 
							
						 
						
							2009-07-11 20:10:48 +00:00  
				
					
						
							
							
								 
						
							
								a771459bb1 
								
							 
						 
						
							
							
								
								Push LLVMContext _back_ through IRBuilder.  
							
							... 
							
							
							
							llvm-svn: 75040 
							
						 
						
							2009-07-08 20:50:47 +00:00  
				
					
						
							
							
								 
						
							
								b17f32945f 
								
							 
						 
						
							
							
								
								Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required.  
							
							... 
							
							
							
							llvm-svn: 75025 
							
						 
						
							2009-07-08 19:03:57 +00:00  
				
					
						
							
							
								 
						
							
								5948fdf68b 
								
							 
						 
						
							
							
								
								Push LLVMContext through GlobalVariables and IRBuilder.  
							
							... 
							
							
							
							llvm-svn: 74985 
							
						 
						
							2009-07-08 01:26:06 +00:00  
				
					
						
							
							
								 
						
							
								8ec8c97f81 
								
							 
						 
						
							
							
								
								LLVMContext-ifiy the implementation of the C API.  
							
							... 
							
							
							
							llvm-svn: 74950 
							
						 
						
							2009-07-07 21:33:58 +00:00  
				
					
						
							
							
								 
						
							
								7f31824a44 
								
							 
						 
						
							
							
								
								Add two new accessors to the C bindings, patch by Wladimir van der Laan!  
							
							... 
							
							
							
							llvm-svn: 74836 
							
						 
						
							2009-07-06 17:29:59 +00:00  
				
					
						
							
							
								 
						
							
								31d44e4904 
								
							 
						 
						
							
							
								
								Restore other bits of the C API that I tore up.  All pre-existing APIs default to using the  
							
							... 
							
							
							
							default global context, while new *InContext() APIs have been added that take a LLVMContextRef parameter.
Apologies to anyone affected by this breakage.
llvm-svn: 74694 
							
						 
						
							2009-07-02 07:17:57 +00:00  
				
					
						
							
							
								 
						
							
								f7691d398d 
								
							 
						 
						
							
							
								
								Add a C wrapper for accessing the global default context.  
							
							... 
							
							
							
							llvm-svn: 74675 
							
						 
						
							2009-07-02 00:16:38 +00:00  
				
					
						
							
							
								 
						
							
								1cf085d558 
								
							 
						 
						
							
							
								
								Hold the LLVMContext by reference rather than by pointer.  
							
							... 
							
							
							
							llvm-svn: 74640 
							
						 
						
							2009-07-01 21:22:36 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								d334aca93f 
								
							 
						 
						
							
							
								
								Add a getAlignOf helper for getting the ABI alignment of a  
							
							... 
							
							
							
							type as a target independent constant expression.  I confess
that I didn't check that this method works as intended (though
I did test the equivalent hand-written IR a little).  But what
could possibly go wrong!
llvm-svn: 72213 
							
						 
						
							2009-05-21 15:52:21 +00:00  
				
					
						
							
							
								 
						
							
								7374a0118d 
								
							 
						 
						
							
							
								
								OCaml parameter attribute bindings from PR2752.  
							
							... 
							
							
							
							Incomplete, but better than nothing.
llvm-svn: 71081 
							
						 
						
							2009-05-06 12:21:17 +00:00  
				
					
						
							
							
								 
						
							
								29e3894e7d 
								
							 
						 
						
							
							
								
								C bindings for dyn_cast_or_null.  
							
							... 
							
							
							
							This operation can be used to build dyn_cast, isa, and cast.
llvm-svn: 61252 
							
						 
						
							2008-12-19 18:39:45 +00:00  
				
					
						
							
							
								 
						
							
								3d1f552643 
								
							 
						 
						
							
							
								
								This adds some missing functions to the C binding:  
							
							... 
							
							
							
							- ability to insert previously created instructions using a builder
- creation of aliases
- creation of inline asm constants
Patch by Zoltan Varga!
llvm-svn: 61153 
							
						 
						
							2008-12-17 21:39:50 +00:00  
				
					
						
							
							
								 
						
							
								d5104a5de6 
								
							 
						 
						
							
							
								
								Add C bindings for extractvalue and insertvalue. Patch by Frits van Bommel!  
							
							... 
							
							
							
							llvm-svn: 58650 
							
						 
						
							2008-11-03 22:55:43 +00:00  
				
					
						
							
							
								 
						
							
								4f0bd68cfe 
								
							 
						 
						
							
							
								
								Add a "loses information" return value to APFloat::convert  
							
							... 
							
							
							
							and APFloat::convertToInteger.  Restore return value to
IEEE754.  Adjust all users accordingly.
llvm-svn: 57329 
							
						 
						
							2008-10-09 23:00:39 +00:00  
				
					
						
							
							
								 
						
							
								4c758ea3e0 
								
							 
						 
						
							
							
								
								Large mechanical patch.  
							
							... 
							
							
							
							s/ParamAttr/Attribute/g
s/PAList/AttrList/g
s/FnAttributeWithIndex/AttributeWithIndex/g
s/FnAttr/Attribute/g
This sets the stage 
- to implement function notes as function attributes and 
- to distinguish between function attributes and return value attributes.
This requires corresponding changes in llvm-gcc and clang.
llvm-svn: 56622 
							
						 
						
							2008-09-25 21:00:45 +00:00  
				
					
						
							
							
								 
						
							
								eeb6537abb 
								
							 
						 
						
							
							
								
								PR2731: C and Ocaml bindings for setTailCall and isTailCall.  
							
							... 
							
							
							
							Based on patch by Giorgos Korfiatis.
llvm-svn: 55570 
							
						 
						
							2008-08-30 16:34:54 +00:00  
				
					
						
							
							
								 
						
							
								d930f913e6 
								
							 
						 
						
							
							
								
								Rename some GC classes so that their roll will hopefully be clearer.  
							
							... 
							
							
							
							In particular, Collector was confusing to implementors. Several
thought that this compile-time class was the place to implement
their runtime GC heap. Of course, it doesn't even exist at runtime.
Specifically, the renames are:
  Collector               -> GCStrategy
  CollectorMetadata       -> GCFunctionInfo
  CollectorModuleMetadata -> GCModuleInfo
  CollectorRegistry       -> GCRegistry
  Function::getCollector  -> getGC (setGC, hasGC, clearGC)
Several accessors and nested types have also been renamed to be
consistent. These changes should be obvious.
llvm-svn: 54899 
							
						 
						
							2008-08-17 18:44:35 +00:00  
				
					
						
							
							
								 
						
							
								72c1c7d694 
								
							 
						 
						
							
							
								
								Delete a redundant binding, LLVMHasInitializer.  
							
							... 
							
							
							
							Please use !LLVMIsDeclaration instead.
llvm-svn: 54572 
							
						 
						
							2008-08-09 02:13:58 +00:00  
				
					
						
							
							
								 
						
							
								5927883970 
								
							 
						 
						
							
							
								
								Have IRBuilder take a template argument on whether or not to preserve  
							
							... 
							
							
							
							names. This can save a lot of allocations if you aren't going to be
looking at the output.
llvm-svn: 54546 
							
						 
						
							2008-08-08 19:39:37 +00:00  
				
					
						
							
							
								 
						
							
								c7076914ac 
								
							 
						 
						
							
							
								
								Use Function's arg_size() and size() methods.  
							
							... 
							
							
							
							llvm-svn: 52605 
							
						 
						
							2008-06-21 22:06:54 +00:00  
				
					
						
							
							
								 
						
							
								00889ccfca 
								
							 
						 
						
							
							
								
								Remove a duplicative binding. Patch by Mahadevan R.  
							
							... 
							
							
							
							llvm-svn: 51238 
							
						 
						
							2008-05-19 05:47:10 +00:00  
				
					
						
							
							
								 
						
							
								a735a9c481 
								
							 
						 
						
							
							
								
								Use (void) instead of () in C code.  
							
							... 
							
							
							
							llvm-svn: 50620 
							
						 
						
							2008-05-04 12:55:34 +00:00  
				
					
						
							
							
								 
						
							
								2d9cc2197a 
								
							 
						 
						
							
							
								
								Expose parameter attributes via C bindings.  
							
							... 
							
							
							
							Patch by Anders Johnsen!
llvm-svn: 50360 
							
						 
						
							2008-04-28 17:37:06 +00:00  
				
					
						
							
							
								 
						
							
								d3018e6a0e 
								
							 
						 
						
							
							
								
								Use simplified ConstantFP::get method, fix a bug handling frem x, 0 with long doubles.  
							
							... 
							
							
							
							llvm-svn: 49976 
							
						 
						
							2008-04-20 00:26:06 +00:00  
				
					
						
							
							
								 
						
							
								a07136ee2d 
								
							 
						 
						
							
							
								
								Merge LLVMBuilder and FoldingBuilder, calling  
							
							... 
							
							
							
							the result IRBuilder.  Patch by Dominic Hamon.
llvm-svn: 49604 
							
						 
						
							2008-04-13 06:22:09 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								6f2ffdb73f 
								
							 
						 
						
							
							
								
								Change the MemoryBuffer::getFile* methods to take just a pointer to the  
							
							... 
							
							
							
							start of a filename, not a filename+length.  All clients can produce a
null terminated name, and the system api's require null terminated 
strings anyway.
llvm-svn: 49041 
							
						 
						
							2008-04-01 18:04:03 +00:00  
				
					
						
							
							
								 
						
							
								07a45f4edb 
								
							 
						 
						
							
							
								
								Objective Caml bindings for basic block, function, global, and arg iterators.  
							
							... 
							
							
							
							llvm-svn: 48711 
							
						 
						
							2008-03-23 22:21:29 +00:00  
				
					
						
							
							
								 
						
							
								054817ce06 
								
							 
						 
						
							
							
								
								C bindings for Module-, Function-, and BasicBlock::iterator.  
							
							... 
							
							
							
							llvm-svn: 48528 
							
						 
						
							2008-03-19 03:47:18 +00:00  
				
					
						
							
							
								 
						
							
								265f780c22 
								
							 
						 
						
							
							
								
								C and Objective Caml bindings for the various getParent methods of the IR.  
							
							... 
							
							
							
							Based on Erick Tryzelaar's patch.
llvm-svn: 48523 
							
						 
						
							2008-03-19 01:11:35 +00:00  
				
					
						
							
							
								 
						
							
								6c6075e326 
								
							 
						 
						
							
							
								
								Expose Module::dump via C and Ocaml.  
							
							... 
							
							
							
							Patch by Erick Tryzelaar.
llvm-svn: 48379 
							
						 
						
							2008-03-14 23:58:56 +00:00  
				
					
						
							
							
								 
						
							
								579f07135a 
								
							 
						 
						
							
							
								
								Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.  
							
							... 
							
							
							
							llvm-svn: 47367 
							
						 
						
							2008-02-20 11:08:44 +00:00  
				
					
						
							
							
								 
						
							
								931e121ad1 
								
							 
						 
						
							
							
								
								Fixing a bug creating floating point constants of type other  
							
							... 
							
							
							
							than double through the C bindings. Thanks to Tomas Lindquist
Olsen for reporting it.
llvm-svn: 46656 
							
						 
						
							2008-02-02 01:07:50 +00:00  
				
					
						
							
							
								 
						
							
								097102c32a 
								
							 
						 
						
							
							
								
								Adding C bindings for SwitchInst::addCase.  
							
							... 
							
							
							
							Patch by Bryan O'Sullivan!
llvm-svn: 45481 
							
						 
						
							2008-01-01 05:50:53 +00:00