summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fix PR5500: clang fails to parse inline asm with :: in C++ mode Chris Lattner2009-12-202-7/+28
| | | | llvm-svn: 91802
* refactor asm stmt parsing to avoid nesting as much, andChris Lattner2009-12-201-39/+38
| | | | | | pull ':' eating out of ParseAsmOperandsOpt. llvm-svn: 91801
* a really old testcase I apparently forgot to 'svn add'.Chris Lattner2009-12-201-0/+33
| | | | llvm-svn: 91800
* Rework the way pointer types are handled by the RTTI builder. We now get the ↵Anders Carlsson2009-12-203-107/+383
| | | | | | right linkage for indirect pointers to incomplete structs. llvm-svn: 91799
* Make sure we instantiate the destructor for variables initialized byEli Friedman2009-12-202-0/+20
| | | | | | assignment. llvm-svn: 91798
* Fix review comment; no visible change.Eli Friedman2009-12-201-28/+29
| | | | llvm-svn: 91797
* Switch default-initialization of variables of class type (or array thereof) ↵Douglas Gregor2009-12-2011-39/+30
| | | | | | over to InitializationSequence. I could swear that this fixes a PR somewhere, but I couldn't figure out which one llvm-svn: 91796
* Revert accidental commitDouglas Gregor2009-12-201-11/+20
| | | | llvm-svn: 91795
* Fix CMake build on windows, from Cedric VenetDouglas Gregor2009-12-202-24/+11
| | | | llvm-svn: 91794
* Don't inject the class name until that magical lbrace.John McCall2009-12-205-24/+51
| | | | | | | | | | | | | | | | Because of the rules of base-class lookup* and the restrictions on typedefs, it was actually impossible for this to cause any problems more serious than the spurious acceptance of template <class T> class A : B<A> { ... }; instead of template <class T> class A : B<A<T> > { ... }; but I'm sure we can all agree that that is a very important restriction which is well worth making another Parser->Sema call for. (*) n.b. clang++ does not implement these rules correctly; we are not ignoring non-type names llvm-svn: 91792
* Test the lookup I wasn't sure would be done properly after the last patch.John McCall2009-12-201-5/+25
| | | | | | | | | Clang reasonably adds all the base specifiers in one pass; this is now required for correctness to prevent lookup from going mad. But this has the advantage of establishing the correct context when looking up base specifiers, which will be important for access control. llvm-svn: 91791
* Fixed use of phi param in SlotIndex constructors.Lang Hames2009-12-191-2/+2
| | | | llvm-svn: 91790
* Parse base specifiers within the scope of the class. This is possibly notJohn McCall2009-12-193-12/+29
| | | | | | quite right; I'll come back to it later. It does fix PR 5741. llvm-svn: 91789
* fix an overly conservative caching issue that caused memdep toChris Lattner2009-12-192-32/+40
| | | | | | | | cache a pointer as being unavailable due to phi trans in the wrong place. This would cause later queries to fail even when they didn't involve phi trans. llvm-svn: 91787
* CMake: Update lib deps.Daniel Dunbar2009-12-191-9/+9
| | | | llvm-svn: 91786
* comments shouldn't go in the AST, and we already make it easyChris Lattner2009-12-191-1/+1
| | | | | | to go from a decl to the doc comments for it. llvm-svn: 91785
* .llx is no more.Chris Lattner2009-12-192-2/+1
| | | | llvm-svn: 91784
* fix inconsistent use of tabsChris Lattner2009-12-191-20/+20
| | | | llvm-svn: 91783
* Remove another ';' after method definition.Daniel Dunbar2009-12-191-1/+1
| | | | llvm-svn: 91781
* Remove unused variable (noticed by clang++).Daniel Dunbar2009-12-191-1/+0
| | | | llvm-svn: 91780
* Remove ';' after method definition. Noticed by clang++, which one would thinkDaniel Dunbar2009-12-1916-34/+34
| | | | | | | would have a higher respect for its own code. This is getting old, is this warning really adding value? llvm-svn: 91779
* #if 0 out X86 disassembler for now, it is breaking the build in multiple places.Daniel Dunbar2009-12-192-0/+13
| | | | llvm-svn: 91778
* Emit direction operand in binary insns that stores in memory.Sanjiv Gupta2009-12-192-1/+14
| | | | llvm-svn: 91777
* Adding a bunch of options to the mcc16 driver.Sanjiv Gupta2009-12-191-44/+55
| | | | llvm-svn: 91776
* rename dprintf to dbgpritnf, in order to fix build with glibc (which already ↵Nuno Lopes2009-12-191-29/+29
| | | | | | defines dprintf in stdio.h llvm-svn: 91775
* fix build and while at it remove a redudant includeNuno Lopes2009-12-192-2/+1
| | | | llvm-svn: 91774
* Test cases for changes done in 91768.Sanjiv Gupta2009-12-192-0/+21
| | | | llvm-svn: 91773
* Kill off PreDeclaratorDC.John McCall2009-12-192-6/+2
| | | | llvm-svn: 91772
* Refactor to remove more dependencies on PreDeclaratorDC. I seem to have madeJohn McCall2009-12-198-84/+99
| | | | | | | the redeclaration problems in the [temp.explicit]p3 testcase worse, but I can live with that; they'll need to be fixed more holistically anyhow. llvm-svn: 91771
* Don't use EnterDeclaratorContext when rebuilding a type in the currentJohn McCall2009-12-191-2/+5
| | | | | | instantiation, since we're not using a Scope object for that anyway. llvm-svn: 91770
* Just push a new scope when parsing an out-of-line variable definition.John McCall2009-12-195-37/+69
| | | | | | | Magically fixes all the terrible lookup problems associated with not pushing a new scope. Resolves an ancient xfail and an LLVM misparse. llvm-svn: 91769
* 1. In indirect load/store insns , the name of fsr should be emitted as INDF.Sanjiv Gupta2009-12-191-5/+13
| | | | | | 2. include standard asmbly headers in generated asmbly. llvm-svn: 91768
* Initialization improvements: addition of string initialization and a fewEli Friedman2009-12-1922-67/+88
| | | | | | | | small bug fixes in SemaInit, switch over SemaDecl to use it more often, and change a bunch of diagnostics which are different with the new initialization code. llvm-svn: 91767
* A CXXExprWithTemporaries expression is an lvalue if its subexpressionDouglas Gregor2009-12-192-0/+29
| | | | | | is an lvalue. Fixes PR5787. llvm-svn: 91765
* Fix a bunch of little errors that Clang complains about when its being pedanticDouglas Gregor2009-12-1910-24/+24
| | | | llvm-svn: 91764
* fix PR5827 by disabling the phi slicing transformation in a caseChris Lattner2009-12-192-2/+77
| | | | | | | | where instcombine would have to split a critical edge due to a phi node of an invoke. Since instcombine can't change the CFG, it has to bail out from doing the transformation. llvm-svn: 91763
* Update my SROA changes in response to review.Bob Wilson2009-12-191-33/+38
| | | | | | | | | | * change FindElementAndOffset to return a uint64_t instead of unsigned, and to identify the type to be used for that result in a GEP instruction. * move "isa<ConstantInt>" to be first in conditional. * replace some dyn_casts with casts. * add a comment about handling mem intrinsics. llvm-svn: 91762
* Fix tyop.Anders Carlsson2009-12-191-1/+1
| | | | llvm-svn: 91761
* Some small Builtins.def improvements.Eli Friedman2009-12-191-21/+24
| | | | llvm-svn: 91758
* More bzero -> memset that I missed.Daniel Dunbar2009-12-192-13/+13
| | | | llvm-svn: 91757
* Add missing newlines at EOF (for clang++).Daniel Dunbar2009-12-192-2/+2
| | | | llvm-svn: 91756
* ARM: Use front-end specific target features "soft-float" and ↵Daniel Dunbar2009-12-192-5/+55
| | | | | | "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now. llvm-svn: 91755
* Use memset instead of bzero, its more portable.Daniel Dunbar2009-12-191-2/+2
| | | | llvm-svn: 91754
* Targets: Allow CreateTargetInfo to mutate the target features.Daniel Dunbar2009-12-192-10/+15
| | | | | | | - In particular, it can claim features for itself instead of always passing them on to LLVM. - This allows using the target features as a generic mechanism for passing target specific options to the TargetInfo instance, which may need them for initializing preprocessor defines, etc. llvm-svn: 91753
* Remove spurious semicolon. Thanks, ClangDouglas Gregor2009-12-191-1/+1
| | | | llvm-svn: 91752
* Use the FunctionDecl's result type to know exactly if it returns a reference.Zhongxing Xu2009-12-192-2/+11
| | | | llvm-svn: 91751
* Switch more of Sema::CheckInitializerTypes over toDouglas Gregor2009-12-1916-118/+106
| | | | | | | | | | InitializationSequence. Specially, switch initialization of a C++ class type (either copy- or direct-initialization). Also, make sure that we create an elidable copy-construction when performing copy initialization of a C++ class variable. Fixes PR5826. llvm-svn: 91750
* Table-driven disassembler for the X86 architecture (16-, 32-, and 64-bit Sean Callanan2009-12-1918-12/+5255
| | | | | | | | | | | | | | | | | | | | incarnations), integrated into the MC framework. The disassembler is table-driven, using a custom TableGen backend to generate hierarchical tables optimized for fast decode. The disassembler consumes MemoryObjects and produces arrays of MCInsts, adhering to the abstract base class MCDisassembler (llvm/MC/MCDisassembler.h). The disassembler is documented in detail in - lib/Target/X86/Disassembler/X86Disassembler.cpp (disassembler runtime) - utils/TableGen/DisassemblerEmitter.cpp (table emitter) You can test the disassembler by running llvm-mc -disassemble for i386 or x86_64 targets. Please let me know if you encounter any problems with it. llvm-svn: 91749
* Correctly initialize the PrimaryBaseInfo if a base is null. Fixes PR5832.Anders Carlsson2009-12-192-1/+9
| | | | llvm-svn: 91748
* Unresolved implicit member accesses are dependent if the object type is ↵John McCall2009-12-192-0/+15
| | | | | | | | | | dependent. Avoids an assertion arising during object-argument initialization in overload resolution. In theory we can resolve this at definition time if the class hierarchy for the member is fully known. llvm-svn: 91747
OpenPOWER on IntegriCloud