summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add a way of printing out an arbitrary label name for a sectionEric Christopher2012-12-131-0/+2
| | | | | | given the section. llvm-svn: 170087
* Define getHostCPUFeatures for ARM Linux platformHao Liu2012-12-131-0/+58
| | | | llvm-svn: 170085
* [mips] Delete all floating point instruction classes that are no longer used.Akira Hatanaka2012-12-133-279/+2
| | | | | | No functionality change. llvm-svn: 170084
* [mips] Modify definitions of floating point conditional move instructions.Akira Hatanaka2012-12-132-24/+110
| | | | | | No functionality change. llvm-svn: 170080
* Fix a bug in DAGCombiner::MatchBSwapHWord. Make sure the node has operands ↵Evan Cheng2012-12-131-1/+2
| | | | | | before referencing them. rdar://12868039 llvm-svn: 170078
* [mips] Modify definitions of floating point comparison instructions.Akira Hatanaka2012-12-132-9/+30
| | | | | | No functionality change. llvm-svn: 170077
* [mips] Modify definitions of floating point branch instructions.Akira Hatanaka2012-12-132-2/+26
| | | | | | No functionality change. llvm-svn: 170076
* [mips] Modify definitions of floating point indexed load and store instructions.Akira Hatanaka2012-12-132-14/+59
| | | | | | No functionality change. llvm-svn: 170075
* [mips] Modify definitions of floating point multiply-add/sub instructions.Akira Hatanaka2012-12-132-12/+46
| | | | | | No functionality change. llvm-svn: 170073
* [mips] Modify definitions of floating point load and store instructions.Akira Hatanaka2012-12-132-10/+35
| | | | | | No functionality change. llvm-svn: 170072
* [mips] Modify definitions of move from/to coprocessor instructions.Akira Hatanaka2012-12-132-21/+30
| | | | | | No functionality change. llvm-svn: 170071
* [mips] Modify definitions of two register operand floating point instructions.Akira Hatanaka2012-12-132-41/+87
| | | | | | No functionality change. llvm-svn: 170069
* [mips] Modify definitions of three register operand floating point instructionsAkira Hatanaka2012-12-132-8/+41
| | | | | | and separate encoding information from the rest. llvm-svn: 170066
* Take into account minimize size attribute in the inliner.Quentin Colombet2012-12-131-2/+4
| | | | | | | | | 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 Olesen2012-12-132-10/+11
| | | | | | This function is going to be removed. llvm-svn: 170064
* [mips] Move classes that do not belong in MipsInstrFormats.td intoAkira Hatanaka2012-12-132-23/+23
| | | | | | | MipsInstrFPU.td. llvm-svn: 170061
* [mips] Set isCommutable flag in a more explicit way.Akira Hatanaka2012-12-131-5/+3
| | | | llvm-svn: 170060
* [mips] Remove fmt from the parameter list of classes FMADDSUB and FNMADDSUB.Akira Hatanaka2012-12-131-16/+16
| | | | llvm-svn: 170057
* [mips] Remove single-precision floating point instruction from multiclassAkira Hatanaka2012-12-132-10/+13
| | | | | | | FFR2P_M. llvm-svn: 170055
* [mips] Move class IsCommutable into MipsInstrInfo.td.Akira Hatanaka2012-12-132-4/+4
| | | | llvm-svn: 170054
* [mips] Remove single-precision floating point instructions from multiclassesAkira Hatanaka2012-12-132-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 commentEli Bendersky2012-12-131-3/+3
| | | | llvm-svn: 170052
* Teach the cost model about the optimization in r169904: Truncation of ↵Nadav Rotem2012-12-132-2/+20
| | | | | | induction variables costs the same as scalar trunc. llvm-svn: 170051
* Typo.Chad Rosier2012-12-131-1/+1
| | | | llvm-svn: 170050
* Make the MCStreamer have a reset method and call that after finalization of ↵Pedro Artigas2012-12-126-22/+49
| | | | | | | | 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 errorsChad Rosier2012-12-121-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 Kramer2012-12-121-397/+318
| | | | | | | | 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
* Fix calls to getAsSignedInteger() to use long long - not int64_tNick Kledzik2012-12-121-21/+25
| | | | llvm-svn: 170030
* Restore the PHI optimization I accidently removedMichael Ilseman2012-12-121-0/+4
| | | | llvm-svn: 170024
* Remove trailing whitespaceMichael Ilseman2012-12-121-39/+39
| | | | llvm-svn: 170022
* Fix the build on case sensitive file systems.Benjamin Kramer2012-12-121-4/+2
| | | | llvm-svn: 170021
* Simplify negated bit testDavid Majnemer2012-12-121-0/+18
| | | | llvm-svn: 170020
* Initial implementation of a utility for converting native data Nick Kledzik2012-12-122-0/+882
| | | | | | | | | structures to and from YAML using traits. The first client will be the test suite of lld. The documentation will show up at: http://llvm.org/docs/YamlIO.html llvm-svn: 170019
* Fix a logic bug in inline expansion of memcpy / memset with an overlappingEvan Cheng2012-12-121-4/+5
| | | | | | | load / store pair. It's not legal to use a wider load than the size of the remaining bytes if it's the first pair of load / store. llvm-svn: 170018
* [mips] Fix a memory leak bug report by NAKAMURA Takumi.Akira Hatanaka2012-12-121-5/+6
| | | | llvm-svn: 170012
* Make naming consistent, add comments and sanity assertsEli Bendersky2012-12-121-24/+27
| | | | llvm-svn: 170007
* Fix indentation.Nadav Rotem2012-12-121-4/+3
| | | | llvm-svn: 170005
* LoopVectorizer: Use the "optsize" attribute to decide if we are allowed to ↵Nadav Rotem2012-12-123-8/+13
| | | | | | increase the function size. llvm-svn: 170004
* This patch implements local-dynamic TLS model support for the 64-bitBill Schmidt2012-12-1211-18/+247
| | | | | | | | | | | | | | | | | | | | | | PowerPC target. This is the last of the four models, so we now have full TLS support. This is mostly a straightforward extension of the general dynamic model. I had to use an additional Chain operand to tie ADDIS_DTPREL_HA to the register copy following ADDI_TLSLD_L; otherwise everything above the ADDIS_DTPREL_HA appeared dead and was removed. As before, there are new test cases to test the assembly generation, and the relocations output during integrated assembly. The expected code gen sequence can be read in test/CodeGen/PowerPC/tls-ld.ll. There are a couple of things I think can be done more efficiently in the overall TLS code, so there will likely be a clean-up patch forthcoming; but for now I want to be sure the functionality is in place. Bill llvm-svn: 170003
* Kerning.Bill Wendling2012-12-121-1/+1
| | | | llvm-svn: 170002
* The TargetData is not used for the isPowerOfTwo determination. It has neverRafael Espindola2012-12-123-16/+14
| | | | | | | | | | been used in the first place. It simply was passed to the function and to the recursive invocations. Simply drop the parameter and update the callers for the new signature. Patch by Saleem Abdulrasool! llvm-svn: 169988
* Improve debug info generated with enabled AddressSanitizer.Alexey Samsonov2012-12-122-0/+39
| | | | | | | | | | | | When ASan replaces <alloca instruction> with <offset into a common large alloca>, it should also patch llvm.dbg.declare calls and replace debug info descriptors to mark that we've replaced alloca with a value that stores an address of the user variable, not the user variable itself. See PR11818 for more context. llvm-svn: 169984
* Add ARM NONE and PREL31 relocation types.Logan Chien2012-12-122-3/+14
| | | | | | | | Add R_ARM_NONE and R_ARM_PREL31 relocation types to MCExpr. Both of them will be used while generating .ARM.extab and .ARM.exidx sections. llvm-svn: 169965
* Remove some dead code.Rafael Espindola2012-12-121-8/+0
| | | | llvm-svn: 169963
* [CMake] Fixup R600.NAKAMURA Takumi2012-12-121-1/+1
| | | | llvm-svn: 169962
* Sorry about the churn. One more change to getOptimalMemOpType() hook. Did IEvan Cheng2012-12-129-38/+37
| | | | | | | | | | | | mention the inline memcpy / memset expansion code is a mess? This patch split the ZeroOrLdSrc argument into two: IsMemset and ZeroMemset. The first indicates whether it is expanding a memset or a memcpy / memmove. The later is whether the memset is a memset of zero. It's totally possible (likely even) that targets may want to do different things for memcpy and memset of zero. llvm-svn: 169959
* Fix the ascii drawing that was ruined when I split the H and CPPNadav Rotem2012-12-121-10/+10
| | | | llvm-svn: 169955
* - Rename isLegalMemOpType to isSafeMemOpType. "Legal" is a very overloade term.Evan Cheng2012-12-129-36/+26
| | | | | | | | | Also added more comments to explain why it is generally ok to return true. - Rename getOptimalMemOpType argument IsZeroVal to ZeroOrLdSrc. It's meant to be true for loaded source (memcpy) or zero constants (memset). The poor name choice is probably some kind of legacy issue. llvm-svn: 169954
* fix a typo.Nadav Rotem2012-12-121-1/+1
| | | | llvm-svn: 169953
* DAGCombine: clamp hi bit in APInt::getBitsSet to avoid assertionManman Ren2012-12-121-1/+2
| | | | | | rdar://12838504 llvm-svn: 169951
OpenPOWER on IntegriCloud