summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PTX
Commit message (Collapse)AuthorAgeFilesLines
...
* Move global variables in TargetMachine into new TargetOptions class. As an APINick Lewycky2011-12-022-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 Dunbar2011-11-294-32/+0
| | | | llvm-svn: 145420
* Move code into anonymous namespaces.Benjamin Kramer2011-11-262-4/+8
| | | | llvm-svn: 145154
* Sink codegen optimization level into MCCodeGenInfo along side relocation modelEvan Cheng2011-11-163-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 Holewinski2011-11-141-0/+5
| | | | | | on custom implementations. llvm-svn: 144551
* build: Attempt to rectify inconsistencies between CMake and LLVMBuild ↵Daniel Dunbar2011-11-124-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 printfDan Bailey2011-11-114-23/+129
| | | | llvm-svn: 144388
* add rules in tabgen for PTX COPY_ADDRESS of frameindexDan Bailey2011-11-111-0/+6
| | | | llvm-svn: 144387
* LLVMBuild: Add explicit information on whether targets define an assembly ↵Daniel Dunbar2011-11-111-0/+1
| | | | | | printer, assembly parser, or disassembler. llvm-svn: 144344
* llvm-build: Add --native-target and --enable-targets options, and add logic toDaniel Dunbar2011-11-101-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 Dunbar2011-11-101-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 Cooper2011-11-081-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 Kramer2011-11-071-155/+91
| | | | llvm-svn: 144012
* build/cmake: Use tblgen macro directly instead of llvm_tablegen, which justDaniel Dunbar2011-11-041-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 widthsDan Bailey2011-11-031-12/+17
| | | | llvm-svn: 143640
* build: Add initial cut at LLVMBuild.txt files.Daniel Dunbar2011-11-034-0/+102
| | | | llvm-svn: 143634
* PTX: Fix disabling of MAD instruction selectionJustin Holewinski2011-10-181-7/+14
| | | | llvm-svn: 142352
* Add support for a new extension to the .file directive:Nick Lewycky2011-10-173-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.2Justin Holewinski2011-10-094-1/+49
| | | | llvm-svn: 141508
* PTX: Implement signed divisionJustin Holewinski2011-10-061-5/+34
| | | | llvm-svn: 141306
* Build system infrastructure for multiple tblgens.Peter Collingbourne2011-10-061-5/+5
| | | | llvm-svn: 141266
* PTX: Fixup a case where getRegClassFor() should be used instead of custom code.Justin Holewinski2011-10-051-17/+1
| | | | llvm-svn: 141199
* Ensure OpCode is not used uninitialized.Duncan Sands2011-10-051-1/+3
| | | | llvm-svn: 141184
* Comment out a variable that is only used in commented out code.Duncan Sands2011-10-051-1/+1
| | | | llvm-svn: 141183
* Remove a bunch of unused variables in the PTX backend (warned about by gcc-4.6).Duncan Sands2011-10-051-25/+7
| | | | llvm-svn: 141182
* PTX: Various stylistic and code readability changes recommended by Jim Grosbach.Justin Holewinski2011-09-3010-270/+65
| | | | llvm-svn: 140855
* PTX: Add programmable rounding mode specifier for int <-> fp conversion instrs.Justin Holewinski2011-09-302-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 requiresJustin Holewinski2011-09-309-197/+471
| | | | | | us to manually provide Pat<> definitions for all FP instruction patterns. llvm-svn: 140849
* PTX: Fix broken shared library buildJustin Holewinski2011-09-294-22/+43
| | | | llvm-svn: 140783
* PTX: Add new patterns for bitconvert and any_extendJustin Holewinski2011-09-291-213/+208
| | | | llvm-svn: 140753
* PTX: Fix alignment logicJustin Holewinski2011-09-281-1/+1
| | | | llvm-svn: 140709
* PTX: MC-ize the PTX backend (patch 2 of N)Justin Holewinski2011-09-282-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 Holewinski2011-09-2819-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 Kramer2011-09-281-13/+5
| | | | llvm-svn: 140680
* PTX: Pass param name strings per const reference.Benjamin Kramer2011-09-282-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 0Justin Holewinski2011-09-271-1/+1
| | | | llvm-svn: 140624
* PTX: Use external symbols to keep track of params and locals. This also fixesJustin Holewinski2011-09-276-55/+64
| | | | | | | a couple of outstanding issues with frame objects occuring as instruction operands. llvm-svn: 140616
* PTX: Add support for sitofp in backendJustin Holewinski2011-09-271-0/+25
| | | | llvm-svn: 140593
* PTX: Fix memcpy intrinsic to handle 64-bit pointersJustin Holewinski2011-09-261-8/+9
| | | | llvm-svn: 140556
* PTX: Implement PTXSelectionDAGInfoJustin Holewinski2011-09-265-5/+214
| | | | llvm-svn: 140549
* PTX: Implement ISD::ANY_EXTENDJustin Holewinski2011-09-261-0/+12
| | | | llvm-svn: 140548
* PTX: Fix detection of stack load/store vs. global load/store, as well as fix theJustin Holewinski2011-09-263-48/+75
| | | | | | printing of local offsets llvm-svn: 140547
* PTX: SM > 2.0 implies +doubleJustin Holewinski2011-09-261-5/+6
| | | | llvm-svn: 140536
* PTX: Fix some lingering issues with stack allocationJustin Holewinski2011-09-261-1/+3
| | | | llvm-svn: 140535
* PTX: Split up the TableGen instruction definitions into logical unitsJustin Holewinski2011-09-263-418/+300
| | | | llvm-svn: 140534
* PTX: Unify handling of loads/storesJustin Holewinski2011-09-263-76/+38
| | | | llvm-svn: 140533
* PTX: Handle FrameIndex nodesJustin Holewinski2011-09-266-30/+204
| | | | llvm-svn: 140532
* Clean up code after renaming LowerSubregs -> ExpandPostRAPseudos.Jakob Stoklund Olesen2011-09-251-2/+2
| | | | | | No functional change intended. llvm-svn: 140470
* PTX: Fix parameter order bugJustin Holewinski2011-09-232-8/+8
| | | | llvm-svn: 140394
* PTX: Cleanup unused code in PTXMachineFunctionInfoJustin Holewinski2011-09-233-158/+60
| | | | llvm-svn: 140390
OpenPOWER on IntegriCloud