| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Lift out ABIInfo abstract base class. | Daniel Dunbar | 2008-10-13 | 3 | -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 Lattner | 2008-10-13 | 1 | -5/+12 |
| | | | | | llvm-svn: 57444 | ||||
| * | Make InstructionCombining::getBitCastOperand() recognize GEP instructions and | Matthijs Kooijman | 2008-10-13 | 1 | -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 better | Matthijs Kooijman | 2008-10-13 | 1 | -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() returns | Matthijs Kooijman | 2008-10-13 | 1 | -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() returns | Matthijs Kooijman | 2008-10-13 | 1 | -5/+9 |
| | | | | | | | NULL, but just hide some debug output then. llvm-svn: 57437 | ||||
| * | fix typo's | Gabor Greif | 2008-10-13 | 1 | -2/+2 |
| | | | | | llvm-svn: 57435 | ||||
| * | remove a deprecated internal interface | Gabor Greif | 2008-10-13 | 2 | -9/+0 |
| | | | | | llvm-svn: 57434 | ||||
| * | do not use deprecated interfaces | Gabor Greif | 2008-10-13 | 1 | -3/+3 |
| | | | | | llvm-svn: 57433 | ||||
| * | ignore the standard output dirs | Gabor Greif | 2008-10-13 | 0 | -0/+0 |
| | | | | | llvm-svn: 57432 | ||||
| * | Disallow the construction of SCEVs with could-not-compute operands. Catch CNCs | Nick Lewycky | 2008-10-13 | 1 | -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 Glushenkov | 2008-10-13 | 1 | -1/+1 |
| | | | | | llvm-svn: 57430 | ||||
| * | Add a note on llvmc2 plugins + remove some trailing whitespace (my Emacs ↵ | Mikhail Glushenkov | 2008-10-13 | 1 | -14/+16 |
| | | | | | | | does this automatically). llvm-svn: 57429 | ||||
| * | calls can be supported. | Chris Lattner | 2008-10-13 | 1 | -9/+9 |
| | | | | | llvm-svn: 57428 | ||||
| * | more notes | Chris Lattner | 2008-10-12 | 1 | -6/+14 |
| | | | | | llvm-svn: 57427 | ||||
| * | Change TAG_ names to DW_TAG for gcc (testsuite) compatibility. | Dale Johannesen | 2008-10-12 | 1 | -59/+59 |
| | | | | | llvm-svn: 57425 | ||||
| * | Fix a bug in live-in detection that caused lost-copy problems to show up. | Owen Anderson | 2008-10-12 | 1 | -1/+1 |
| | | | | | llvm-svn: 57424 | ||||
| * | add some more notes | Chris Lattner | 2008-10-12 | 1 | -7/+36 |
| | | | | | llvm-svn: 57423 | ||||
| * | this was to be removed after 2.4 branched. | Chris Lattner | 2008-10-12 | 1 | -32/+0 |
| | | | | | llvm-svn: 57422 | ||||
| * | More const-ness goodness. | Argyrios Kyrtzidis | 2008-10-12 | 1 | -1/+2 |
| | | | | | llvm-svn: 57420 | ||||
| * | Remove "long" variants so these will pass on a 64-bit host. | Dale Johannesen | 2008-10-12 | 2 | -98/+6 |
| | | | | | llvm-svn: 57418 | ||||
| * | Improve the const-ness of a few methods. | Argyrios Kyrtzidis | 2008-10-12 | 4 | -8/+14 |
| | | | | | | | No functionality change. llvm-svn: 57417 | ||||
| * | add some notes | Chris Lattner | 2008-10-12 | 1 | -4/+26 |
| | | | | | llvm-svn: 57416 | ||||
| * | Implement more efficient Decl <-> DeclContext conversions. | Argyrios Kyrtzidis | 2008-10-12 | 5 | -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 Korobeynikov | 2008-10-12 | 2 | -0/+12 |
| | | | | | llvm-svn: 57414 | ||||
| * | Add special-case code to allow null-guards on calls to malloc. | Owen Anderson | 2008-10-12 | 1 | -2/+16 |
| | | | | | llvm-svn: 57413 | ||||
| * | Make Escape Analysis work for any pointer. | Owen Anderson | 2008-10-12 | 2 | -8/+13 |
| | | | | | llvm-svn: 57412 | ||||
| * | Add EscapeAnalysis. | Owen Anderson | 2008-10-12 | 1 | -0/+2 |
| | | | | | llvm-svn: 57411 | ||||
| * | Change Dwarf comments starting with AT_ to DW_AT_ to | Dale Johannesen | 2008-10-12 | 1 | -96/+96 |
| | | | | | | | match gcc. Helps with the testsuite. llvm-svn: 57410 | ||||
| * | make the -rewrite-test a bit more interesting: it now | Chris Lattner | 2008-10-12 | 3 | -25/+82 |
| | | | | | | | | wraps comments in <i> tags. Extend rewrite tokens to support this minimal functionality. llvm-svn: 57409 | ||||
| * | Fix crashes and infinite loops. | Owen Anderson | 2008-10-12 | 1 | -12/+14 |
| | | | | | llvm-svn: 57408 | ||||
| * | start implementing a token rewriter. At this point, it just reads in a file | Chris Lattner | 2008-10-12 | 5 | -1/+131 |
| | | | | | | | and lets a client iterate over it. llvm-svn: 57407 | ||||
| * | Add a new -rewrite-test option, which is basically a | Chris Lattner | 2008-10-12 | 4 | -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 Lattner | 2008-10-12 | 2 | -4/+27 |
| | | | | | | | Rename -dumptokens to -dump-tokens. llvm-svn: 57405 | ||||
| * | Change FormTokenWithChars to take the token kind to form, since all clients | Chris Lattner | 2008-10-12 | 3 | -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 are | Chris Lattner | 2008-10-12 | 1 | -2/+22 |
| | | | | | | | unterminated. llvm-svn: 57403 | ||||
| * | Change SkipBlockComment and SkipBCPLComment to return true when in | Chris Lattner | 2008-10-12 | 1 | -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 Lattner | 2008-10-12 | 2 | -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 Anderson | 2008-10-12 | 1 | -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 Lattner | 2008-10-12 | 1 | -6/+6 |
| | | | | | llvm-svn: 57399 | ||||
| * | Fix a couple more places that poke KeepCommentMode unnecesarily. | Chris Lattner | 2008-10-12 | 1 | -3/+4 |
| | | | | | llvm-svn: 57398 | ||||
| * | add a new inKeepCommentMode() accessor to abstract the KeepCommentMode | Chris Lattner | 2008-10-12 | 2 | -4/+11 |
| | | | | | | | ivar. llvm-svn: 57397 | ||||
| * | fix misleading comment. | Chris Lattner | 2008-10-12 | 1 | -1/+1 |
| | | | | | llvm-svn: 57396 | ||||
| * | Simplify raw mode lexing by treating an unterminate /**/ comment the | Chris Lattner | 2008-10-12 | 4 | -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 Lattner | 2008-10-12 | 1 | -0/+2 |
| | | | | | llvm-svn: 57394 | ||||
| * | Change how raw lexers are handled: instead of creating them and then | Chris Lattner | 2008-10-12 | 5 | -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 Lattner | 2008-10-12 | 4 | -11/+12 |
| | | | | | llvm-svn: 57392 | ||||
| * | silence some release-assert warnings. | Chris Lattner | 2008-10-12 | 3 | -10/+8 |
| | | | | | llvm-svn: 57391 | ||||
| * | silence a bunch of warnings in a release-assert build. | Chris Lattner | 2008-10-12 | 1 | -13/+11 |
| | | | | | llvm-svn: 57390 | ||||
| * | improve a comment. | Chris Lattner | 2008-10-12 | 1 | -1/+2 |
| | | | | | llvm-svn: 57389 | ||||

