summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Lift out ABIInfo abstract base class.Daniel Dunbar2008-10-133-21/+102
| | | | | | | | - Currently still lives in CGCall.cpp but is intended to be the target specific place for hooking ABI information. - Select ABIInfo to use based on Target's prefix and pointer width. llvm-svn: 57445
* fix some crazily long lines.Chris Lattner2008-10-131-5/+12
| | | | llvm-svn: 57444
* Make InstructionCombining::getBitCastOperand() recognize GEP instructions andMatthijs Kooijman2008-10-131-3/+23
| | | | | | constant expression with all zero indices as being the same as a bitcast. llvm-svn: 57442
* Improve the description on the getelementptr instruction. It should now betterMatthijs Kooijman2008-10-131-18/+24
| | | | | | | define what the instruction does. This also makes it clear that getelementptr can index into a vector type. llvm-svn: 57440
* * Make TargetLowering not crash when TargetMachine::getTargetAsmInfo() returnsMatthijs Kooijman2008-10-131-1/+2
| | | | | | | null. This assumes that any target that does not have AsmInfo, does not support "LocAndDot". llvm-svn: 57438
* Make MachineFunction not crash when TargetMachine::getRegisterInfo() returnsMatthijs Kooijman2008-10-131-5/+9
| | | | | | NULL, but just hide some debug output then. llvm-svn: 57437
* fix typo'sGabor Greif2008-10-131-2/+2
| | | | llvm-svn: 57435
* remove a deprecated internal interfaceGabor Greif2008-10-132-9/+0
| | | | llvm-svn: 57434
* do not use deprecated interfacesGabor Greif2008-10-131-3/+3
| | | | llvm-svn: 57433
* ignore the standard output dirsGabor Greif2008-10-130-0/+0
| | | | llvm-svn: 57432
* Disallow the construction of SCEVs with could-not-compute operands. Catch CNCsNick Lewycky2008-10-131-72/+6
| | | | | | | returned by BinomialCoefficient and don't try to operate with them. This replaces the previous fix for PR2857. llvm-svn: 57431
* Add whitespace before a parenthesis.Mikhail Glushenkov2008-10-131-1/+1
| | | | llvm-svn: 57430
* Add a note on llvmc2 plugins + remove some trailing whitespace (my Emacs ↵Mikhail Glushenkov2008-10-131-14/+16
| | | | | | does this automatically). llvm-svn: 57429
* calls can be supported.Chris Lattner2008-10-131-9/+9
| | | | llvm-svn: 57428
* more notesChris Lattner2008-10-121-6/+14
| | | | llvm-svn: 57427
* Change TAG_ names to DW_TAG for gcc (testsuite) compatibility.Dale Johannesen2008-10-121-59/+59
| | | | llvm-svn: 57425
* Fix a bug in live-in detection that caused lost-copy problems to show up.Owen Anderson2008-10-121-1/+1
| | | | llvm-svn: 57424
* add some more notesChris Lattner2008-10-121-7/+36
| | | | llvm-svn: 57423
* this was to be removed after 2.4 branched.Chris Lattner2008-10-121-32/+0
| | | | llvm-svn: 57422
* More const-ness goodness.Argyrios Kyrtzidis2008-10-121-1/+2
| | | | llvm-svn: 57420
* Remove "long" variants so these will pass on a 64-bit host.Dale Johannesen2008-10-122-98/+6
| | | | llvm-svn: 57418
* Improve the const-ness of a few methods.Argyrios Kyrtzidis2008-10-124-8/+14
| | | | | | No functionality change. llvm-svn: 57417
* add some notesChris Lattner2008-10-121-4/+26
| | | | llvm-svn: 57416
* Implement more efficient Decl <-> DeclContext conversions.Argyrios Kyrtzidis2008-10-125-47/+103
| | | | | | | | When the static type on the Decl side is a subclass of DeclContext the compiler will use a "inlinable" static_cast, instead of always using an out-of-line function call. Note, though, that the isa<> check still uses an out-of-line function call. llvm-svn: 57415
* Update size of inst correctly with segment override.Anton Korobeynikov2008-10-122-0/+12
| | | | llvm-svn: 57414
* Add special-case code to allow null-guards on calls to malloc.Owen Anderson2008-10-121-2/+16
| | | | llvm-svn: 57413
* Make Escape Analysis work for any pointer.Owen Anderson2008-10-122-8/+13
| | | | llvm-svn: 57412
* Add EscapeAnalysis.Owen Anderson2008-10-121-0/+2
| | | | llvm-svn: 57411
* Change Dwarf comments starting with AT_ to DW_AT_ toDale Johannesen2008-10-121-96/+96
| | | | | | match gcc. Helps with the testsuite. llvm-svn: 57410
* make the -rewrite-test a bit more interesting: it now Chris Lattner2008-10-123-25/+82
| | | | | | | wraps comments in <i> tags. Extend rewrite tokens to support this minimal functionality. llvm-svn: 57409
* Fix crashes and infinite loops.Owen Anderson2008-10-121-12/+14
| | | | llvm-svn: 57408
* start implementing a token rewriter. At this point, it just reads in a fileChris Lattner2008-10-125-1/+131
| | | | | | and lets a client iterate over it. llvm-svn: 57407
* Add a new -rewrite-test option, which is basically a Chris Lattner2008-10-124-0/+59
| | | | | | | playground to experiment with some new rewriter approaches. For now it is probably the most complex version of 'cat' ever invented. llvm-svn: 57406
* Add a new -dump-raw-tokens option, which allows us to see raw tokens. Chris Lattner2008-10-122-4/+27
| | | | | | Rename -dumptokens to -dump-tokens. llvm-svn: 57405
* Change FormTokenWithChars to take the token kind to form, since all clientsChris Lattner2008-10-123-129/+111
| | | | | | | were setting a kind and then forming it. This is just a minor API cleanup, no functionality change. llvm-svn: 57404
* When in keep whitespace mode, make sure to return block comments that areChris Lattner2008-10-121-2/+22
| | | | | | unterminated. llvm-svn: 57403
* Change SkipBlockComment and SkipBCPLComment to return true when inChris Lattner2008-10-121-18/+22
| | | | | | keep comment mode, instead of returning false. This matches SkipWhitespace. llvm-svn: 57402
* Add a new mode to the lexer which enables it to return all characters,Chris Lattner2008-10-122-26/+83
| | | | | | | | | | | | | | | | | | | | | | | | even whitespace, as tokens from the file. This is enabled with L->SetKeepWhitespaceMode(true) on a raw lexer. In this mode, you too can use clang as a really complex version of 'cat' with code like this: Lexer RawLex(SourceLocation::getFileLoc(SM.getMainFileID(), 0), PP.getLangOptions(), File.first, File.second); RawLex.SetKeepWhitespaceMode(true); Token RawTok; RawLex.LexFromRawLexer(RawTok); while (RawTok.isNot(tok::eof)) { std::cout << PP.getSpelling(RawTok); RawLex.LexFromRawLexer(RawTok); } This will emit exactly the input file, with no canonicalization or other translation. Realistic clients actually do something with the tokens of course :) llvm-svn: 57401
* Duncan convinced me that it's not possible to transform control-based ↵Owen Anderson2008-10-121-13/+10
| | | | | | | | escapes into data-based ones. Just be conservative when analyzing control-based escapes. llvm-svn: 57400
* Stop the preprocessor from poking the lexer's private parts.Chris Lattner2008-10-121-6/+6
| | | | llvm-svn: 57399
* Fix a couple more places that poke KeepCommentMode unnecesarily. Chris Lattner2008-10-121-3/+4
| | | | llvm-svn: 57398
* add a new inKeepCommentMode() accessor to abstract the KeepCommentModeChris Lattner2008-10-122-4/+11
| | | | | | ivar. llvm-svn: 57397
* fix misleading comment.Chris Lattner2008-10-121-1/+1
| | | | llvm-svn: 57396
* Simplify raw mode lexing by treating an unterminate /**/ comment theChris Lattner2008-10-124-12/+8
| | | | | | | | same we we do an unterminated string or character literal. This makes it so we can guarantee that the lexer never calls into the preprocessor (which would be suicide for a raw lexer). llvm-svn: 57395
* add a comment.Chris Lattner2008-10-121-0/+2
| | | | llvm-svn: 57394
* Change how raw lexers are handled: instead of creating them and thenChris Lattner2008-10-125-27/+26
| | | | | | | | | | | using LexRawToken, create one and use LexFromRawLexer. This avoids twiddling the RawLexer flag around and simplifies some code (even speeding raw lexing up a tiny bit). This change also improves the token paster to use a Lexer on the stack instead of new/deleting it. llvm-svn: 57393
* silence release-assert warnings.Chris Lattner2008-10-124-11/+12
| | | | llvm-svn: 57392
* silence some release-assert warnings.Chris Lattner2008-10-123-10/+8
| | | | llvm-svn: 57391
* silence a bunch of warnings in a release-assert build.Chris Lattner2008-10-121-13/+11
| | | | llvm-svn: 57390
* improve a comment.Chris Lattner2008-10-121-1/+2
| | | | llvm-svn: 57389
OpenPOWER on IntegriCloud