summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct < and > to &lt; and &gt;. Thanks to Samuel Harrington for pointing ↵Richard Smith2014-01-241-1/+1
| | | | | | this out! llvm-svn: 200048
* Terminate an unused char* buffer correctly so we don't try to openJason Molenda2014-01-241-0/+1
| | | | | | | | it later in GDBRemoteCommunication::StartDebugserverProcess and report an error. <rdar://problem/15820813> llvm-svn: 200047
* [AArch64] Removed unused i8 type from FPR8 register class.Ana Pazos2014-01-242-1/+48
| | | | | | | | | | | | | | | The i8 type is not registered with any register class. This causes a segmentation fault in MachineLICM::getRegisterClassIDAndCost. The code selects the first type associated with register class FPR8, which happens to be i8. It uses this type (i8) to get the representative class pointer, which is 0. It then uses this pointer to access a field, resulting in segmentation fault. Since i8 type is not being used for printing any neon instruction we can safely remove it. llvm-svn: 200046
* Allow virt-specifiers after GNU attributes in member-declarators. GCC doesn'tRichard Smith2014-01-244-4/+15
| | | | | | | | | | | allow this, and we should warn on it, but it turns out that people were already relying on this. We should introduce a -Wgcc-compat warning for this if the attributes are known to GCC, but we don't currently track enough information about attributes to do so reliably. llvm-svn: 200045
* ARM: also remove useless .arm directive from other filesTim Northover2014-01-242-6/+0
| | | | llvm-svn: 200044
* ARM: remove unnecessary .arm directiveTim Northover2014-01-241-3/+0
| | | | | | | | It was redundant (since ARM mode is the default) and misleading since (e.g.) Cortex-A15 would not satisfy the #ifdef but would be in ARM mode regardless. llvm-svn: 200043
* Fix c++03 build.Rafael Espindola2014-01-241-6/+12
| | | | llvm-svn: 200042
* Adds a getSemanticSpelling function to semantic attribute subclasses which ↵Aaron Ballman2014-01-243-39/+122
| | | | | | have a meaningful semantic spelling. Adds a sibling function to parsed attribtues (via AttributeList) for getting the semantic spelling, if one were to exist. This can be used for cleaner code that deals directly with the semantic spellings (such as the MSInheritance attribute). llvm-svn: 200041
* Make ObjectFile ownership of the MemoryBuffer optional.Rafael Espindola2014-01-2411-85/+98
| | | | | | This allows llvm-ar to mmap the input files only once. llvm-svn: 200040
* Fix a typo "endi" -> "endif" in r200035.Bob Wilson2014-01-241-1/+1
| | | | llvm-svn: 200039
* Support/COFF: Fix PEHeader struct, and define PE32Header as its alias.Rui Ueyama2014-01-241-6/+8
| | | | | | | | This change does not affect anything because everybody seems to be using Object/COFF.h instead. But the definition is not for PE32 but for PE32+, so fix it anyway. llvm-svn: 200038
* Remove TGValueTypes.cpp from CMakeLists.txt which I forgot to do in r200036.Craig Topper2014-01-241-1/+0
| | | | llvm-svn: 200037
* Replace tablegen uses of EVT with MVT. Add isOverloaded() to MVT to ↵Craig Topper2014-01-245-137/+14
| | | | | | facilitate. Remove TGValueTypes.cpp since its unused now (and may have been before). llvm-svn: 200036
* Don't use .arm for ARMv7M, which will use the hwdiv path. Non-hwdivJoerg Sonnenberger2014-01-243-0/+6
| | | | | | | | remains ARM mode only, supporting thumb requires explicit it prefixes for the predicted adds/subs and adjusting the offset computation for the different block sizes. llvm-svn: 200035
* Add Constant Hoisting PassJuergen Ributzka2014-01-2420-40/+722
| | | | | | | | Retry commit r200022 with a fix for the build bot errors. Constant expressions have (unlike instructions) module scope use lists and therefore may have users in different functions. The fix is to simply ignore these out-of-function uses. llvm-svn: 200034
* Fix DAGCombiner::GatherAllAliases to account for non-chain dependenciesHal Finkel2014-01-241-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DAGCombiner::GatherAllAliases, which is only used when AA used is enabled during DAGCombine, had a fundamentally incorrect assumption for which this change compensates. GatherAllAliases, which is used to find aliasing predecessor chain nodes (so that a better chain can be selected for a load or store to enable subsequent optimizations) assumed that walking up the chain would always catch all possibly-aliasing loads and stores. This is not true: To really find all aliases, we also need to search for aliases through the value operand of a store, etc. Consider the following situation: Token1 = ... L1 = load Token1, %52 S1 = store Token1, L1, %51 L2 = load Token1, %52+8 S2 = store Token1, L2, %51+8 Token2 = Token(S1, S2) L3 = load Token2, %53 S3 = store Token2, L3, %52 L4 = load Token2, %53+8 S4 = store Token2, L4, %52+8 If we search for aliases of S3 (which loads address %52), and we look only through the chain, then we'll miss the trivial dependence on L1 (which loads from %52). We then might change all loads and stores to use Token1 as their chain operand, which could result in copying %53 into %52 before copying %52 into %51 (which should happen first). The problem is, however, that searching for such data dependencies can become expensive, and the cost is not directly related to the chain depth. Instead, we'll rule out such configurations by insisting that we've visited all chain users (except for users of the original chain, which is not necessary). When doing this, we need to look through nodes we don't care about (otherwise, things like register copies will interfere with trivial use cases). Unfortunately, I don't have a small test case for this problem. Creating the underlying situation is not hard (a pair of memcpys will do it), but arranging for the default instruction schedule to be incorrect is very fragile. This unbreaks self hosting on PPC64 when using -mllvm -combiner-global-alias-analysis -mllvm -combiner-alias-analysis. llvm-svn: 200033
* Since Visual Studio 2012 is the minimum version of MSVC we support, the ↵Aaron Ballman2014-01-242-391/+44
| | | | | | old-style visualizers are being removed. Adding a Natvis replacement for the debugging visualizers. llvm-svn: 200032
* Fixing PR18510 by checking whether the non-virtual base of the derived classYunzhong Gao2014-01-242-1/+23
| | | | | | | | | | might have a smaller size as compared to the stand-alone type of the base class. This is possible when the derived class is packed and hence might have smaller alignment requirement than the base class. Differential Revision: http://llvm-reviews.chandlerc.com/D2599 llvm-svn: 200031
* Verify that attributes are not lost during linking.Bill Wendling2014-01-242-0/+22
| | | | | | | | We don't want to lose attributes when a function decl without them is merged with a function decl that has them. PR2382 llvm-svn: 200030
* [PECOFF] Accept /machine:x64 option.Rui Ueyama2014-01-243-6/+16
| | | | | | | This is the first patch to support PE32+ format, which is the image format to use 64 bit address space on Windows/x86-64. llvm-svn: 200029
* InstCombine: Don't try to use aggregate elements of ConstantExprs.Benjamin Kramer2014-01-242-5/+15
| | | | | | PR18600. llvm-svn: 200028
* Add a testcase for the changes in r199938.Lang Hames2014-01-241-3/+21
| | | | | | <rdar://problem/15611947> llvm-svn: 200027
* Revert "Add Constant Hoisting Pass"Juergen Ributzka2014-01-2420-701/+40
| | | | | | This reverts commit r200022 to unbreak the build bots. llvm-svn: 200024
* Restrict FindBetterChain DAG combines to unindexed nodesHal Finkel2014-01-241-2/+2
| | | | | | | | | | | | These transformations obviously won't work for indexed (pre/post-inc) loads and stores. In practice, I'm not sure there is any benefit to enabling them for indexed nodes because other transformations that these might enable likely also won't handle indexed nodes. I don't have an in-tree test case that hits this problem, but an upcoming bug fix will make it much more likely. llvm-svn: 200023
* Add Constant Hoisting PassJuergen Ributzka2014-01-2420-40/+701
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This pass identifies expensive constants to hoist and coalesces them to better prepare it for SelectionDAG-based code generation. This works around the limitations of the basic-block-at-a-time approach. First it scans all instructions for integer constants and calculates its cost. If the constant can be folded into the instruction (the cost is TCC_Free) or the cost is just a simple operation (TCC_BASIC), then we don't consider it expensive and leave it alone. This is the default behavior and the default implementation of getIntImmCost will always return TCC_Free. If the cost is more than TCC_BASIC, then the integer constant can't be folded into the instruction and it might be beneficial to hoist the constant. Similar constants are coalesced to reduce register pressure and materialization code. When a constant is hoisted, it is also hidden behind a bitcast to force it to be live-out of the basic block. Otherwise the constant would be just duplicated and each basic block would have its own copy in the SelectionDAG. The SelectionDAG recognizes such constants as opaque and doesn't perform certain transformations on them, which would create a new expensive constant. This optimization is only applied to integer constants in instructions and simple (this means not nested) constant cast experessions. For example: %0 = load i64* inttoptr (i64 big_constant to i64*) Reviewed by Eric llvm-svn: 200022
* Add final and owerride keywords to TargetTransformInfo's subclasses.Juergen Ributzka2014-01-247-126/+143
| | | | llvm-svn: 200021
* Doxify commentsJuergen Ributzka2014-01-241-23/+21
| | | | llvm-svn: 200020
* [PECOFF] Use constant instead of magic number.Rui Ueyama2014-01-241-2/+2
| | | | llvm-svn: 200019
* Fix known typosAlp Toker2014-01-24111-232/+233
| | | | | | | Sweep the codebase for common typos. Includes some changes to visible function names that were misspelt. llvm-svn: 200018
* Report lli remote IO errors consistentlyAlp Toker2014-01-245-41/+30
| | | | | | | | | This enables IO error reports in both the child and server processes. The scheme still isn't entirely satisfactory and output is jumbled but it beats having no output at all. This will hopefully unblock ARM support (PR18057). llvm-svn: 200017
* InstSimplify: Make shift, select and GEP simplifications vector-aware.Benjamin Kramer2014-01-244-19/+114
| | | | llvm-svn: 200016
* tsan: fix test for -O2Dmitry Vyukov2014-01-241-13/+17
| | | | | | otherwise races are suppressed due to "same stack" llvm-svn: 200015
* Unify duplicated functions.Rafael Espindola2014-01-243-21/+5
| | | | llvm-svn: 200014
* Don't use "llc -filetype=obj" now that the codepath is the same.Rafael Espindola2014-01-243-3/+3
| | | | | | | r200011 remove the special codepaths in MC for inline asm, so we can now test all the logic with just llc + llvm-mc. llvm-svn: 200013
* tsan: fix test for -O2Dmitry Vyukov2014-01-241-1/+2
| | | | llvm-svn: 200012
* Move emitInlineAsmEnd to the AsmPrinter interface.Rafael Espindola2014-01-246-41/+34
| | | | | | | | There is no inline asm in a .s file. Therefore, there should be no logic to handle it in the streamer. Inline asm only exists in bitcode files, so the logic can live in the (long misnamed) AsmPrinter class. llvm-svn: 200011
* Rename some internal templates to avoid conflict with complier intrinsics. ↵Marshall Clow2014-01-241-22/+22
| | | | | | __is_constructible --> __libcpp_is_constructible, __is_nothrow_constructible --> __libcpp_is_nothrow_constructible, and __is_nothrow_assignable --> __libcpp_is_nothrow_assignable. No functionality change. llvm-svn: 200010
* [asan] Add an ASan-on-Android installation script.Evgeniy Stepanov2014-01-241-0/+190
| | | | llvm-svn: 200009
* [AArch64] Replace underscores with dashes in -mgeneral_regs_only.Amara Emerson2014-01-243-4/+4
| | | | | | This should now match the equivalent gcc option. llvm-svn: 200008
* Add end-of-function markers.Joerg Sonnenberger2014-01-243-2/+6
| | | | llvm-svn: 200007
* Add end-of-function markers.Joerg Sonnenberger2014-01-2414-12/+29
| | | | llvm-svn: 200006
* Mechanically add end-of-function markers.Joerg Sonnenberger2014-01-2457-30/+78
| | | | llvm-svn: 200005
* Adding a new diagnostics group (-Wattributes) which covers both ↵Aaron Ballman2014-01-241-1/+3
| | | | | | UnknownAttributes and IgnoredAttributes. llvm-svn: 200004
* tsan: fix signal handlingDmitry Vyukov2014-01-241-51/+67
| | | | | | | We left ignore_interceptors>0 when calling signal handlers from blocking interceptors, this leads to missing synchronization in such signal handler. llvm-svn: 200003
* tsan: fix test relying on assertDmitry Vyukov2014-01-241-0/+6
| | | | llvm-svn: 200002
* Provide support for ARMv4, lacking bx and clz. Unroll theJoerg Sonnenberger2014-01-243-198/+412
| | | | | | | | | | test-and-subtract loop and compute the initial block as address, shaving off between 5% and 10% on Cortex A9 and 30%+ a Raspberry Pi. Code written by Matt Thomas and Joerg Sonnenberger. Differential Revision: http://llvm-reviews.chandlerc.com/D2595 llvm-svn: 200001
* DWARFContext: Fix possible memory leak since r198908.NAKAMURA Takumi2014-01-241-0/+1
| | | | llvm-svn: 200000
* [CMake] libclang: Update GENERATED_HEADERS with actually used.NAKAMURA Takumi2014-01-241-0/+2
| | | | | | | + ClangAttrVisitor + ClangCommentCommandList llvm-svn: 199999
* Implement __ARM_ARCH if the compiler lacks it. Add feature tests for bx and clz.Joerg Sonnenberger2014-01-241-0/+38
| | | | llvm-svn: 199998
* Added missing StandardConversionSequence initializationIsmail Pazarbasi2014-01-241-0/+1
| | | | | | | This is the second msan failure where UserDefinedConversion does not initialize its `Before` member as identity conversion. llvm-svn: 199997
OpenPOWER on IntegriCloud