summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* R600: Remove unused method declaration.Matt Arsenault2014-03-201-6/+0
| | | | llvm-svn: 204357
* Re-factor TableGen docsRenato Golin2014-03-205-300/+1134
| | | | | | | | | | | | | This is mainly a movement of content around to give place to new content allowing different people to add bits to it in the right place. There is some new content, but mostly to fill the gaps left by text movement. I'm dropping the old syntax documentation as it has the problem of being quickly outdated by changes and largely unnecessary to people not involved in creating the language, but using it, which is the whole point of the documentation. llvm-svn: 204351
* Add a test for LowerInvoke that doesn't use "-enable-correct-eh-support"Mark Seaborn2014-03-201-0/+25
| | | | | | | | | | | | | None of the existing tests for LowerInvoke check LowerInvoke's output, and all but one use "-enable-correct-eh-support", which is obsolete, so those tests will be removed when that option is removed. To make sure LowerInvoke will still have test coverage, this adds a test for its default mode which converts invokes to calls. Differential Revision: http://llvm-reviews.chandlerc.com/D3124 llvm-svn: 204344
* [MIPS] Add cpu octeon and some instructionsKai Nacke2014-03-2013-6/+203
| | | | | | | | | | The Octeon cpu from Cavium Networks is mips64r2 based and has an extended instruction set. In order to utilize this with LLVM, a new cpu feature "octeon" and a subtarget feature "cnmips" is added. A small set of new instructions (baddu, dmul, pop, dpop, seq, sne) is also added. LLVM generates dmul, pop and dpop instructions with option -mcpu=octeon or -mattr=+cnmips. llvm-svn: 204337
* [ASan] Add -asan-module to the ASan .ll tests.Alexander Potapenko2014-03-2016-23/+28
| | | | | | | | After the -asan pass had been split into -asan (function-level) and -asan-module (module-level) some of the tests have silently stopped working, because they didn't instrument the globals anymore. We've decided to have every test using both passes, irrespective of the presence of globals in it. llvm-svn: 204335
* [ASan] Do not instrument globals from the llvm.metadata section.Alexander Potapenko2014-03-202-0/+14
| | | | | | Fixes https://code.google.com/p/address-sanitizer/issues/detail?id=279. llvm-svn: 204331
* Provide an operand for microMIPS wait instruction.Zoran Jovanovic2014-03-204-5/+21
| | | | llvm-svn: 204329
* Implementation of microMIPS 16-bit instructions MOVE and JALR.Zoran Jovanovic2014-03-2010-15/+141
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D3112 llvm-svn: 204325
* Mark alias symbols as microMIPS if necessary. Differential Revision: ↵Zoran Jovanovic2014-03-209-8/+57
| | | | | | http://llvm-reviews.chandlerc.com/D3080 llvm-svn: 204323
* [mips] Splitting up class definition from implementation.Matheus Almeida2014-03-202-129/+171
| | | | | | | | Also removed some unnecessary #includes. No functional changes. llvm-svn: 204320
* Add llvm_unreachable after fully-covered switches to appease GCCAlexey Samsonov2014-03-202-0/+2
| | | | llvm-svn: 204318
* Test case for r204305.Craig Topper2014-03-201-0/+4
| | | | llvm-svn: 204316
* Object: Output .file symbols properlyDavid Majnemer2014-03-203-1/+19
| | | | | | | obj2yaml would emit the NUL bytes padding the auxiliary file symbol records. Trimming them looks nicer. llvm-svn: 204314
* Object: Abstract out the determination of function line symbolsDavid Majnemer2014-03-202-1/+5
| | | | | | No functionality change. llvm-svn: 204313
* Object: Don't double-escape empty hexdataDavid Majnemer2014-03-202-4/+2
| | | | | | | We would emit a pair of double quotes inside a pair of single quotes. Just use a pair of single quotes. llvm-svn: 204312
* Reapply 'ARM IAS: support .thumb_set'Saleem Abdulrasool2014-03-204-4/+264
| | | | | | | Re-apply the change after it was reverted to do conflicts due to another change being reverted. llvm-svn: 204306
* [X86] Check return value of readSIB in disassembler so errors propagate. In ↵Craig Topper2014-03-201-5/+2
| | | | | | particular this makes a too short instruction with a missing SIB byte fail. llvm-svn: 204305
* [ARM]Fix an assertion failure in A15SDOptimizer about DPair reg class by ↵Hao Liu2014-03-202-3/+68
| | | | | | treating DPair as QPR. llvm-svn: 204304
* Look through variables when computing relocations.Rafael Espindola2014-03-2014-35/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given bar = foo + 4 .long bar MC would eat the 4. GNU as includes it in the relocation. The rule seems to be that a variable that defines a symbol is used in the relocation and one that does not define a symbol is evaluated and the result included in the relocation. Fixing this unfortunately required some other changes: * Since the variable is now evaluated, it would prevent the ELF writer from noticing the weakref marker the elf streamer uses. This patch then replaces that with a VariantKind in MCSymbolRefExpr. * Using VariantKind then requires us to look past other VariantKind to see .weakref bar,foo call bar@PLT doing this also fixes zed = foo +2 call zed@PLT so that is a good thing. * Looking past VariantKind means that the relocation selection has to use the fixup instead of the target. This is a reboot of the previous fixes for MC. I will watch the sanitizer buildbot and wait for a build before adding back the previous fixes. llvm-svn: 204294
* Revert "Use the range machinery for DW_AT_ranges and DW_AT_high/lo_pc."Eric Christopher2014-03-2010-246/+145
| | | | | | | | This appears to trigger failures with optimization and function arguments somehow. This reverts commit r204277. llvm-svn: 204286
* Support: Add postincrement and include guards to LineIteratorJustin Bogner2014-03-191-0/+10
| | | | llvm-svn: 204279
* Use the range machinery for DW_AT_ranges and DW_AT_high/lo_pc.Eric Christopher2014-03-1910-145/+246
| | | | | | | | | | | | | | | | | | This commit moves us from a single range per subprogram to extending ranges if we are: a) In the same section, and b) In the same enclosing CU. This means we have more fine grained ranges for compile units, and fewer ranges overall when we have multiple functions in the same CU adjacent to each other in the object file. Also remove all of the earlier hacks around this functionality for function sections etc. Also update all of the testcases to take into account the merging functionality. llvm-svn: 204277
* R600/SI: Add unused LDS 2 form instructions.Matt Arsenault2014-03-192-1/+35
| | | | llvm-svn: 204275
* R600/SI: Add support for 64-bit LDS writesMatt Arsenault2014-03-192-1/+79
| | | | llvm-svn: 204274
* R600/SI: Add support for 64-bit LDS loads.Matt Arsenault2014-03-192-0/+85
| | | | | | | v2: -Use correct opcode for DS_READ_64 llvm-svn: 204273
* R600/SI: Match i16 immediate offset of LDS instructions.Matt Arsenault2014-03-196-31/+114
| | | | llvm-svn: 204272
* R600/SI: Fix test checking wrong instruction operand.Matt Arsenault2014-03-191-1/+1
| | | | | | The source and destination happen to be the same register. llvm-svn: 204271
* R600/SI: Don't display the GDS bit.Matt Arsenault2014-03-196-14/+14
| | | | | | | | It isn't actually used now, and probably never will be, plus it makes tests less annoying. I also think SC prints GDS instructions as a separate instruction name. llvm-svn: 204270
* R600/SI: Merge offset0 and offset1 fields for single address DS instructions v2Matt Arsenault2014-03-192-18/+27
| | | | | | | | | Also remove unused data fields from the DS_Load_Helper class. v2: - Merge fields for DS_WRITE llvm-svn: 204269
* COFF: Fix a typoDavid Majnemer2014-03-191-1/+1
| | | | | | Introduced when I rebased my changes to use isReservedSectionNumber. llvm-svn: 204260
* Fix comment (PR19188)Hans Wennborg2014-03-191-1/+1
| | | | llvm-svn: 204256
* [mips] 80-column.Matheus Almeida2014-03-191-8/+12
| | | | llvm-svn: 204252
* [mips] Making sure that a '.set noreorder' directive is correctly parsedMatheus Almeida2014-03-191-0/+5
| | | | | | and emitted and that no NOPs are emitted in a 'noreorder section'. llvm-svn: 204250
* Set debug info for instructions inserted in SplitBlockAndInsertIfThen.Evgeniy Stepanov2014-03-193-11/+54
| | | | llvm-svn: 204230
* Prune includes in X86 target.Craig Topper2014-03-1915-32/+18
| | | | llvm-svn: 204216
* Object: Provide a richer means of describing auxiliary symbolsDavid Majnemer2014-03-1914-54/+457
| | | | | | | | | | | | | | | | The current state of affairs has auxiliary symbols described as a big bag of bytes. This is less than satisfying, it detracts from the YAML file as being human readable. Instead, allow for symbols to optionally contain their auxiliary data. This allows us to have a much higher level way of describing things like weak symbols, function definitions and section definitions. This depends on D3105. Differential Revision: http://llvm-reviews.chandlerc.com/D3092 llvm-svn: 204214
* Object: Move auxiliary symbol definitions from llvm-readobjDavid Majnemer2014-03-192-26/+30
| | | | | | | | | | | | Summary: These definitions are useful to other aspects of LLVM, move them out. Reviewers: rafael, nrieck, ruiu CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3105 llvm-svn: 204213
* Object: Clean up COFF.hDavid Majnemer2014-03-191-37/+32
| | | | | | | | The file violated the coding standard. Make it conform. No functionality change. llvm-svn: 204212
* llvm-profdata: Make "merge" into a subcommand.Justin Bogner2014-03-193-30/+65
| | | | | | We'll be adding a few more subcommands in the near future. llvm-svn: 204211
* llvm-profdata: Update to use the naive text format with function hashJustin Bogner2014-03-1916-126/+107
| | | | | | This also uses line_iterator to simplify the parsing logic. llvm-svn: 204210
* Make the test harder by using a non-zero offset.Rafael Espindola2014-03-191-7/+7
| | | | llvm-svn: 204205
* When destroying a StringMap, just iterate over the map and destroy the ↵Pete Cooper2014-03-191-1/+11
| | | | | | contained elements. Don't reset them back to 0 as their values aren't needed any more. This results in ~StringMap() being mostly empty for POD types in BumpPtrAllocators llvm-svn: 204204
* Revert "Add back r203962, r204028 and r204059."Rafael Espindola2014-03-197-411/+39
| | | | | | This reverts commit r204178. llvm-svn: 204203
* DebugInfo: Use the comp_dir of the referencing type units when building ↵David Blaikie2014-03-194-15/+31
| | | | | | | | | | | | debug_line.dwo This isn't a complete fix - it falls back to non-comp_dir when multiple compile units are in play. Adding a map of comp_dir to table is part of the more general solution, but I gave up (in the short term) when I realized I'd also have to calculate the size of each type unit so as to produce correct DW_AT_stmt_list attributes. llvm-svn: 204202
* Expose "noduplicate" attribute as a property for intrinsics.Eli Bendersky2014-03-187-6/+109
| | | | | | | | | | | | The "noduplicate" function attribute exists to prevent certain optimizations from duplicating calls to the function. This is important on platforms where certain function call duplications are unsafe (for example execution barriers for CUDA and OpenCL). This patch makes it possible to specify intrinsics as "noduplicate" and translates that to the appropriate function attribute. llvm-svn: 204200
* Object/COFF: Add function to check if section number is reserved one.Rui Ueyama2014-03-187-11/+34
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D3103 llvm-svn: 204199
* Move yet another test that requires ARM to an ARM test directory.NAKAMURA Takumi2014-03-181-0/+0
| | | | llvm-svn: 204198
* Move tests that require ARM to an ARM test directory.Jim Grosbach2014-03-182-0/+0
| | | | llvm-svn: 204197
* Fix use_iterator crash in ObjCArc from r203364Duncan P. N. Exon Smith2014-03-182-2/+33
| | | | | | | | | | The use_iterator redesign in r203364 introduced an increment past the end of a range in -objc-arc-contract. Added an explicit check for the end of the range. <rdar://problem/16333235> llvm-svn: 204195
* C++ style commentsJim Grosbach2014-03-181-4/+4
| | | | llvm-svn: 204194
OpenPOWER on IntegriCloud