1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 21:42:54 +02:00
llvm-mirror/include/llvm/Support
Chris Lattner de283efb5d 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.

llvm-svn: 119614
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
circular_raw_ostream.h
COFF.h MC-COFF: Add support for default-null weak externals. 2010-10-16 08:25:57 +00:00
CommandLine.h
Compiler.h Remove deprecated macro names. Hopefully this will unbreak the 2010-10-25 12:47:22 +00:00
ConstantFolder.h
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
Debug.h
DebugLoc.h
DOTGraphTraits.h
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
Format.h
FormattedStream.h Make tool_output_file's raw_ostream instance a member variable instead 2010-09-01 14:20:41 +00:00
GetElementPtrTypeIterator.h
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
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
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
raw_os_ostream.h
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
Regex.h
Registry.h
RegistryParser.h
SMLoc.h
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
SystemUtils.h Rename FindExecutable to PrependMainExecutablePath. 2010-11-03 16:14:16 +00:00
TargetFolder.h
Timer.h
ToolOutputFile.h Move tool_output_file into its own file. 2010-10-07 20:32:40 +00:00
type_traits.h
TypeBuilder.h Add X86 MMX type to bitcode and Type. 2010-09-10 20:55:01 +00:00
ValueHandle.h