Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix a casting problem on the llvm-x86_64-linux tester | Chris Lattner | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77295 | |||||
* | Rip all of the global variable lowering logic out of TargetAsmInfo. Since | Chris Lattner | 2009-07-28 | 64 | -1402/+1655 | |
| | | | | | | | | | | | | | | | | | | | | it is highly specific to the object file that will be generated in the end, this introduces a new TargetLoweringObjectFile interface that is implemented for each of ELF/MachO/COFF/Alpha/PIC16 and XCore. Though still is still a brutal and ugly refactoring, this is a major step towards goodness. This patch also: 1. fixes a bunch of dangling pointer problems in the PIC16 backend. 2. disables the TargetLowering copy ctor which PIC16 was accidentally using. 3. gets us closer to xcore having its own crazy target section flags and pic16 not having to shadow sections with its own objects. 4. fixes wierdness where ELF targets would set CStringSection but not CStringSection_. Factor the code better. 5. fixes some bugs in string lowering on ELF targets. llvm-svn: 77294 | |||||
* | don't copy TargetLowering. | Chris Lattner | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77293 | |||||
* | llvm-mc: Factor AsmToken class out of AsmLexer. | Daniel Dunbar | 2009-07-28 | 2 | -83/+108 | |
| | | | | llvm-svn: 77292 | |||||
* | Teach instcombine to respect and preserve inbounds. Add inbounds | Dan Gohman | 2009-07-28 | 5 | -32/+66 | |
| | | | | | | to a few tests where it is required for the expected transformation. llvm-svn: 77290 | |||||
* | Fix a small little typo. | Mike Stump | 2009-07-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 77289 | |||||
* | llvm-mc: Stop uniqueing string tokens, nothing actually uses this. | Daniel Dunbar | 2009-07-28 | 2 | -20/+4 | |
| | | | | llvm-svn: 77287 | |||||
* | Replace dyn_castGetElementPtr with dyn_cast<GEPOperator>. | Dan Gohman | 2009-07-28 | 1 | -15/+5 | |
| | | | | llvm-svn: 77286 | |||||
* | Grab the LLVMContext and parent Module of SI ahead of the | Dan Gohman | 2009-07-28 | 1 | -3/+4 | |
| | | | | | | | point where SI can get deleted. This fixes a use of free'd memory. This fixes Externals/Povray. llvm-svn: 77285 | |||||
* | ORN does not require (and can not have) the ".w" suffix. "Orthogonality" is ↵ | David Goodwin | 2009-07-27 | 2 | -12/+18 | |
| | | | | | | a dirty word at ARM. llvm-svn: 77275 | |||||
* | Fix a release-asserts warning. Debug functions should be marked used, | Mike Stump | 2009-07-27 | 1 | -0/+2 | |
| | | | | | | | if there are no other uses. If people don't need this routine anymore, if should be deleted. llvm-svn: 77274 | |||||
* | Pass true to the Internalize parameter of createStandardLTOPasses, | Dan Gohman | 2009-07-27 | 1 | -1/+1 | |
| | | | | | | to match llvm-ld's default behavior. llvm-svn: 77273 | |||||
* | llvm-mc: Implement .abort fully in the front end | Daniel Dunbar | 2009-07-27 | 6 | -28/+18 | |
| | | | | llvm-svn: 77272 | |||||
* | Avoid build warnings. | Mike Stump | 2009-07-27 | 3 | -0/+3 | |
| | | | | llvm-svn: 77271 | |||||
* | Add a comment on Value explaining the current getName() behavior. | Daniel Dunbar | 2009-07-27 | 1 | -0/+6 | |
| | | | | llvm-svn: 77269 | |||||
* | Move ConstantStruct back to 2.5 API. | Owen Anderson | 2009-07-27 | 16 | -179/+129 | |
| | | | | llvm-svn: 77266 | |||||
* | Add a comment about the "getelementptr null" trick. | Dan Gohman | 2009-07-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 77262 | |||||
* | Add inbounds to the polygen grammar. | Dan Gohman | 2009-07-27 | 1 | -2/+3 | |
| | | | | llvm-svn: 77261 | |||||
* | vim syntax highlighting for inbounds keyword. | Dan Gohman | 2009-07-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 77260 | |||||
* | Add a new keyword 'inbounds' for use with getelementptr. See the | Dan Gohman | 2009-07-27 | 11 | -4/+83 | |
| | | | | | | LangRef.html changes for details. llvm-svn: 77259 | |||||
* | llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API. | Daniel Dunbar | 2009-07-27 | 8 | -107/+115 | |
| | | | | | | - My DFS traversal of LLVM is, at least for now, nearly complete! :) llvm-svn: 77258 | |||||
* | Order unsigned before signed, for consistency. | Dan Gohman | 2009-07-27 | 1 | -8/+8 | |
| | | | | llvm-svn: 77257 | |||||
* | Unbreak build. | Daniel Dunbar | 2009-07-27 | 1 | -2/+0 | |
| | | | | llvm-svn: 77256 | |||||
* | Make raw_null_ostream flush its buffer in its destructor, so that | Dan Gohman | 2009-07-27 | 2 | -0/+10 | |
| | | | | | | | it conforms to the assertion added in r77245. This fixes a failure in qa_override.c in clang's testsuite. llvm-svn: 77255 | |||||
* | hoist MCContext/MCStreamer up to AsmPrinter since we're going to start creating | Chris Lattner | 2009-07-27 | 4 | -30/+25 | |
| | | | | | | | MCSections soon instead of Section for all targets, and we need something to own them. llvm-svn: 77252 | |||||
* | Move MCContext and friends to StringRef based APIs. | Daniel Dunbar | 2009-07-27 | 4 | -13/+16 | |
| | | | | llvm-svn: 77251 | |||||
* | simplify #includes. | Chris Lattner | 2009-07-27 | 1 | -3/+1 | |
| | | | | llvm-svn: 77250 | |||||
* | Move ConstantFP construction back to the 2.5-ish API. | Owen Anderson | 2009-07-27 | 26 | -207/+188 | |
| | | | | llvm-svn: 77247 | |||||
* | Add an assertion check to raw_ostream's destructor to verify | Dan Gohman | 2009-07-27 | 1 | -0/+5 | |
| | | | | | | that the subclass hasn't left any pending data in the buffer. llvm-svn: 77245 | |||||
* | Fix typo. | Andreas Bolka | 2009-07-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 77244 | |||||
* | 80 columns! | Devang Patel | 2009-07-27 | 1 | -5/+12 | |
| | | | | llvm-svn: 77243 | |||||
* | Remove TPat. No patterns depend on just isThumb(). Must use either T1Pat ↵ | David Goodwin | 2009-07-27 | 2 | -30/+26 | |
| | | | | | | (isThumb1Only()) or T2Pat (is Thumb2). llvm-svn: 77242 | |||||
* | Thanks, Bill! | Sean Callanan | 2009-07-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 77240 | |||||
* | fix comment | Bruno Cardoso Lopes | 2009-07-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 77239 | |||||
* | add module identifier to the elf object file | Bruno Cardoso Lopes | 2009-07-27 | 3 | -9/+26 | |
| | | | | llvm-svn: 77238 | |||||
* | Sink getSectionPrefixForUniqueGlobal down into the TAI | Chris Lattner | 2009-07-27 | 6 | -126/+155 | |
| | | | | | | implementations that need it, rearrange ELFTAI. llvm-svn: 77236 | |||||
* | remove dead code. | Chris Lattner | 2009-07-27 | 2 | -6/+3 | |
| | | | | llvm-svn: 77233 | |||||
* | Handle external symbols for ELF and add some static methods to ELFSym | Bruno Cardoso Lopes | 2009-07-27 | 4 | -46/+155 | |
| | | | | llvm-svn: 77232 | |||||
* | More DCE. | Evan Cheng | 2009-07-27 | 4 | -17/+1 | |
| | | | | llvm-svn: 77231 | |||||
* | convertToThreeAddress can't handle Thumb2 instructions (which don't have ↵ | Evan Cheng | 2009-07-27 | 1 | -10/+7 | |
| | | | | | | same address mode as ARM instructions). llvm-svn: 77230 | |||||
* | Initialize mdnNext. | Devang Patel | 2009-07-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 77229 | |||||
* | Get rid of more dead code. | Evan Cheng | 2009-07-27 | 5 | -9/+1 | |
| | | | | llvm-svn: 77227 | |||||
* | Many of Daniel's fixes. | Sean Callanan | 2009-07-27 | 1 | -15/+14 | |
| | | | | | | | | | | | | | I'm returning the number of bytes actually copied so that the client has some warning when it reads past the end of the buffer. I'm keeping the distinction between getByte() and getBytes() for now for subclasses that use functions like ptrace() on Linux and only have a restricted interface. This makes their implementation easier, and subclasses can always write a one-line implementation of readByte() that uses their custom readBytes(). llvm-svn: 77225 | |||||
* | Cosmetic change. | Evan Cheng | 2009-07-27 | 1 | -2/+4 | |
| | | | | llvm-svn: 77222 | |||||
* | Clean up. | Evan Cheng | 2009-07-27 | 2 | -5/+6 | |
| | | | | llvm-svn: 77221 | |||||
* | CMake configuration: find mkdtemp, mkstemp, mktemp. | Douglas Gregor | 2009-07-27 | 2 | -3/+6 | |
| | | | | llvm-svn: 77219 | |||||
* | Get rid of some more getOpcode calls. | Evan Cheng | 2009-07-27 | 6 | -33/+46 | |
| | | | | | | This also fixes potential problems in ARMBaseInstrInfo routines not recognizing thumb1 instructions when 32-bit and 16-bit instructions mix. llvm-svn: 77218 | |||||
* | Fix build. | Mike Stump | 2009-07-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 77217 | |||||
* | Following discussion on llvm-dev ("proposed new rule for getelementptr"), | Dan Gohman | 2009-07-27 | 1 | -0/+49 | |
| | | | | | | add a new "Pointer Aliasing Rules" section. llvm-svn: 77216 | |||||
* | Remove duplicate entries while printing decls for external symbols. | Sanjiv Gupta | 2009-07-27 | 1 | -2/+23 | |
| | | | | | | Some libcall names are same, so they were getting printed twice. llvm-svn: 77215 |