llvm-6502/include/llvm/Support
Chris Lattner 85a0a06b18 patch from Frits van Bommel:
The attached patch fixes IRBuilder and the NoFolder class so that when
NoFolder is used the instructions it generates are treated just like
the ones IRBuilder creates directly (insert into block, assign them a
name and debug info, as applicable).
It does this by
1) having NoFolder return Instruction*s instead of Value*s,
2) having IRBuilder call Insert(Value, Name) on values obtained from
the folder like it does on instructions it creates directly, and
3) adding an Insert(Constant*, const Twine& = "") overload which just
returns the constant so that the other folders shouldn't have any
extra overhead as long as inlining is enabled.

While I was there, I also added some missing (CreateFNeg and various
Create*Cast) methods to NoFolder.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119614 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-18 02:15:42 +00:00
..
AlignOf.h Rename alignof -> alignOf to avoid irritating C++'0x compilers, 2010-10-30 05:14:01 +00:00
Allocator.h Rename alignof -> alignOf to avoid irritating C++'0x compilers, 2010-10-30 05:14:01 +00:00
CallSite.h remove CallSite::get; it is still present (as protected) in the baseclass, use one of the constructors intead 2010-09-18 11:48:36 +00:00
Casting.h restrict dyn_cast_or_null to pointer types, just like cast_or_null; re-commit of r114279, backed out in r114280 2010-09-18 13:03:32 +00:00
CFG.h remove unneeded parens 2010-07-08 16:52:57 +00:00
circular_raw_ostream.h Add circular_raw_ostream, which buffers its output in a circular queue 2009-12-23 16:08:15 +00:00
COFF.h MC-COFF: Add support for default-null weak externals. 2010-10-16 08:25:57 +00:00
CommandLine.h Trailing whitespace. 2010-08-10 14:49:24 +00:00
Compiler.h Remove deprecated macro names. Hopefully this will unbreak the 2010-10-25 12:47:22 +00:00
ConstantFolder.h Adding missing methods for creating Add, Mul, Neg and Sub with NUW. 2010-02-02 12:53:04 +00:00
ConstantRange.h Fix ScalarEvolution's range memoization to avoid using a 2010-11-17 20:23:08 +00:00
CrashRecoveryContext.h CrashRecoveryContext: Add RunSafelyOnThread helper function. 2010-11-05 07:19:09 +00:00
DataFlow.h Fix build of DataFlow.h 2010-08-04 09:30:20 +00:00
Debug.h Fix a comment. 2009-12-23 23:19:43 +00:00
DebugLoc.h remove compatibility typedef. 2010-04-02 20:26:07 +00:00
DOTGraphTraits.h typo 2010-05-27 09:48:47 +00:00
Dwarf.h Did my commit for the last patch for the .loc directory from the wrong place and 2010-09-30 17:16:09 +00:00
DynamicLinker.h
ELF.h Initial comdat implementation. 2010-11-11 18:13:52 +00:00
Endian.h I hate line endings. 2010-10-22 19:14:39 +00:00
ErrorHandling.h report_fatal_error: Simplify a possible ambiguity. 2010-11-13 02:48:51 +00:00
FileUtilities.h Fix llvm-ld to clean up its output files in case of an error. 2010-03-30 19:56:41 +00:00
Format.h Restore snprintf weirdness for VCPP only 2009-12-22 20:11:00 +00:00
FormattedStream.h Make tool_output_file's raw_ostream instance a member variable instead 2010-09-01 14:20:41 +00:00
GetElementPtrTypeIterator.h Fix indentation. 2009-12-04 22:46:47 +00:00
GraphWriter.h writeGraph doesn't need its ShortNames argument. 2010-09-27 16:59:51 +00:00
InstIterator.h
InstVisitor.h
IRBuilder.h patch from Frits van Bommel: 2010-11-18 02:15:42 +00:00
IRReader.h Don't print the filename twice in file-not-found errors. 2010-08-04 01:13:48 +00:00
LeakDetector.h
MachO.h Add v5 and v7 ARM CPU subtype values. 2010-11-05 17:48:05 +00:00
ManagedStatic.h Remove dead code. ManagedCleanup is unused, and contained a serious bug in that 2010-09-07 20:53:39 +00:00
MathExtras.h Factor code out of APInt to form a isUIntN helper function. 2010-11-03 00:38:40 +00:00
MemoryBuffer.h There is no EndPtr anymore - reinterpret the original comment in terms 2010-11-10 07:46:36 +00:00
MemoryObject.h
MutexGuard.h
NoFolder.h patch from Frits van Bommel: 2010-11-18 02:15:42 +00:00
OutputBuffer.h
PassNameParser.h Shrink PassNameParser's binary size with array_pod_sort. 2010-08-07 11:45:42 +00:00
PatternMatch.h Move some those Xor simplifications which don't require creating new 2010-11-17 18:52:15 +00:00
PluginLoader.h
PointerLikeTypeTraits.h
PredIteratorCache.h
PrettyStackTrace.h Trailing whitespace. 2010-08-20 17:38:38 +00:00
raw_os_ostream.h Make some methods const. The only interesting change here is that 2009-12-19 01:38:42 +00:00
raw_ostream.h Always use binary mode for output stream. This is important to prevent unwanted end of line conversion on Windows. Should not affect Unix where O_BINARY is not defined. This fix /clang/test/lexer/preamble.c XFAIL on WIN32. 2010-10-14 20:30:58 +00:00
Recycler.h
RecyclingAllocator.h Provide operator delete for BumpPtrAllocator and RecyclingAllocator. They will 2010-04-08 15:22:35 +00:00
Regex.h Add include guards to Support/Regex.h. 2010-08-20 17:38:44 +00:00
Registry.h Add a comment. 2010-07-26 21:05:37 +00:00
RegistryParser.h
SMLoc.h Added a newline at the end of SMLoc.h 2010-01-18 22:16:54 +00:00
SourceMgr.h now that AsmPrinter::EmitInlineAsm is factored right, we can eliminate the 2010-11-17 08:13:01 +00:00
StableBasicBlockNumbering.h
StandardPasses.h Add TypeBasedAliasAnalysis to the standard pass lists. Note that it 2010-10-18 18:50:27 +00:00
StringPool.h Don't pass StringRef by reference. 2010-07-14 22:38:02 +00:00
SystemUtils.h Rename FindExecutable to PrependMainExecutablePath. 2010-11-03 16:14:16 +00:00
TargetFolder.h add missing method, PR6284 2010-02-17 18:39:56 +00:00
Timer.h Roll back my last two commits, valgrind complains. 2010-08-07 13:27:41 +00:00
ToolOutputFile.h Move tool_output_file into its own file. 2010-10-07 20:32:40 +00:00
type_traits.h improve isPodLike to know that all non-class types are pod. 2009-12-15 07:40:44 +00:00
TypeBuilder.h Add X86 MMX type to bitcode and Type. 2010-09-10 20:55:01 +00:00
ValueHandle.h Fix TrackingVH to handle const Value subclasses. 2010-04-14 22:24:25 +00:00