summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement template instantiation for the prefix unary operators. AsDouglas Gregor2009-03-138-157/+372
| | | | | | | | always, refactored the existing logic to tease apart the parser action and the semantic analysis shared by the parser and template instantiation. llvm-svn: 66987
* Driver: Add types::{isAcceptedByClang,isCXX} predicates.Daniel Dunbar2009-03-132-0/+37
| | | | llvm-svn: 66986
* Driver: Add simple Job classes, simple wrappers for information aboutDaniel Dunbar2009-03-132-0/+127
| | | | | | what processes to execute during a compilation. llvm-svn: 66985
* Do up codegen for function static data and externs in functions in blockMike Stump2009-03-133-3/+32
| | | | | | literals. llvm-svn: 66984
* Pass more sane arguments to ActOnStaticAssertDeclarationAnders Carlsson2009-03-132-11/+5
| | | | llvm-svn: 66983
* Driver: Action vtables were still hungry.Daniel Dunbar2009-03-131-1/+1
| | | | llvm-svn: 66980
* BlockDecl::Destroy now deallocates BlockDecl's array of ParmVarDecl*.Ted Kremenek2009-03-131-1/+2
| | | | llvm-svn: 66979
* Driver: Provide food and shelter for Action vtables.Daniel Dunbar2009-03-132-28/+55
| | | | llvm-svn: 66978
* Fix -strip-debug-declare to work when there areDale Johannesen2009-03-131-19/+17
| | | | | | llvm.global.variable's but no llvm.declare's. llvm-svn: 66977
* Fix PR3784: If the source of a phi comes from a bb ended with an invoke, ↵Evan Cheng2009-03-134-0/+117
| | | | | | | | make sure the copy is inserted before the try range (unless it's used as an input to the invoke, then insert it after the last use), not at the end of the bb. Also re-apply r66140 which was disabled as a workaround. llvm-svn: 66976
* Add (hidden) TableGen command option '-clang-component' which specifies theTed Kremenek2009-03-133-11/+42
| | | | | | | | | component's warnings to process for '-gen-clang-diags-defs'. Also, when the component is specified, generate a '#if' prologue at the top of the generated .def file (to match the current files). llvm-svn: 66975
* Force triple for a couple test cases.Daniel Dunbar2009-03-132-3/+3
| | | | llvm-svn: 66974
* wire up a new -fno-builtin option, make it control things like simplifylibcalls,Chris Lattner2009-03-135-9/+17
| | | | | | etc and make freestanding imply it. llvm-svn: 66972
* Add initial implementation of a TableGen backend for converting Clang-warningsTed Kremenek2009-03-134-2/+127
| | | | | | | tablegen files to the original .def preprocessor include files. This is my first TableGen backend; I don't claim that it is awesome. llvm-svn: 66971
* Further constify Record::isSubClassOf.Ted Kremenek2009-03-131-1/+1
| | | | llvm-svn: 66970
* Include component warning TableGen files in Diagnostic.td.Ted Kremenek2009-03-131-0/+10
| | | | llvm-svn: 66969
* Driver: Sprinkle some consts in, stub out BuildJobs method.Daniel Dunbar2009-03-132-17/+24
| | | | llvm-svn: 66968
* Update test.Daniel Dunbar2009-03-131-1/+1
| | | | llvm-svn: 66967
* add a testcase for recursion through blocks pointers, rdar://6676764.Chris Lattner2009-03-131-0/+17
| | | | llvm-svn: 66965
* Fix test case. Now, llvm-gcc emits debug info for artificiaal variable ↵Devang Patel2009-03-131-4/+0
| | | | | | _comp_ctor. llvm-svn: 66963
* Fix a hashing bug in APInt. A certain pathological testcase (tooStuart Hastings2009-03-131-7/+85
| | | | | | | | | | | | large for the testsuite) took over six minutes to compile on my Mac. The patched LLVM-GCC compiles that testcase in three seconds (GCC takes less than one second). This hash function is more complex (about 35 instructions on x86) than what Chris wanted, but I expect it will be well-behaved with arbitrary inputs. Thank you to everyone who responded to my previous request for advice. llvm-svn: 66962
* fix PR3798 by ignoring all diagnostics generated while repreprocessing a ↵Chris Lattner2009-03-133-0/+32
| | | | | | file in rewrite macros. llvm-svn: 66961
* Fix escaping in asm string literals correctly by having tblgen unescape Chris Lattner2009-03-132-7/+16
| | | | | | them, then the asmprinter emitter reescape them. llvm-svn: 66958
* add a horrible hack to fix the build.Chris Lattner2009-03-131-0/+9
| | | | llvm-svn: 66957
* make Preprocessor::Diags be a pointer instead of a reference.Chris Lattner2009-03-132-6/+6
| | | | llvm-svn: 66955
* use accessor instead of poking ivar directlyChris Lattner2009-03-132-2/+3
| | | | llvm-svn: 66954
* Revert r66920. It was causing failures in the self-hosting buildbot (in releaseBill Wendling2009-03-1312-61/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mode). Running /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/dg.exp ... FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/crash-narrowfunctiontest.ll Failed with signal(SIGBUS) at line 1 while running: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/crash-narrowfunctiontest.ll -bugpoint-crashcalls -silence-passes > /dev/null 0 bugpoint 0x0035dd25 llvm::sys::SetInterruptFunction(void (*)()) + 85 1 bugpoint 0x0035e382 llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) + 706 2 libSystem.B.dylib 0x92f112bb _sigtramp + 43 3 libSystem.B.dylib 0xffffffff _sigtramp + 1829694831 4 bugpoint 0x00021d1c main + 92 5 bugpoint 0x00002106 start + 54 6 bugpoint 0x00000004 start + 18446744073709543220 Stack dump: 0. Program arguments: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/crash-narrowfunctiontest.ll -bugpoint-crashcalls -silence-passes FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/misopt-basictest.ll Failed with signal(SIGBUS) at line 1 while running: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/misopt-basictest.ll -dce -bugpoint-deletecalls -simplifycfg -silence-passes 0 bugpoint 0x0035dd25 llvm::sys::SetInterruptFunction(void (*)()) + 85 1 bugpoint 0x0035e382 llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) + 706 2 libSystem.B.dylib 0x92f112bb _sigtramp + 43 3 libSystem.B.dylib 0xffffffff _sigtramp + 1829694831 4 bugpoint 0x00021d1c main + 92 5 bugpoint 0x00002106 start + 54 6 bugpoint 0x00000006 start + 18446744073709543222 Stack dump: 0. Program arguments: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/misopt-basictest.ll -dce -bugpoint-deletecalls -simplifycfg -silence-passes FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/remove_arguments_test.ll Failed with signal(SIGBUS) at line 1 while running: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/remove_arguments_test.ll -bugpoint-crashcalls -silence-passes 0 bugpoint 0x0035dd25 llvm::sys::SetInterruptFunction(void (*)()) + 85 1 bugpoint 0x0035e382 llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) + 706 2 libSystem.B.dylib 0x92f112bb _sigtramp + 43 3 libSystem.B.dylib 0xffffffff _sigtramp + 1829694831 4 bugpoint 0x00021d1c main + 92 5 bugpoint 0x00002106 start + 54 Stack dump: 0. Program arguments: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/remove_arguments_test.ll -bugpoint-crashcalls -silence-passes --- Reverse-merging (from foreign repository) r66920 into '.': U include/llvm/Support/CallSite.h U include/llvm/Instructions.h U lib/Analysis/IPA/GlobalsModRef.cpp U lib/Analysis/IPA/Andersens.cpp U lib/Bitcode/Writer/BitcodeWriter.cpp U lib/VMCore/Instructions.cpp U lib/VMCore/Verifier.cpp U lib/VMCore/AsmWriter.cpp U lib/Transforms/Utils/LowerInvoke.cpp U lib/Transforms/Scalar/SimplifyCFGPass.cpp U lib/Transforms/IPO/PruneEH.cpp U lib/Transforms/IPO/DeadArgumentElimination.cpp llvm-svn: 66953
* Devious test-case involved overload resolution and ADL during template ↵Douglas Gregor2009-03-131-0/+52
| | | | | | instantiation. llvm-svn: 66951
* Driver: Desensitize test to location of input.Daniel Dunbar2009-03-131-8/+8
| | | | llvm-svn: 66950
* add support for a few simple escape characters in tblgen strings.Chris Lattner2009-03-132-1/+30
| | | | llvm-svn: 66949
* Implement template instantiation for several more kinds of expressions:Douglas Gregor2009-03-1313-62/+230
| | | | | | | | | | | | - C++ function casts, e.g., T(foo) - sizeof(), alignof() More importantly, this allows us to verify that we're performing overload resolution during template instantiation, with argument-dependent lookup and the "cached" results of name lookup from the template definition. llvm-svn: 66947
* Add ENABLE_COVERAGE, for building a +Coverage (gcov) configuration.Daniel Dunbar2009-03-131-11/+25
| | | | | | | | | | - Required some extra makefile tweaks to introduce a new flag var which only goes to compile/link tools but not the relink step, otherwise we get a copy of libgcov in the relinked .o files. - No configure magic for this. llvm-svn: 66945
* Fix typo.Ted Kremenek2009-03-131-4/+2
| | | | llvm-svn: 66944
* Add missing ';'.Ted Kremenek2009-03-131-6/+6
| | | | llvm-svn: 66943
* Driver: Test pipelining for universal builds.Daniel Dunbar2009-03-131-0/+21
| | | | llvm-svn: 66942
* Fix FastISel's assumption that i1 values are always zero-extendedDan Gohman2009-03-134-3/+42
| | | | | | | | | by inserting explicit zero extensions where necessary. Included is a testcase where SelectionDAG produces a virtual register holding an i1 value which FastISel previously mistakenly assumed to be zero-extended. llvm-svn: 66941
* Fix a bug in building function pointer type Fariborz Jahanian2009-03-131-2/+3
| | | | | | corresponding to block pointer. llvm-svn: 66940
* Driver: For universal builds, handle archs in the order they were seen.Daniel Dunbar2009-03-131-8/+12
| | | | llvm-svn: 66939
* ccc: Handle limited forms of -ccc-host-triple for testingDaniel Dunbar2009-03-131-0/+14
| | | | | | compatibility with C++ rewrite. llvm-svn: 66938
* remove a test that depends on -debug.Chris Lattner2009-03-131-15/+0
| | | | llvm-svn: 66937
* remove a testcase that depends on -debug existing.Chris Lattner2009-03-131-29/+0
| | | | llvm-svn: 66936
* Fix PR 3677 [retain checker]: custom 'allocWithZone' methods should be allowedTed Kremenek2009-03-132-5/+18
| | | | | | to return an owning pointer. llvm-svn: 66934
* add 8 and 16 bit TLS moves.Rafael Espindola2009-03-131-0/+20
| | | | | | add a fixme note on how to remove code duplication. llvm-svn: 66932
* Remove FIXME, issue has been resolved.Mike Stump2009-03-131-2/+0
| | | | llvm-svn: 66931
* One more place where debug info affects codegen.Dale Johannesen2009-03-131-1/+2
| | | | llvm-svn: 66930
* Test case for rev. 66925Devang Patel2009-03-131-0/+3
| | | | llvm-svn: 66927
* Update checker build.Ted Kremenek2009-03-131-1/+1
| | | | llvm-svn: 66926
* Remove an already-fixed FIXMEDouglas Gregor2009-03-131-3/+0
| | | | llvm-svn: 66924
* Refactor the way we handle operator overloading and templateDouglas Gregor2009-03-1311-255/+398
| | | | | | | | | | | | | | | | | | | | | | | | | instantiation for binary operators. This change moves most of the operator-overloading code from the parser action ActOnBinOp to a new, parser-independent semantic checking routine CreateOverloadedBinOp. Of particular importance is the fact that CreateOverloadedBinOp does *not* perform any name lookup based on the current parsing context (it doesn't take a Scope*), since it has to be usable during template instantiation, when there is no scope information. Rather, it takes a pre-computed set of functions that are visible from the context or via argument-dependent lookup, and adds to that set any member operators and built-in operator candidates. The set of functions is computed in the parser action ActOnBinOp based on the current context (both operator name lookup and argument-dependent lookup). Within a template, the set computed by ActOnBinOp is saved within the type-dependent AST node and is augmented with the results of argument-dependent name lookup at instantiation time (see TemplateExprInstantiator::VisitCXXOperatorCallExpr). Sadly, we can't fully test this yet. I'll follow up with template instantiation for sizeof so that the real fun can begin. llvm-svn: 66923
* Improve sext and zext of TLS variables.Rafael Espindola2009-03-133-0/+78
| | | | llvm-svn: 66922
OpenPOWER on IntegriCloud