summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Added -view-callgraph module pass.Andrew Trick2013-01-117-97/+206
| | | | | | | | -dot-callgraph similarly follows a standard module pass pattern. Patch by Speziale Ettore! llvm-svn: 172220
* Fix bug in exception table allocation (PR13678)Eli Bendersky2013-01-112-11/+68
| | | | | | Patch by Michael Muller. llvm-svn: 172214
* Simplify writing floating types to assembly.Tim Northover2013-01-115-92/+106
| | | | | | | This removes previous special cases for each floating-point type in favour of a shared codepath. llvm-svn: 172189
* llvm-symbolizer: add DATA command that allows to symbolize global variables.Dmitry Vyukov2013-01-111-34/+88
| | | | | | | | | | Example: >DATA bin/clang 0x26e8e40 <llvm::SparcSubTypeKV <40799808 416 The last line is address and size of the object. llvm-svn: 172180
* ARM Cost Model: We need to detect the max bitwidth of types in the loop in ↵Nadav Rotem2013-01-112-6/+64
| | | | | | | | | | | order to select the max vectorization factor. We don't have a detailed analysis on which values are vectorized and which stay scalars in the vectorized loop so we use another method. We look at reduction variables, loads and stores, which are the only ways to get information in and out of loop iterations. If the data types are extended and truncated then the cost model will catch the cost of the vector zext/sext/trunc operations. llvm-svn: 172178
* Converted test dont-tce-tail-marked-call.ll to use FileCheck.Michael Gottesman2013-01-111-2/+2
| | | | llvm-svn: 172172
* This commit is a 4x squash commit consisting of 4x functions converted to ↵Michael Gottesman2013-01-114-6/+12
| | | | | | | | | | | | use FileCheck instead of grep. Messages: Converted test case trivial_codegen_tailcall.ll to use FileCheck. Converted test return_constant.ll to use FileCheck instead of grep. Converted test reorder_load.ll to use FileCheck instead of grep. Converted test intervening-inst.ll to use FileCheck instead of grep. llvm-svn: 172171
* Revert r172153, "llvm/lib/MC/MCParser/AsmParser.cpp: [ms-inline-asm] Fix a ↵NAKAMURA Takumi2013-01-111-4/+2
| | | | | | | | couple of undefined behaviors. Operand->needAddressOf() is not initialized at !Operand->isReg()." It has been redundant since r172157. llvm-svn: 172166
* SMDiagnostic: don't emit ranges if there are /any/ multibyte characters.Jordan Rose2013-01-111-9/+12
| | | | | | | | | Right now, only OS X has a way to determine the column width of a string (PR14910). Until we have a good way to deal with this, we just won't print carets, source ranges, or fixits for SMDiagnostic if the source line has multibyte characters in it. llvm-svn: 172164
* docs: Fix long standing linking antipattern.Sean Silva2013-01-1144-127/+43
| | | | | | | | | Before we learned about :doc:, we used :ref: and put a dummy link at the top of each page. Don't do that anymore. This fixes PR14891 as a special case. llvm-svn: 172162
* docs: fix misleading description.Sean Silva2013-01-111-2/+2
| | | | | | PR14890 llvm-svn: 172160
* Support for half intrinsics. Pushes MMX into slower encoding path.Michael Ilseman2013-01-115-36/+45
| | | | llvm-svn: 172159
* X86AsmParser.cpp: Fix up r172148, to add initializer in another CreateMem().NAKAMURA Takumi2013-01-111-0/+1
| | | | llvm-svn: 172157
* Add a new portability macro LLVM_FUNCTION_NAME, that expands to __func__, ifDmitri Gribenko2013-01-111-0/+9
| | | | | | supported. llvm-svn: 172156
* LoopPass.h doesn't require Function.h. Remove unneeded #include.Jakub Staszak2013-01-111-1/+0
| | | | llvm-svn: 172155
* llvm/lib/MC/MCParser/AsmParser.cpp: [ms-inline-asm] Fix a couple of ↵NAKAMURA Takumi2013-01-111-2/+4
| | | | | | undefined behaviors. Operand->needAddressOf() is not initialized at !Operand->isReg(). llvm-svn: 172153
* Remove heavy and unused #inclues from X86TargetObjectFile.cpp.Jakub Staszak2013-01-101-5/+1
| | | | llvm-svn: 172151
* Rename enumerations s/VK/DK/ to conform to naming conventionEli Bendersky2013-01-101-153/+153
| | | | llvm-svn: 172149
* [ms-inline asm] Make sure we set a default value for AddressOf. Follow on toChad Rosier2013-01-101-1/+2
| | | | | | r172121. llvm-svn: 172148
* fix comments a bitEli Bendersky2013-01-101-2/+2
| | | | llvm-svn: 172146
* PR14904: Segmentation fault running pass 'Recognize loop idioms'Shuxin Yang2013-01-102-1/+21
| | | | | | | | The root cause is mistakenly taking for granted that "dyn_cast<Instruction>(a-Value)" return a non-NULL instruction. llvm-svn: 172145
* CastInst::castIsValid should return true if the dest type is the same asEvan Cheng2013-01-102-0/+41
| | | | | | Value's current type. The casting is trivial even for aggregate type. llvm-svn: 172143
* llvm/test/CodeGen/X86/ms-inline-asm.ll: Fixup; Globals doesn't have leading ↵NAKAMURA Takumi2013-01-101-2/+2
| | | | | | underscore in symbol on linux. llvm-svn: 172139
* Update Apple's build script for llvmCore. <rdar://problem/12914321>Bob Wilson2013-01-101-63/+65
| | | | | | | | | | This change is basically just copying changes that we've used for Apple's clang builds to the script used for building llvmCore. Besides cleaning it up to use xcrun to locate the proper versions of tools, especially for cross compiling, it fixes the build to work with newer versions of clang that honor SDKROOT settings in the environment. llvm-svn: 172138
* Remove a couple of if-else chains in parsing directives, replacing them by aEli Bendersky2013-01-101-149/+240
| | | | | | switch. Committed with Jim's and Chris's approval. llvm-svn: 172136
* [llvm-objdump] Emit addresses with the correct number of leading 0's.Michael J. Spencer2013-01-102-10/+13
| | | | llvm-svn: 172130
* [msan] Change va_start/va_copy shadow memset alignment to 8.Peter Collingbourne2013-01-102-2/+15
| | | | | | | | | This fixes va_start/va_copy of a va_list field which happens to not be laid out at a 16-byte boundary. Differential Revision: http://llvm-reviews.chandlerc.com/D276 llvm-svn: 172128
* Remove trailing spaces.Jakub Staszak2013-01-101-21/+21
| | | | llvm-svn: 172125
* PR14896: Handle memcpy from constant string where the memcpy size is larger ↵Evan Cheng2013-01-102-2/+16
| | | | | | than the string size. llvm-svn: 172124
* Remove unneeded includes from FunctionLoweringInfo.h.Jakub Staszak2013-01-102-5/+2
| | | | llvm-svn: 172123
* [ms-inline asm] Add support for calling functions from inline assembly.Chad Rosier2013-01-105-18/+66
| | | | | | Part of rdar://12991541 llvm-svn: 172121
* Remove unneeded #includes.Jakub Staszak2013-01-101-5/+1
| | | | llvm-svn: 172118
* Teach InstCombine to hoist FABS and FNEG through FPTRUNC instructions. The ↵Owen Anderson2013-01-102-1/+46
| | | | | | application of these operations commutes with the truncation, so we should prefer to do them in the smallest size we can, to save register space, use smaller constant pool entries, etc. llvm-svn: 172117
* Fix indent and remove unneeded #includes in MDBuilder.h.Jakub Staszak2013-01-101-131/+132
| | | | llvm-svn: 172115
* Fix #includes after my last commit.Jakub Staszak2013-01-102-2/+2
| | | | llvm-svn: 172114
* Rename LinkAllVMCore.h to LinkAllIR.h since VMCore directory was renamed to IR.Jakub Staszak2013-01-101-3/+3
| | | | llvm-svn: 172112
* remove the rest of the "written by" lines in the documentation. It isChris Lattner2013-01-1018-50/+2
| | | | | | | against the developer policy to include this sort of thing as SVN blame already captures this in a far more fine-grained way. llvm-svn: 172109
* Replace memcpys by a static_cast and an integral promotion.Dmitri Gribenko2013-01-101-6/+4
| | | | llvm-svn: 172108
* Fix coding styleDmitri Gribenko2013-01-101-5/+3
| | | | llvm-svn: 172107
* Unbreak tests after regression from r172081.Jakub Staszak2013-01-101-0/+2
| | | | llvm-svn: 172105
* Add basic fix-its to SMDiagnostic.Jordan Rose2013-01-102-43/+217
| | | | | | | | | | | | | Like Clang's FixItHint, SMFixIt represents an insertion, replacement, or removal of source text. One or more fix-its can be emitted as part of a diagnostic, and will be printed below the source range line to show the user how they can fix their code. Currently, the only client of SMFixIt is clang-tblgen; thus, the tests for this behavior live in clang/test/TableGen/tg-fixits.td. If/when SMFixIt is adopted within LLVM itself, those tests should be moved to the LLVM suite. llvm-svn: 172086
* TableGen: Keep track of superclass reference ranges.Jordan Rose2013-01-104-40/+57
| | | | | | | | | | def foo : bar; ~~~ This allows us to produce more precise diagnostics about a certain superclass, and even provide fixits. llvm-svn: 172085
* TableGen: record anonymous instantiations of classes.Jordan Rose2013-01-102-11/+28
| | | | llvm-svn: 172084
* Allow hasProperty() to be called on bundle-internal instructions.Jakob Stoklund Olesen2013-01-102-3/+4
| | | | | | | | | | | | | When calling hasProperty() on an instruction inside a bundle, it should always behave as if IgnoreBundle was passed, and just return properties for the current instruction. Only attempt to aggregate bundle properties whan asked about the bundle header. The assertion fires on existing ARM test cases without this fix. llvm-svn: 172082
* Fix Alias BugDavid Greene2013-01-101-4/+12
| | | | | | | Use memcpy to do type punning instead of a cast. A cast or similar operation through a union breaks strict aliasing rules. llvm-svn: 172081
* LoopVectorizer: Fix a bug in the vectorization of BinaryOperators. The ↵Nadav Rotem2013-01-102-4/+29
| | | | | | | | BinaryOperator can be folded to an Undef, and we don't want to set NSW flags to undef vals. PR14878 llvm-svn: 172079
* Remove locale-dependence of enum mangling and use existing function.Tim Northover2013-01-101-14/+10
| | | | llvm-svn: 172077
* Make TableGen mangle operand method names before putting in enum.Tim Northover2013-01-101-2/+13
| | | | | | | | | The purpose of this patch is to allow PredicateMethods to be set to something like "isUImm<8>", calling a C++ template method to reduce code duplication. For this to work, the PredicateMethod must be mangled into a valid C++ identifier for insertion into an enum. llvm-svn: 172073
* Fix a copy/paste error in the IR Linker, casting an ArrayType instead of a ↵Joey Gouly2013-01-103-1/+10
| | | | | | VectorType. llvm-svn: 172054
* Fix TryToShrinkGlobalToBoolean in GlobalOpt, so that it does not discard ↵Joey Gouly2013-01-102-12/+18
| | | | | | address spaces. llvm-svn: 172051
OpenPOWER on IntegriCloud