summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Link .ARM.exidx with corresponding text section.Logan Chien2013-02-052-0/+65
| | | | | | | | The sh_link in the ELF section header of .ARM.exidx should be filled with the section index of the corresponding text section. llvm-svn: 174372
* ARM cost model: Cost for scalar integer casts and floating point conversionsArnold Schwaighofer2013-02-052-7/+266
| | | | | | Also adds some costs for vector integer float conversions. llvm-svn: 174371
* Fix formatting in AArch64 backend.Tim Northover2013-02-0524-841/+577
| | | | | | | | | | | This should fix three purely whitespace issues: + 80 column violations. + Tab characters. + TableGen brace placement. No functional changes. llvm-svn: 174370
* Remove cyclic dependency in AArch64 librariesTim Northover2013-02-0523-814/+874
| | | | | | | | This moves the bit twiddling and string fiddling functions required by other parts of the backend into a separate library. Previously they resided in AArch64Desc, which created a circular dependency between various components. llvm-svn: 174369
* This patch that sets the Mips ELF header flag for Jack Carter2013-02-056-2/+22
| | | | | | | | MicroMips architectures. Contributer: Zoran Jovanovic llvm-svn: 174360
* This patch that sets the EmitAlias flag in td files Jack Carter2013-02-058-49/+72
| | | | | | | | | | | | | and enables the instruction printer to print aliased instructions. Due to usage of RegisterOperands a change in common code (utils/TableGen/AsmWriterEmitter.cpp) is required to get the correct register value if it is a RegisterOperand. Contributer: Vladimir Medic llvm-svn: 174358
* [Support][ErrorOr] Add support for convertable types.Michael J. Spencer2013-02-052-3/+16
| | | | llvm-svn: 174357
* Add target-dependent versions of addAttribute/removeAttribute to AttrBuilder.Bill Wendling2013-02-052-1/+21
| | | | llvm-svn: 174356
* Changed in comment cxx -> C++. Thanks Richard Smith!.Michael Gottesman2013-02-051-2/+2
| | | | llvm-svn: 174355
* This patch changes a static_cast to dyn_castJack Carter2013-02-053-3/+8
| | | | | | | | for MipsELFStreamer objects. Contributer: Jack Carter llvm-svn: 174354
* Construct a skeleton cu for each compile unit in the module, not justEric Christopher2013-02-051-5/+8
| | | | | | for the first compile unit. llvm-svn: 174352
* Add support for testing the output of the abbrev table for theEric Christopher2013-02-051-0/+10
| | | | | | skeleton CU as part of the DWARF5 split dwarf proposal. llvm-svn: 174351
* Add support for emitting a stub DW_AT_GNU_dwo_id as part of theEric Christopher2013-02-052-2/+11
| | | | | | DWARF5 split dwarf proposal. llvm-svn: 174350
* Use the do-while(0) thing for this #define.Bill Wendling2013-02-051-8/+10
| | | | llvm-svn: 174347
* Print error messages from MemoryBuffer::getFile() in llvm-symbolizerAlexey Samsonov2013-02-051-1/+2
| | | | llvm-svn: 174346
* Add code to GlobalVariable.h so that global variables marked asMichael Gottesman2013-02-052-2/+44
| | | | | | | | | externally_initialized return false for hasDefiniteInitializer and hasUniqueInitializer. rdar://12580965. llvm-svn: 174345
* When the target-independent DAGCombiner inferred a higher alignment for a load,Owen Anderson2013-02-053-6/+10
| | | | | | | | | | | it would replace the load with one with the higher alignment. However, it did not place the new load in the worklist, which prevented later DAG combines in the same phase (for example, target-specific combines) from ever seeing it. This patch corrects that oversight, and updates some tests whose output changed due to slightly different DAGCombine outputs. llvm-svn: 174343
* Added LLVM Asm/Bitcode Reader/Writer support for new IR keyword ↵Michael Gottesman2013-02-057-5/+25
| | | | | | externally_initialized. llvm-svn: 174340
* [Stack Alignment] emit warning instead of a hard errorManman Ren2013-02-042-5/+5
| | | | | | | | | | | Per discussion in rdar://13127907, we should emit a hard error only if people write code where the requested alignment is larger than achievable and assumes the low bits are zeros. A warning should be good enough when we are not sure if the source code assumes the low bits are zeros. rdar://13127907 llvm-svn: 174336
* Initial cleanups of the param-attribute code in the bitcode reader/writer.Bill Wendling2013-02-045-66/+59
| | | | | | | | | Rename the PARAMATTR_CODE_ENTRY to PARAMATTR_CODE_ENTRY_OLD. It will be replaced by another encoding. Keep around the current LLVM attribute encoder/decoder code, but move it to the bitcode directories so that no one's tempted to use them. llvm-svn: 174335
* Replace global std::string with const char[]Alexey Samsonov2013-02-042-2/+2
| | | | llvm-svn: 174332
* Hexagon: Add V4 combine instructions and some more Def Pats for V2.Jyotsna Verma2013-02-045-9/+191
| | | | llvm-svn: 174331
* Disable a couple more vector splat optimizations on PPC.Benjamin Kramer2013-02-042-3/+45
| | | | | | | I didn't see those because the test case used "not grep". FileCheck the test and XFAIL it, preserving the old optimization, so this can be fixed eventually. llvm-svn: 174330
* Fix some abuses of StringRefTim Northover2013-02-041-3/+4
| | | | | | We were taking a StringRef to a temporary result, which can go horribly wrong. llvm-svn: 174328
* X86: Open up some opportunities for constant folding by postponing shift ↵Benjamin Kramer2013-02-042-4/+12
| | | | | | | | lowering. Fixes PR15141. llvm-svn: 174327
* X86: Simplify code. No functionality change.Benjamin Kramer2013-02-041-19/+5
| | | | llvm-svn: 174326
* SelectionDAG: Teach FoldConstantArithmetic how to deal with vectors.Benjamin Kramer2013-02-047-55/+129
| | | | | | | | | | | | | | | | | This required disabling a PowerPC optimization that did the following: input: x = BUILD_VECTOR <i32 16, i32 16, i32 16, i32 16> lowered to: tmp = BUILD_VECTOR <i32 8, i32 8, i32 8, i32 8> x = ADD tmp, tmp The add now gets folded immediately and we're back at the BUILD_VECTOR we started from. I don't see a way to fix this currently so I left it disabled for now. Fix some trivially foldable X86 tests too. llvm-svn: 174325
* Give explicit suffix to integer constant over 32-bits.Tim Northover2013-02-041-1/+1
| | | | llvm-svn: 174324
* Enable AArch64 as a target built by default.Tim Northover2013-02-043-2/+3
| | | | llvm-svn: 174322
* Update debugging test for change in expected metadata.Tim Northover2013-02-041-6/+16
| | | | llvm-svn: 174321
* Coding standards: don't use ``inline`` when defining a function in a classDmitri Gribenko2013-02-041-0/+28
| | | | | | | | | | | | | | | definition Current practice is not to use 'inline' in: class Foo { public: inline void bar() { // ... } }; llvm-svn: 174317
* Pass CPPFLAGS/CFLAGS/CXXFLAGS from the environment of configure toPatrik Hagglund2013-02-044-5/+29
| | | | | | | | | | | | | | | | | Makefile.config. This is implied at the bottom of the help text of configure (besides CC/CXX/LDFLAGS, already passed to Makefile.config). For backward compatibility, the values of CFLAGS and CXXFLAGS defaults to empty, overriding the default values provided by autoconf (for example, '-g -O2' when CC=gcc'). $(CPP) is not used by our makefiles. Therefore, the value of CPP is not passed to Makefile.config, despite beeing mentioned by 'configure --help'. llvm-svn: 174313
* More MSan/ASan annotations.Evgeniy Stepanov2013-02-046-9/+24
| | | | | | | | | | | | | | This change lets us bootstrap LLVM/Clang under ASan and MSan. It contains fixes for 2 issues: - X86JIT reads return address from stack, which MSan does not know is initialized. - bugpoint tests run binaries with RLIMIT_AS. This does not work with certain Sanitizers. We are no longer including config.h in Compiler.h with this change. llvm-svn: 174306
* [DebugInfo] remove more node indirection (this time from the subprogram's ↵David Blaikie2013-02-044-27/+10
| | | | | | variable lists) llvm-svn: 174305
* PR15149: crash when printing debug info metadata containing an invalid ↵David Blaikie2013-02-041-2/+2
| | | | | | language spec llvm-svn: 174304
* Removed reference to LLVM as a project (since in LangRef it is used solely ↵Michael Gottesman2013-02-041-1/+1
| | | | | | as a reference to the IR). Thanks silvas! llvm-svn: 174301
* ARM cost model: Penalize insertelement into D subregistersArnold Schwaighofer2013-02-043-0/+65
| | | | | | | | | | | Swift has a renaming dependency if we load into D subregisters. We don't have a way of distinguishing between insertelement operations of values from loads and other values. Therefore, we are pessimistic for now (The performance problem showed up in example 14 of gcc-loops). radar://13096933 llvm-svn: 174300
* Turn off uninitialized-use warnings for gcc in cmake buildEdwin Vane2013-02-042-0/+24
| | | | | | | | | | | | Added support to the cmake build to turn off uninitialized use warnings for gcc. This cleans the build up somewhat. Used logic simpler than found in autoconf by making use of the fact that although gcc won't complain about unsupported -Wno-* flags it *will* complain about unsupported -W flags. Reviewers: gribozavr, doug.gregor, chandlerc llvm-svn: 174299
* PPCDarwinAsmPrinter::EmitStartOfAsmFile(): Add checking range in ↵NAKAMURA Takumi2013-02-041-1/+4
| | | | | | CPUDirectives[]. llvm-svn: 174298
* PPCDarwinAsmPrinter::EmitStartOfAsmFile(): Add possible elements in ↵NAKAMURA Takumi2013-02-041-0/+5
| | | | | | CPUDirectives[]. llvm-svn: 174297
* Added instance variable/initializers/getter/setters for new keyword ↵Michael Gottesman2013-02-032-13/+30
| | | | | | | | | | | | | | externally initialized to GlobalVariable. No *TRUE* functionality change. I am going to add in the actual test cases with the actual functionality changes in a later patch because I want to include some test cases. To be clear when I say no *TRUE* functionality change I mean that this patch (like it says in the title) only contains getters/setters and sets up a default initial value of the instance variable to false so that this patch does not affect any other uses of Global Variable.h. llvm-svn: 174295
* Recognize aarch64 for --enable-targets as advertised.Joerg Sonnenberger2013-02-032-0/+2
| | | | llvm-svn: 174288
* use GEP::accumulateConstantOffset() to replace custom written code to ↵Nuno Lopes2013-02-031-27/+2
| | | | | | compute GEP offset llvm-svn: 174279
* [Object][Archive] Improve performance.Michael J. Spencer2013-02-033-104/+106
| | | | | | | | | | | | Improve performance of iterating over children and accessing the member file buffer by caching the file size and moving code out to the header. This also makes getBuffer return a StringRef instead of a MemoryBuffer. Both fixing a memory leak and removing a malloc. This takes getBuffer from ~10% of the time in lld to unmeasurable. llvm-svn: 174272
* [Support] Add LLVM_IS_UNALIGNED_ACCESS_FAST.Michael J. Spencer2013-02-032-4/+29
| | | | llvm-svn: 174271
* Added new Global Variable marker ``externally_initialized'' to LangRef.Michael Gottesman2013-02-031-1/+2
| | | | llvm-svn: 174270
* Added clarification paragraph to LangRef's documentation ofMichael Gottesman2013-02-031-0/+7
| | | | | | | | | | | | | | | GlobalVariable about LLVM's assumptions vis-a-vis Global Variable initial values and Global Variable initializers. This is in preparation for adding the new keyword externally_initialized. Specifically, the patch explains how LLVM optimizes global initializers by assumign that global variables defined within the module are not modified from their initial values before the start of the global initializer. llvm-svn: 174269
* Remove the (apparently) unnecessary debug info metadata indirection.David Blaikie2013-02-0245-221/+110
| | | | | | | | | | The main lists of debug info metadata attached to the compile_unit had an extra layer of metadata nodes they went through for no apparent reason. This patch removes that (& still passes just as much of the GDB 7.5 test suite). If anyone can show evidence as to why these extra metadata nodes are there I'm open to reverting this patch & documenting why they're there. llvm-svn: 174266
* Start static relocation implementation for mips16.Reed Kotler2013-02-023-1/+37
| | | | | | This checkin makes hello world work. llvm-svn: 174264
* Removing ssp and uwtable from the testcaseManman Ren2013-02-021-1/+1
| | | | llvm-svn: 174259
OpenPOWER on IntegriCloud