summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PTX
Commit message (Collapse)AuthorAgeFilesLines
...
* ptx: fix parameter order that is reversedChe-Liang Chiou2011-03-181-5/+4
| | | | llvm-svn: 127874
* ptx: add unconditional and conditional branchChe-Liang Chiou2011-03-185-26/+57
| | | | llvm-svn: 127873
* PTX: Set PTX 2.0 as the minimum supported versionJustin Holewinski2011-03-155-42/+80
| | | | | | | | - Remove PTX 1.4 code generation - Change type of intrinsics to .v4.i32 instead of .v4.i16 - Add and/or/xor integer instructions llvm-svn: 127677
* Avoid a compiler warning about reg possibly being used uninitializedDuncan Sands2011-03-151-4/+2
| | | | | | when building with assertions disabled. llvm-svn: 127675
* PTX: Emit global arrays with proper sizesJustin Holewinski2011-03-141-5/+34
| | | | | | | - Emit all arrays as type .b8 and proper sizes in bytes to conform to the output of nvcc llvm-svn: 127584
* PTX: Add support for sqrt/sin/cos intrinsicsJustin Holewinski2011-03-141-0/+33
| | | | llvm-svn: 127578
* ptx: add set.p instruction and related changes to predicate executionChe-Liang Chiou2011-03-144-17/+59
| | | | llvm-svn: 127577
* ptx: add basic support of predicate executionChe-Liang Chiou2011-03-134-59/+177
| | | | llvm-svn: 127569
* PTX: Add preliminary support for floating-point divide and multiply-and-addJustin Holewinski2011-03-102-5/+104
| | | | llvm-svn: 127410
* ptx: add the rest of special registers of ISA version 2.0Che-Liang Chiou2011-03-101-7/+43
| | | | llvm-svn: 127397
* PTX: Add intrinsic support for ntid, ctaid, and nctaid registersJustin Holewinski2011-03-081-4/+22
| | | | llvm-svn: 127246
* ptx: add basic intrinsic supportChe-Liang Chiou2011-03-052-0/+39
| | | | llvm-svn: 127084
* PTX: Fix Emacs renaming a symbolJustin Holewinski2011-03-031-1/+1
| | | | llvm-svn: 126938
* PTX: Fix a couple of lint violationsJustin Holewinski2011-03-034-4/+8
| | | | llvm-svn: 126936
* ptx: fix lint and compiler warningsChe-Liang Chiou2011-03-023-9/+13
| | | | llvm-svn: 126838
* Add 64-bit addressing to PTX backendChe-Liang Chiou2011-03-029-44/+121
| | | | | | | | | | - Add '64bit' sub-target option. - Select 32-bit/64-bit loads/stores based on '64bit' option. - Fix function parameter order. Patch by Justin Holewinski llvm-svn: 126837
* Extend initial support for primitive types in PTX backendChe-Liang Chiou2011-03-0210-121/+440
| | | | | | | | | | | | | | - Allow i16, i32, i64, float, and double types, using the native .u16, .u32, .u64, .f32, and .f64 PTX types. - Allow loading/storing of all primitive types. - Allow primitive types to be passed as parameters. - Allow selection of PTX Version and Shader Model as sub-target attributes. - Merge integer/floating-point test cases for load/store. - Use .u32 instead of .s32 to conform to output from NVidia nvcc compiler. Patch by Justin Holewinski llvm-svn: 126824
* Add preliminary support for .f32 in the PTX backend.Che-Liang Chiou2011-02-285-10/+131
| | | | | | | | | | | | - Add appropriate TableGen patterns for fadd, fsub, fmul. - Add .f32 as the PTX type for the LLVM float type. - Allow parameters, return values, and global variable declarations to accept the float type. - Add appropriate test cases. Patch by Justin Holewinski llvm-svn: 126636
* Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.Cameron Zwarich2011-02-251-3/+0
| | | | llvm-svn: 126488
* Enable DebugInfo support for COFF object files.Devang Patel2011-02-241-0/+3
| | | | | | Patch by Nathan Jeffords! llvm-svn: 126425
* Use explicit add_subdirectory's for LLVM target sublibraries insteadOscar Fuentes2011-02-201-0/+2
| | | | | | | | | of testing for its presence at cmake time. This way the build automatically regenerates the makefiles when a svn update brings in a new sublibrary. llvm-svn: 126068
* Add support for pushsection and popsection. Patch by Joerg Sonnenberger.Rafael Espindola2011-02-161-12/+7
| | | | llvm-svn: 125629
* ptx: add passing parameter to kernel functionsChe-Liang Chiou2011-02-108-61/+96
| | | | llvm-svn: 125279
* Update CMake stuffAnton Korobeynikov2011-01-101-1/+1
| | | | llvm-svn: 123171
* Rename TargetFrameInfo into TargetFrameLowering. Also, put couple of FIXMEs ↵Anton Korobeynikov2011-01-104-17/+19
| | | | | | and fixes here and there. llvm-svn: 123170
* ptx: remove reg-reg addressing mode and st.constChe-Liang Chiou2011-01-012-29/+11
| | | | llvm-svn: 122653
* ptx: add store instructionChe-Liang Chiou2011-01-014-4/+101
| | | | llvm-svn: 122652
* ptx: add state spacesChe-Liang Chiou2010-12-303-8/+63
| | | | llvm-svn: 122638
* ptx: add ld instruction and testChe-Liang Chiou2010-12-226-22/+181
| | | | llvm-svn: 122398
* MC: Make TargetAsmBackend available to the AsmStreamer.Daniel Dunbar2010-12-162-1/+3
| | | | | | - Treaty talks on the non-proliferation of MC objects broke down. llvm-svn: 121949
* Fixed version of 121434 with no new memory leaks.Rafael Espindola2010-12-102-14/+13
| | | | llvm-svn: 121471
* Revert my previous patch to make the valgrind bots happy.Rafael Espindola2010-12-102-13/+14
| | | | llvm-svn: 121461
* Initial support for the cfi directives. This is just enough to getRafael Espindola2010-12-092-14/+13
| | | | | | | | | | | f: .cfi_startproc nop .cfi_endproc assembled (on ELF). llvm-svn: 121434
* ptx: add shift instructionsChe-Liang Chiou2010-12-061-0/+27
| | | | llvm-svn: 120982
* There are two reasons why we might want to useRafael Espindola2010-12-041-3/+2
| | | | | | | | | | | | | | | | foo = a - b .long foo instead of just .long a - b First, on darwin9 64 bits the assembler produces the wrong result. Second, if "a" is the end of the section all darwin assemblers (9, 10 and mc) will not consider a - b to be a constant but will if the dummy foo is created. Split how we handle these cases. The first one is something MC should take care of. The second one has to be handled by the caller. llvm-svn: 120889
* Try to resolve symbol differences early, and if successful create a plainRafael Espindola2010-12-031-0/+10
| | | | | | | data fragment. This reduces the time to assemble the test in 8711 from 60s to 54s. llvm-svn: 120767
* Use set directive for StartMinusEndExpr.Devang Patel2010-12-021-2/+3
| | | | | | This is a fix for llvm-gcc-i386-darwin9 buildbot failure. llvm-svn: 120742
* ptx: bug fix: use after freeChe-Liang Chiou2010-12-011-7/+8
| | | | llvm-svn: 120571
* ptx: add command-line options for gpu target and ptx versionChe-Liang Chiou2010-11-301-0/+18
| | | | llvm-svn: 120423
* ptx: add ld instructionChe-Liang Chiou2010-11-303-9/+118
| | | | | | | support register and register-immediate addressing mode todo: immediate and register-register addressing mode llvm-svn: 120407
* Make EmitIntValue non virtual.Rafael Espindola2010-11-281-26/+9
| | | | llvm-svn: 120271
* Move the PTXMCAsmStreamer class to the .cpp file.Rafael Espindola2010-11-283-206/+181
| | | | llvm-svn: 120241
* Move hasFP() and few related hooks to TargetFrameInfo.Anton Korobeynikov2010-11-182-2/+2
| | | | llvm-svn: 119740
* Add simple arithmetics and %type directive for PTXChe-Liang Chiou2010-11-172-9/+51
| | | | llvm-svn: 119485
* Add .loc methods to the streamer.Rafael Espindola2010-11-162-2/+4
| | | | | | | Next: Add support for the !HasDotLocAndDotFile case to the MCAsmStreamer and then switch codegen to use it. llvm-svn: 119384
* Attempt to unbreak cmake-based buildsAnton Korobeynikov2010-11-151-0/+1
| | | | llvm-svn: 119098
* First step of huge frame-related refactoring: move emit{Prologue,Epilogue} ↵Anton Korobeynikov2010-11-155-6/+68
| | | | | | out of TargetRegisterInfo to TargetFrameInfo, which is definitely much better suitable place llvm-svn: 119097
* move all the target's asmprinters into the main target. The piece Chris Lattner2010-11-145-22/+2
| | | | | | | that should be split out is the InstPrinter (if a target is mc'ized). This change makes all the targets be consistent. llvm-svn: 119056
* Add generating function declaration for PTXChe-Liang Chiou2010-11-082-11/+129
| | | | llvm-svn: 118398
* Add physical register counting functionsChe-Liang Chiou2010-11-086-0/+176
| | | | llvm-svn: 118397
OpenPOWER on IntegriCloud