summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Debug Info: instead of calling addToContextOwner which constructs the contextManman Ren2013-10-2913-54/+66
| | | | | | | | | | | | after the DIE creation, we construct the context first. This touches creation of namespaces and global variables. The purpose is to handle all DIE creations similarly: constructs the context first, then creates the DIE and immediately adds the DIE to its parent. We use createAndAddDIE to wrap around "new DIE(". llvm-svn: 193589
* [FileToMutable] Garbage collect unused private memberShankar Easwaran2013-10-291-8/+5
| | | | llvm-svn: 193588
* [Sanitizer] Simplify StackTrace::PrintStack interface: prefer common flags ↵Alexey Samsonov2013-10-296-9/+9
| | | | | | to turn on/off the symbolization llvm-svn: 193587
* [test] Fix a test failure, this test is only applicable in debug modeShankar Easwaran2013-10-291-0/+2
| | | | llvm-svn: 193586
* [PassManager] add ReaderWriter{Native,YAML} to the Driver.Shankar Easwaran2013-10-2937-70/+297
| | | | | | | | | | | | | Enable this for the following flavors a) core b) gnu c) darwin Its disabled for the flavor PECOFF. Convenient markers are added with FIXME comments in the Driver that would be removed and code removed from each flavor. llvm-svn: 193585
* Fix spelling.Rui Ueyama2013-10-291-1/+1
| | | | llvm-svn: 193584
* Add missing attributes [[gnu::no_sanitize_address]] andNick Lewycky2013-10-292-1/+10
| | | | | | [[gnu::no_address_safety_analysis]]. llvm-svn: 193583
* Treat [[gnu::__const]] the same as [[gnu::const]]. GCC's tokenizer can't tellNick Lewycky2013-10-292-1/+10
| | | | | | the difference. llvm-svn: 193582
* [msan] Intercept shmat.Evgeniy Stepanov2013-10-296-5/+105
| | | | llvm-svn: 193581
* Add llvm/test/Transforms/SLPVectorizer/ARM/lit.local.cfg. Tests there ↵NAKAMURA Takumi2013-10-291-0/+3
| | | | | | require ARM in targets. llvm-svn: 193580
* Fix "existant" typosAlp Toker2013-10-294-5/+5
| | | | llvm-svn: 193579
* Fix "existant" typosAlp Toker2013-10-291-2/+2
| | | | llvm-svn: 193578
* Cleanup comments and braces. No functionality changed, just trying toChandler Carruth2013-10-291-4/+15
| | | | | | | | | record what is *actually* going on here as the comments existing in the code are confusing at best, and in places outright misleading. The API is even more misleading. Yay. llvm-svn: 193577
* Clean up.Richard Smith2013-10-291-4/+4
| | | | llvm-svn: 193576
* DWARFFormValue.cpp: Appease gcc to give explicit constructors.NAKAMURA Takumi2013-10-291-4/+4
| | | | | | error: conversion from `const uint8_t*' to non-scalar type `llvm::ArrayRef<unsigned char>' requested llvm-svn: 193575
* ARM cost model: Unaligned vectorized double stores are expensiveArnold Schwaighofer2013-10-293-9/+44
| | | | | | | | | Updated a test case that assumed that <2 x double> would vectorize to use <4 x float>. radar://15338229 llvm-svn: 193574
* ARM cost model: Account for zero cost scalar SROA instructionsArnold Schwaighofer2013-10-293-6/+85
| | | | | | | | | By vectorizing a series of srl, or, ... instructions we have obfuscated the intention so much that the backend does not know how to fold this code away. radar://15336950 llvm-svn: 193573
* SLPVectorizer: Use vector type for vectorized memory operationsArnold Schwaighofer2013-10-291-2/+2
| | | | | | | | | No test case, because with the current cost model we don't see a difference. An upcoming ARM memory cost model change will expose and test this bug. radar://15332579 llvm-svn: 193572
* Cleaning up comments in lliAndrew Kaylor2013-10-291-2/+2
| | | | llvm-svn: 193571
* Adding a workaround for __main linking with remote lli and Cygwin/MinGWAndrew Kaylor2013-10-299-21/+51
| | | | llvm-svn: 193570
* Move the STT_FILE symbols out of the normal symbol table processing forJoerg Sonnenberger2013-10-295-22/+101
| | | | | | | ELF. They can overlap with the other symbols, e.g. if a source file "foo.c" contains a function "foo" with a static variable "c". llvm-svn: 193569
* Debug Info: use createAndAddDIE to wrap around "new DIE" in DwarfDebug.Manman Ren2013-10-291-6/+5
| | | | | | | | | This commit ensures DIEs are constructed within a compile unit and immediately added to their parents. Reviewed off-list by Eric. llvm-svn: 193568
* Debug Info: use createAndAddDIE for newly-created Subprogram DIEs.Manman Ren2013-10-296-23/+27
| | | | | | | | | | | More patches will be submitted to convert "new DIE(" to use createAddAndDIE in DwarfCompileUnit.cpp. This will simplify implementation of addDIEEntry where we have to decide between ref4 and ref_addr, because DIEs that can be shared across CU will be added to a CU already. Reviewed off-list by Eric. llvm-svn: 193567
* Debug Info: add a helper function createAndAddDIE.Manman Ren2013-10-292-29/+28
| | | | | | | | | | | | | | It wraps around "new DIE(" and handles the bookkeeping part of the newly-created DIE. It adds the DIE to its parent, and calls insertDIE if necessary. It makes sure that bookkeeping is done at the earliest time and we should not see parentless DIEs if all constructions of DIEs go through this helper function. Later on, we can use an allocator for DIE allocation, and will only need to change createAndAddDIE instead of modifying all the "new DIE(". Reviewed off-list by Eric. llvm-svn: 193566
* [PECOFF] Fix __ImageBase symbol.Rui Ueyama2013-10-292-40/+17
| | | | | | | | | __ImageBase is an absolute symbol whose address is the same as the image base address. What we did before this patch was to create __ImageBase symbol as a symbol whose *contents* (not location) is the image base address, which is clearly wrong. llvm-svn: 193565
* <rdar://problem/15144376>Enrico Granata2013-10-2922-243/+757
| | | | | | | | | | | | This commit reimplements the TypeImpl class (the class that backs SBType) in terms of a static,dynamic type pair This is useful for those cases when the dynamic type of an ObjC variable can only be obtained in terms of an "hollow" type with no ivars In that case, we could either go with the static type (+iVar information) or with the dynamic type (+inheritance chain) With the new TypeImpl implementation, we try to combine these two sources of information in order to extract as much information as possible This should improve the functionality of tools that are using the SBType API to do extensive dynamic type inspection llvm-svn: 193564
* Merge DWARFDIE::extractFast and DWARFDIE::extract into one function.Alexey Samsonov2013-10-282-56/+10
| | | | | | | Complicated CU-DIE-specific logic in the latter was never used, and it makes sense to have safety checks for broken dwarf in the former. llvm-svn: 193563
* Renaming MCJIT .ir files to .ll and moving them to InputsAndrew Kaylor2013-10-2816-9/+9
| | | | llvm-svn: 193562
* Switch %clang -cc1 tests to %clang_cc1Alp Toker2013-10-282-2/+2
| | | | llvm-svn: 193561
* DWARF parser: Use ArrayRef to represent form sizes and simplify ↵Alexey Samsonov2013-10-286-21/+16
| | | | | | DWARFDIE::extractFast() interface. No functionality change. llvm-svn: 193560
* lit: add missing substitutions for recently added toolsAlp Toker2013-10-282-0/+4
| | | | | | | llvm-mcmarkup, obj2yaml and yaml2obj were missing from the substitutions list, causing the test suite to fail in a sandboxed environment. llvm-svn: 193559
* Quote potential shell expansions found in testsAlp Toker2013-10-282-2/+2
| | | | llvm-svn: 193558
* Fix comment.Rui Ueyama2013-10-281-1/+1
| | | | llvm-svn: 193557
* [PECOFF] Set section name for BSS atoms.Rui Ueyama2013-10-281-1/+1
| | | | | | | This change has no effect now, but will be needed to emit BSS atoms to .bss section. llvm-svn: 193556
* DWARF parser: since DWARF4, DW_AT_high_pc may be a constant representing ↵Alexey Samsonov2013-10-281-4/+10
| | | | | | function size llvm-svn: 193555
* Revert "Support cross linking to arm on ubuntu."Rafael Espindola2013-10-2816-71/+21
| | | | | | | | This reverts commit r193528 (and fixes). It broke Chandler's setup. llvm-svn: 193554
* DebugInfo: Introduce the notion of "form classes"Alexey Samsonov2013-10-287-74/+201
| | | | | | | | | | | | | | | | | | Summary: Use DWARF4 table of form classes to fetch attributes from DIE in a more consistent way. This shouldn't change the functionality and serves as a refactoring for upcoming change: DW_AT_high_pc has different semantics depending on its form class. Reviewers: dblaikie, echristo Reviewed By: echristo CC: echristo, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1961 llvm-svn: 193553
* Fix the lli --extra-module value_descAlp Toker2013-10-281-1/+1
| | | | llvm-svn: 193552
* [MachO] pointer align linker generated (non)lazy pointersNick Kledzik2013-10-282-1/+16
| | | | llvm-svn: 193551
* Add a few tests for StringRef::{start,end}with.Rui Ueyama2013-10-281-0/+2
| | | | llvm-svn: 193550
* Allow a new syntax in a module requires-declaration:Richard Smith2013-10-2815-38/+92
| | | | | | | | | | | | requires ! feature The purpose of this is to allow (for instance) the module map for /usr/include to exclude <tgmath.h> and <complex.h> when building in C++ (these headers are instead provided by the C++ standard library in this case, and the glibc C <tgmath.h> header would otherwise try to include <complex.h>, resulting in a module cycle). llvm-svn: 193549
* Convert another llc -filetype=obj test.Rafael Espindola2013-10-282-29/+44
| | | | llvm-svn: 193548
* Convert another llc -filetype=obj test.Rafael Espindola2013-10-282-34/+61
| | | | llvm-svn: 193547
* Convert another llc -filetype=obj test.Rafael Espindola2013-10-282-31/+56
| | | | llvm-svn: 193546
* Fix a parser crash when there are #pragmas in a context which requires a singleRichard Smith2013-10-284-4/+65
| | | | | | statement (after a case label, if, etc). Patch by Olivier Goffart! llvm-svn: 193545
* Standardizing lli's extra module command line optionAndrew Kaylor2013-10-2810-11/+10
| | | | llvm-svn: 193544
* Remove stray '_'.Bill Wendling2013-10-281-1/+1
| | | | llvm-svn: 193543
* Use the correct reference. Spotted by Sean Silva.Bill Wendling2013-10-281-3/+3
| | | | llvm-svn: 193542
* Remove 2.4 from the list of supported Python versions.Bill Wendling2013-10-281-1/+1
| | | | llvm-svn: 193541
* [mips] Simplify LowerFormalArguments using getRegClassFor.Akira Hatanaka2013-10-281-15/+2
| | | | | | No functionality change. llvm-svn: 193540
OpenPOWER on IntegriCloud