Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Move global variables in TargetMachine into new TargetOptions class. As an API | Nick Lewycky | 2011-12-02 | 2 | -21/+9 | |
| | | | | | | | | | | | | change, now you need a TargetOptions object to create a TargetMachine. Clang patch to follow. One small functionality change in PTX. PTX had commented out the machine verifier parts in their copy of printAndVerify. That now calls the version in LLVMTargetMachine. Users of PTX who need verification disabled should rely on not passing the command-line flag to enable it. llvm-svn: 145714 | |||||
* | build/CMake: Finish removal of add_llvm_library_dependencies. | Daniel Dunbar | 2011-11-29 | 4 | -32/+0 | |
| | | | | llvm-svn: 145420 | |||||
* | Move code into anonymous namespaces. | Benjamin Kramer | 2011-11-26 | 2 | -4/+8 | |
| | | | | llvm-svn: 145154 | |||||
* | Sink codegen optimization level into MCCodeGenInfo along side relocation model | Evan Cheng | 2011-11-16 | 3 | -46/+44 | |
| | | | | | | | and code model. This eliminates the need to pass OptLevel flag all over the place and makes it possible for any codegen pass to use this information. llvm-svn: 144788 | |||||
* | PTX: Let LLVM use loads/stores for all mem* intrinsics, instead of relying ↵ | Justin Holewinski | 2011-11-14 | 1 | -0/+5 | |
| | | | | | | on custom implementations. llvm-svn: 144551 | |||||
* | build: Attempt to rectify inconsistencies between CMake and LLVMBuild ↵ | Daniel Dunbar | 2011-11-12 | 4 | -3/+4 | |
| | | | | | | | | versions of explicit dependencies. - The hope is that we have a tool/test to verify these are accurate (and tight) soon. llvm-svn: 144444 | |||||
* | allow non-device function calls in PTX when natively handling device-side printf | Dan Bailey | 2011-11-11 | 4 | -23/+129 | |
| | | | | llvm-svn: 144388 | |||||
* | add rules in tabgen for PTX COPY_ADDRESS of frameindex | Dan Bailey | 2011-11-11 | 1 | -0/+6 | |
| | | | | llvm-svn: 144387 | |||||
* | LLVMBuild: Add explicit information on whether targets define an assembly ↵ | Daniel Dunbar | 2011-11-11 | 1 | -0/+1 | |
| | | | | | | printer, assembly parser, or disassembler. llvm-svn: 144344 | |||||
* | llvm-build: Add --native-target and --enable-targets options, and add logic to | Daniel Dunbar | 2011-11-10 | 1 | -1/+0 | |
| | | | | | | | | | | handle defining the "magic" target related components (like native, nativecodegen, and engine). - We still require these components to be in the project (currently in lib/Target) so that we have a place to document them and hopefully make it more obvious that they are "magic". llvm-svn: 144253 | |||||
* | llvm-build: Add an explicit component type to represent targets. | Daniel Dunbar | 2011-11-10 | 1 | -1/+1 | |
| | | | | | | - Gives us a place to hang target specific metadata (like whether the target has a JIT). llvm-svn: 144250 | |||||
* | Added invariant field to the DAG.getLoad method and changed all calls. | Pete Cooper | 2011-11-08 | 1 | -2/+3 | |
| | | | | | | When this field is true it means that the load is from constant (runt-time or compile-time) and so can be hoisted from loops or moved around other memory accesses llvm-svn: 144100 | |||||
* | Simplify code. No functionality change. | Benjamin Kramer | 2011-11-07 | 1 | -155/+91 | |
| | | | | llvm-svn: 144012 | |||||
* | build/cmake: Use tblgen macro directly instead of llvm_tablegen, which just | Daniel Dunbar | 2011-11-04 | 1 | -5/+5 | |
| | | | | | | added a layer of indirection with no value (not even conciseness). llvm-svn: 143727 | |||||
* | fixed global array handling for ptx to use the correct bit widths | Dan Bailey | 2011-11-03 | 1 | -12/+17 | |
| | | | | llvm-svn: 143640 | |||||
* | build: Add initial cut at LLVMBuild.txt files. | Daniel Dunbar | 2011-11-03 | 4 | -0/+102 | |
| | | | | llvm-svn: 143634 | |||||
* | PTX: Fix disabling of MAD instruction selection | Justin Holewinski | 2011-10-18 | 1 | -7/+14 | |
| | | | | llvm-svn: 142352 | |||||
* | Add support for a new extension to the .file directive: | Nick Lewycky | 2011-10-17 | 3 | -6/+18 | |
| | | | | | | | | | | .file filenumber "directory" "filename" This removes one join+split of the directory+filename in MC internals. Because bitcode files have independent fields for directory and filenames in debug info, this patch may change the .o files written by existing .bc files. llvm-svn: 142300 | |||||
* | PTX: Print .ptr kernel attributes if PTX version >= 2.2 | Justin Holewinski | 2011-10-09 | 4 | -1/+49 | |
| | | | | llvm-svn: 141508 | |||||
* | PTX: Implement signed division | Justin Holewinski | 2011-10-06 | 1 | -5/+34 | |
| | | | | llvm-svn: 141306 | |||||
* | Build system infrastructure for multiple tblgens. | Peter Collingbourne | 2011-10-06 | 1 | -5/+5 | |
| | | | | llvm-svn: 141266 | |||||
* | PTX: Fixup a case where getRegClassFor() should be used instead of custom code. | Justin Holewinski | 2011-10-05 | 1 | -17/+1 | |
| | | | | llvm-svn: 141199 | |||||
* | Ensure OpCode is not used uninitialized. | Duncan Sands | 2011-10-05 | 1 | -1/+3 | |
| | | | | llvm-svn: 141184 | |||||
* | Comment out a variable that is only used in commented out code. | Duncan Sands | 2011-10-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 141183 | |||||
* | Remove a bunch of unused variables in the PTX backend (warned about by gcc-4.6). | Duncan Sands | 2011-10-05 | 1 | -25/+7 | |
| | | | | llvm-svn: 141182 | |||||
* | PTX: Various stylistic and code readability changes recommended by Jim Grosbach. | Justin Holewinski | 2011-09-30 | 10 | -270/+65 | |
| | | | | llvm-svn: 140855 | |||||
* | PTX: Add programmable rounding mode specifier for int <-> fp conversion instrs. | Justin Holewinski | 2011-09-30 | 2 | -124/+174 | |
| | | | | | | Also take this opportunity to clean up the rounding mode pass. llvm-svn: 140854 | |||||
* | PTX: Attempt to cleanup/unify the handling of FP rounding modes. This requires | Justin Holewinski | 2011-09-30 | 9 | -197/+471 | |
| | | | | | | us to manually provide Pat<> definitions for all FP instruction patterns. llvm-svn: 140849 | |||||
* | PTX: Fix broken shared library build | Justin Holewinski | 2011-09-29 | 4 | -22/+43 | |
| | | | | llvm-svn: 140783 | |||||
* | PTX: Add new patterns for bitconvert and any_extend | Justin Holewinski | 2011-09-29 | 1 | -213/+208 | |
| | | | | llvm-svn: 140753 | |||||
* | PTX: Fix alignment logic | Justin Holewinski | 2011-09-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 140709 | |||||
* | PTX: MC-ize the PTX backend (patch 2 of N) | Justin Holewinski | 2011-09-28 | 2 | -12/+3 | |
| | | | | | | Get rid of some of the no-longer-needed parts of PTXAsmPrinter. llvm-svn: 140698 | |||||
* | PTX: MC-ize the PTX back-end (patch 1 of N) | Justin Holewinski | 2011-09-28 | 19 | -64/+449 | |
| | | | | | | | | Lay some groundwork for converting to MC-based asm printer. This is the first of probably many patches to bring the back-end back up-to-date with all of the recent MC changes. llvm-svn: 140697 | |||||
* | PTX: Simplify code. No functionality change. | Benjamin Kramer | 2011-09-28 | 1 | -13/+5 | |
| | | | | llvm-svn: 140680 | |||||
* | PTX: Pass param name strings per const reference. | Benjamin Kramer | 2011-09-28 | 2 | -7/+7 | |
| | | | | | | The copies caused use-after-free bugs on std::string implementations without COW (i.e. anything but libstdc++) llvm-svn: 140679 | |||||
* | PTX: Fix case where printed alignment could be 0 | Justin Holewinski | 2011-09-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 140624 | |||||
* | PTX: Use external symbols to keep track of params and locals. This also fixes | Justin Holewinski | 2011-09-27 | 6 | -55/+64 | |
| | | | | | | | a couple of outstanding issues with frame objects occuring as instruction operands. llvm-svn: 140616 | |||||
* | PTX: Add support for sitofp in backend | Justin Holewinski | 2011-09-27 | 1 | -0/+25 | |
| | | | | llvm-svn: 140593 | |||||
* | PTX: Fix memcpy intrinsic to handle 64-bit pointers | Justin Holewinski | 2011-09-26 | 1 | -8/+9 | |
| | | | | llvm-svn: 140556 | |||||
* | PTX: Implement PTXSelectionDAGInfo | Justin Holewinski | 2011-09-26 | 5 | -5/+214 | |
| | | | | llvm-svn: 140549 | |||||
* | PTX: Implement ISD::ANY_EXTEND | Justin Holewinski | 2011-09-26 | 1 | -0/+12 | |
| | | | | llvm-svn: 140548 | |||||
* | PTX: Fix detection of stack load/store vs. global load/store, as well as fix the | Justin Holewinski | 2011-09-26 | 3 | -48/+75 | |
| | | | | | | printing of local offsets llvm-svn: 140547 | |||||
* | PTX: SM > 2.0 implies +double | Justin Holewinski | 2011-09-26 | 1 | -5/+6 | |
| | | | | llvm-svn: 140536 | |||||
* | PTX: Fix some lingering issues with stack allocation | Justin Holewinski | 2011-09-26 | 1 | -1/+3 | |
| | | | | llvm-svn: 140535 | |||||
* | PTX: Split up the TableGen instruction definitions into logical units | Justin Holewinski | 2011-09-26 | 3 | -418/+300 | |
| | | | | llvm-svn: 140534 | |||||
* | PTX: Unify handling of loads/stores | Justin Holewinski | 2011-09-26 | 3 | -76/+38 | |
| | | | | llvm-svn: 140533 | |||||
* | PTX: Handle FrameIndex nodes | Justin Holewinski | 2011-09-26 | 6 | -30/+204 | |
| | | | | llvm-svn: 140532 | |||||
* | Clean up code after renaming LowerSubregs -> ExpandPostRAPseudos. | Jakob Stoklund Olesen | 2011-09-25 | 1 | -2/+2 | |
| | | | | | | No functional change intended. llvm-svn: 140470 | |||||
* | PTX: Fix parameter order bug | Justin Holewinski | 2011-09-23 | 2 | -8/+8 | |
| | | | | llvm-svn: 140394 | |||||
* | PTX: Cleanup unused code in PTXMachineFunctionInfo | Justin Holewinski | 2011-09-23 | 3 | -158/+60 | |
| | | | | llvm-svn: 140390 |