Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Restore the PHI optimization I accidently removed" temporarily since | Eric Christopher | 2012-12-13 | 1 | -4/+0 |
| | | | | | | | | it seems to be breaking self-host for a few people and is PR14592. This reverts commit r170024. llvm-svn: 170106 | ||||
* | Revert "Add a funciton to get the segment name of a section." | Eric Christopher | 2012-12-13 | 4 | -48/+14 |
| | | | | | | This reverts commit r170095 since it appears to be breaking the bots. llvm-svn: 170105 | ||||
* | Change TargetLowering::getRegClassFor to take an MVT, instead of EVT. | Patrik Hagglund | 2012-12-13 | 13 | -81/+89 |
| | | | | | | | | | | | | Accordingly, add helper funtions getSimpleValueType (in parallel to getValueType) in SDValue, SDNode, and TargetLowering. This is the first, in a series of patches. This is the second attempt. In the first attempt (r169837), a few getSimpleVT() were hoisted too far, detected by bootstrap failures. llvm-svn: 170104 | ||||
* | Add a funciton to get the segment name of a section. | Rafael Espindola | 2012-12-13 | 4 | -14/+48 |
| | | | | | | | | | | | | | | | On MachO, sections also have segment names. When a tool looking at a .o file prints a segment name, this is what they mean. In reality, a .o has only one, anonymous, segment. This patch adds a MachO only function to fetch that segment name. I named it getSectionFinalSegmentName since the main use for the name seems to be informing the linker with segment this section should go to. The patch also changes MachOObjectFile::getSectionName to return just the section name instead of computing SegmentName,SectionName. llvm-svn: 170095 | ||||
* | Missed these calls from the previous rename somehow. | Rafael Espindola | 2012-12-13 | 1 | -2/+2 |
| | | | | llvm-svn: 170094 | ||||
* | Rename isPowerOfTwo to isKnownToBeAPowerOfTwo. | Rafael Espindola | 2012-12-13 | 4 | -21/+21 |
| | | | | | | | | In a previous thread it was pointed out that isPowerOfTwo is not a very precise name since it can return false for powers of two if it is unable to show that they are powers of two. llvm-svn: 170093 | ||||
* | [mips] Do not copy GOT address to register $gp if the function being called has | Akira Hatanaka | 2012-12-13 | 2 | -4/+36 |
| | | | | | | internal linkage. llvm-svn: 170092 | ||||
* | Pattern matching code for intrinsics. | Michael Ilseman | 2012-12-13 | 2 | -15/+115 |
| | | | | | | Provides m_Argument that allows matching against a CallSite's specified argument. Provides m_Intrinsic pattern that can be templatized over the intrinsic id and bind/match arguments similarly to other pattern matchers. Implementations provided for 0 to 4 arguments, though it's very simple to extend for more. Also provides example template specialization for bswap (m_BSwap) and example of code cleanup for its use. llvm-svn: 170091 | ||||
* | Remove extraneous debugging code. | Eric Christopher | 2012-12-13 | 1 | -2/+0 |
| | | | | llvm-svn: 170090 | ||||
* | Use default label name for a section in emitting abbreviation | Eric Christopher | 2012-12-13 | 1 | -5/+8 |
| | | | | | | section to help prep some code to be split about. llvm-svn: 170088 | ||||
* | Add a way of printing out an arbitrary label name for a section | Eric Christopher | 2012-12-13 | 5 | -0/+31 |
| | | | | | | given the section. llvm-svn: 170087 | ||||
* | m_CombineOr and m_CombineAnd pattern combinators | Michael Ilseman | 2012-12-13 | 1 | -10/+49 |
| | | | | llvm-svn: 170086 | ||||
* | Define getHostCPUFeatures for ARM Linux platform | Hao Liu | 2012-12-13 | 1 | -0/+58 |
| | | | | llvm-svn: 170085 | ||||
* | [mips] Delete all floating point instruction classes that are no longer used. | Akira Hatanaka | 2012-12-13 | 3 | -279/+2 |
| | | | | | | No functionality change. llvm-svn: 170084 | ||||
* | Make this Lit config file a bit slimmer | Eli Bendersky | 2012-12-13 | 1 | -8/+1 |
| | | | | llvm-svn: 170083 | ||||
* | [mips] Modify definitions of floating point conditional move instructions. | Akira Hatanaka | 2012-12-13 | 2 | -24/+110 |
| | | | | | | No functionality change. llvm-svn: 170080 | ||||
* | Fix a bug in DAGCombiner::MatchBSwapHWord. Make sure the node has operands ↵ | Evan Cheng | 2012-12-13 | 2 | -1/+48 |
| | | | | | | before referencing them. rdar://12868039 llvm-svn: 170078 | ||||
* | [mips] Modify definitions of floating point comparison instructions. | Akira Hatanaka | 2012-12-13 | 2 | -9/+30 |
| | | | | | | No functionality change. llvm-svn: 170077 | ||||
* | [mips] Modify definitions of floating point branch instructions. | Akira Hatanaka | 2012-12-13 | 2 | -2/+26 |
| | | | | | | No functionality change. llvm-svn: 170076 | ||||
* | [mips] Modify definitions of floating point indexed load and store instructions. | Akira Hatanaka | 2012-12-13 | 2 | -14/+59 |
| | | | | | | No functionality change. llvm-svn: 170075 | ||||
* | [mips] Modify definitions of floating point multiply-add/sub instructions. | Akira Hatanaka | 2012-12-13 | 2 | -12/+46 |
| | | | | | | No functionality change. llvm-svn: 170073 | ||||
* | [mips] Modify definitions of floating point load and store instructions. | Akira Hatanaka | 2012-12-13 | 2 | -10/+35 |
| | | | | | | No functionality change. llvm-svn: 170072 | ||||
* | [mips] Modify definitions of move from/to coprocessor instructions. | Akira Hatanaka | 2012-12-13 | 2 | -21/+30 |
| | | | | | | No functionality change. llvm-svn: 170071 | ||||
* | [mips] Modify definitions of two register operand floating point instructions. | Akira Hatanaka | 2012-12-13 | 2 | -41/+87 |
| | | | | | | No functionality change. llvm-svn: 170069 | ||||
* | [mips] Modify definitions of three register operand floating point instructions | Akira Hatanaka | 2012-12-13 | 2 | -8/+41 |
| | | | | | | and separate encoding information from the rest. llvm-svn: 170066 | ||||
* | Take into account minimize size attribute in the inliner. | Quentin Colombet | 2012-12-13 | 2 | -2/+236 |
| | | | | | | | | | Better controls the inlining of functions when the caller function has MinSize attribute. Basically, when the caller function has this attribute, we do not "force" the inlining of callee functions carrying the InlineHint attribute (i.e., functions defined with inline keyword) llvm-svn: 170065 | ||||
* | Avoid setIsInsideBundle in Target/R600. | Jakob Stoklund Olesen | 2012-12-13 | 2 | -10/+11 |
| | | | | | | This function is going to be removed. llvm-svn: 170064 | ||||
* | Express prepend and append in terms of a more generic insert(). | Jakob Stoklund Olesen | 2012-12-13 | 1 | -11/+36 |
| | | | | | | | | Also add an MIBundleBuilder constructor that takes an existing bundle. Together these functions make it possible to add instructions to existing bundles. llvm-svn: 170063 | ||||
* | [mips] Move classes that do not belong in MipsInstrFormats.td into | Akira Hatanaka | 2012-12-13 | 2 | -23/+23 |
| | | | | | | | MipsInstrFPU.td. llvm-svn: 170061 | ||||
* | [mips] Set isCommutable flag in a more explicit way. | Akira Hatanaka | 2012-12-13 | 1 | -5/+3 |
| | | | | llvm-svn: 170060 | ||||
* | [mips] Remove fmt from the parameter list of classes FMADDSUB and FNMADDSUB. | Akira Hatanaka | 2012-12-13 | 1 | -16/+16 |
| | | | | llvm-svn: 170057 | ||||
* | [mips] Remove single-precision floating point instruction from multiclass | Akira Hatanaka | 2012-12-13 | 2 | -10/+13 |
| | | | | | | | FFR2P_M. llvm-svn: 170055 | ||||
* | [mips] Move class IsCommutable into MipsInstrInfo.td. | Akira Hatanaka | 2012-12-13 | 2 | -4/+4 |
| | | | | llvm-svn: 170054 | ||||
* | [mips] Remove single-precision floating point instructions from multiclasses | Akira Hatanaka | 2012-12-13 | 2 | -47/+54 |
| | | | | | | | | FFR1_W_M and FFR1P_M. The new instruction definitions have one-to-one correspondence with the instructions in the ISA manual. llvm-svn: 170053 | ||||
* | Fix a bogus comment | Eli Bendersky | 2012-12-13 | 1 | -3/+3 |
| | | | | llvm-svn: 170052 | ||||
* | Teach the cost model about the optimization in r169904: Truncation of ↵ | Nadav Rotem | 2012-12-13 | 3 | -3/+21 |
| | | | | | | induction variables costs the same as scalar trunc. llvm-svn: 170051 | ||||
* | Typo. | Chad Rosier | 2012-12-13 | 1 | -1/+1 |
| | | | | llvm-svn: 170050 | ||||
* | Make the MCStreamer have a reset method and call that after finalization of ↵ | Pedro Artigas | 2012-12-12 | 10 | -31/+68 |
| | | | | | | | | the asm printer, also changed MCContext to a single reset only method for simplicity as requested on the list llvm-svn: 170041 | ||||
* | [ms-inline asm] Make sure we fail gracefully on parse errors. Parse errors | Chad Rosier | 2012-12-12 | 1 | -2/+9 |
| | | | | | | | | should only occur on invalid input. Instruction matching errors aren't unexpected, so we can't rely on the AsmParsers HadError variable directly. rdar://12840278 llvm-svn: 170037 | ||||
* | YAMLIO: Remove all of the template instantiation hacks, I don't see why ↵ | Benjamin Kramer | 2012-12-12 | 2 | -423/+326 |
| | | | | | | | | they're necessary and it breaks linking of the unit tests. Also comes with a clang-format run on the cpp file, it had major style violations. llvm-svn: 170036 | ||||
* | Temporarily disable test cases until they compile with g++ too. | Nick Kledzik | 2012-12-12 | 1 | -0/+4 |
| | | | | llvm-svn: 170035 | ||||
* | Unbreak the build. Fallout from r170019. | David Blaikie | 2012-12-12 | 1 | -1/+1 |
| | | | | llvm-svn: 170033 | ||||
* | AlignedCharArrayUnion is erroring with non-clang compilers | Nick Kledzik | 2012-12-12 | 1 | -6/+6 |
| | | | | llvm-svn: 170031 | ||||
* | Fix calls to getAsSignedInteger() to use long long - not int64_t | Nick Kledzik | 2012-12-12 | 1 | -21/+25 |
| | | | | llvm-svn: 170030 | ||||
* | Makefile.sphinx: reST conversion is complete! | Dmitri Gribenko | 2012-12-12 | 1 | -4/+0 |
| | | | | | | No need to copy HTML files anymore. llvm-svn: 170029 | ||||
* | Documentation: use paths relative to document root in links. | Dmitri Gribenko | 2012-12-12 | 1 | -1/+1 |
| | | | | llvm-svn: 170027 | ||||
* | Fix typo, which prevent test from being check. | Jakub Staszak | 2012-12-12 | 1 | -3/+3 |
| | | | | llvm-svn: 170025 | ||||
* | Restore the PHI optimization I accidently removed | Michael Ilseman | 2012-12-12 | 1 | -0/+4 |
| | | | | llvm-svn: 170024 | ||||
* | unHECKify test fixed by Jacob in r159003. | Jakub Staszak | 2012-12-12 | 1 | -8/+6 |
| | | | | llvm-svn: 170023 | ||||
* | Remove trailing whitespace | Michael Ilseman | 2012-12-12 | 1 | -39/+39 |
| | | | | llvm-svn: 170022 |