- Apr 22, 2014
-
-
David Blaikie authored
llvm-svn: 206821
-
David Blaikie authored
Removes some extra manual dynamic memory allocation/management. It does get a bit quirky having to make State's members mutable and pointers/references to const rather than non-const, but that's a necessary workaround to dealing with the std::set elements. llvm-svn: 206807
-
Chandler Carruth authored
parts of Clang. I don't really have any opinion about whether using that macro is good or bad, but its odd that this is the only one, and Eric seemed happy with just nuking it for now. llvm-svn: 206806
-
Marshall Clow authored
llvm-svn: 206805
-
Reid Kleckner authored
I'm pretty sure I was referencing destroyed temporaries here. I'm open to suggestions on how to write this better. llvm-svn: 206804
-
Yi Jiang authored
llvm-svn: 206803
-
Jim Grosbach authored
The comment claimed that the register class information wasn't available in the assembly parser, but that's not really true. It's just annoying to get to. Replace the helper functions with references to the auto-generated information. llvm-svn: 206802
-
Rafael Espindola authored
With a constant mask a vpermil* is just a shufflevector. This patch implements that simplification. This allows us to produce denser code. It should also allow more folding down the line. llvm-svn: 206801
-
David Blaikie authored
llvm-svn: 206800
-
Jim Grosbach authored
Make sure only general purpose registers are valid for offset regs and that 32-bit regs are only valid for sxtw and uxtw extends. llvm-svn: 206799
-
Jim Grosbach authored
No functional change. llvm-svn: 206798
-
Jim Grosbach authored
The canonical form for the extended addressing mode (e.g., "[x1, w2, uxtw #3]" is for the MCInst to have the second register be the full 64-bit GPR64 register class. The instruction printer cleans up the output for display to show the 32-bit register instead, per the specification. This simplifies 205893 now that the aliasing is handled in the printer in 206495 so that the codegen path and the disassembler path give the same MCInst form. llvm-svn: 206797
-
David Blaikie authored
llvm-svn: 206796
-
Hal Finkel authored
The rationale for this artificial dependency seems to have been lost to the ravages of time, it is covered by no regression tests, and has no impact on test-suite performance numbers on either x86 or PPC. For the test suite, on both x86 and PPC, I ran the test suite 10 times (both as a baseline and with this change), and found no statistically-significant changes. For PPC, I used a P7 box. For x86, I used an Intel Xeon E5430. Both with -O3 -mcpu=native. This was discussed on-list back in January, but I've not had a chance to run the performance tests until today. llvm-svn: 206795
-
David Blaikie authored
This avoids copying the container by simply deleting until empty. While I'd rather move to a stricter ownership semantic (unique_ptr), SmallPtrSet can't cope with unique_ptr and the ownership semantics here are a bit incestuous (Module sort of owns itself, but sort of doesn't (if the LLVMContext is destroyed before the Module, then it deregisters itself from the context... )). Ideally Modules would be given to the context, or possibly an emplace-like function to construct them there. Modules then shouldn't be destroyed by LLVM API clients, but by interacting with the owner (LLVMContext) directly (but even then, passing a Module* to LLVMContext doesn't provide an easy way to destroy the Module, since the set would be over unique_ptrs and you'd need a heterogenous lookup function which SmallPtrSet doesn't have either). llvm-svn: 206794
-
Rafael Espindola authored
With this MC is able to handle _GLOBAL_OFFSET_TABLE_ in 64 bit mode, which is needed for medium and large code models. This fixes pr19470. llvm-svn: 206793
-
Rafael Espindola authored
No functionality change, it will just make the next patch easier to read. llvm-svn: 206792
-
Reid Kleckner authored
This is for compatibility with GCC. Reviewers: asl Differential Revision: http://reviews.llvm.org/D3444 llvm-svn: 206791
-
David Blaikie authored
llvm-svn: 206790
-
Reid Kleckner authored
The -tailcallelim pass should be checking if byval or inalloca args can be captured before marking calls as tail calls. This was the real root cause of PR7272. With a better fix in place, revert the inliner change from r105255. The test case it introduced still passes and has been moved to test/Transforms/Inline/byval-tail-call.ll. Reviewers: chandlerc Differential Revision: http://reviews.llvm.org/D3403 llvm-svn: 206789
-
David Blaikie authored
llvm-svn: 206788
-
Ed Maste authored
llvm-svn: 206787
-
David Blaikie authored
llvm-svn: 206786
-
David Blaikie authored
llvm-svn: 206785
-
David Blaikie authored
llvm-svn: 206784
-
Timur Iskhodzhanov authored
Intentionally duplicate base class definitions per test, so it's easier to copy tests while debugging failures. llvm-svn: 206782
-
Fariborz Jahanian authored
objects to fund root class's instance methods. // rdar://16650575 llvm-svn: 206781
-
David Blaikie authored
Requires switching some vectors to lists to maintain pointer validity. These could be changed to forward_lists (singly linked) with a bit more work - I've left comments to that effect. llvm-svn: 206780
-
Filipe Cabecinhas authored
Summary: The INSERTPS pattern fragment was called insrtps (mising 'e'), which would make it harder to grep for the patterns related to this instruction. Renaming it to use the proper instruction name. Reviewers: nadav CC: llvm-commits Differential Revision: http://reviews.llvm.org/D3443 llvm-svn: 206779
-
Chandler Carruth authored
cpp file rather than in the header and then again in the cpp file. llvm-svn: 206778
-
Chandler Carruth authored
header files and into the cpp files. These files will require more touches as the header files actually use DEBUG(). Eventually, I'll have to introduce a matched #define and #undef of DEBUG_TYPE for the header files, but that comes as step N of many to clean all of this up. llvm-svn: 206777
-
Ben Langmuir authored
If the module is unavailable because of a missing header, don't diagnose a "module * {}" declaration for having a missing umbrella. llvm-svn: 206776 -
Chandler Carruth authored
various .cpp files. This macro is inherently non-modular, and it wasn't even needed in this header file. llvm-svn: 206775
-
Yi Jiang authored
llvm-svn: 206774
-
Jim Grosbach authored
Tentative revert for http://lab.llvm.org:8011/builders/llvm-mips-linux/builds/8305. This reverts commit c2a58efff07294fca724f89500538f2ddbcd12ff. llvm-svn: 206773
-
Matt Arsenault authored
llvm-svn: 206772
-
Duncan P. N. Exon Smith authored
Change `PositiveFloat` to `UnsignedFloat`, and fix some of the comments to indicate that it's disappearing eventually. llvm-svn: 206771
-
Marshall Clow authored
llvm-svn: 206770
-
Jim Grosbach authored
llvm-svn: 206769
-
Jim Grosbach authored
llvm-svn: 206768
-