Tom Stellard
ff6108f813
AMDGPU/SI: Update amd_kernel_code_t definition and add assembler support
...
Reviewers: arsenm
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10772
llvm-svn: 240839
2015-06-26 21:58:31 +00:00
Tom Stellard
cab8e5d764
AMDGPU/SI: Remove unused variable
...
This should fix some bots that were broken by r240831.
llvm-svn: 240838
2015-06-26 21:58:26 +00:00
Tom Stellard
ac2f277b1d
AMDGPU/SI: Set ELF OS/ABI to ELFOSABI_AMDGPU_HSA
...
Reviewers: arsenm, rafael
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10708
llvm-svn: 240832
2015-06-26 21:15:11 +00:00
Tom Stellard
daced4c4cc
AMDGPU/SI: Add hsa code object directives
...
Reviewers: arsenm
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10757
llvm-svn: 240831
2015-06-26 21:15:07 +00:00
Tom Stellard
a87fcfe4a1
AMDGPU/SI: There are no implicit kernel args in the amdhsa ABI
...
Reviewers: arsenm
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10706
llvm-svn: 240830
2015-06-26 21:15:03 +00:00
Tom Stellard
9f47cd8f77
AMDGPU/SI: Emit amd_kernel_code_t in EmitFunctionBodyStart()
...
Summary:
This way the function symbol points to the start of amd_kernel_code_t
rather than the start of the function.
Reviewers: arsenm
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10705
llvm-svn: 240829
2015-06-26 21:14:58 +00:00
Marek Olsak
6aff2cf35d
AMDGPU: really don't commute REV opcodes if the target variant doesn't exist
...
If pseudoToMCOpcode failed, we would return the original opcode, so operands
would be swapped, but the instruction would remain the same.
It resulted in LSHLREV a, b ---> LSHLREV b, a.
This fixes Glamor text rendering and
piglit/arb_sample_shading-builtin-gl-sample-mask on VI.
This is a candidate for stable branches.
v2: the test was simplified by Tom Stellard
llvm-svn: 240824
2015-06-26 20:29:10 +00:00
Benjamin Kramer
4ed07455af
Replace copy-pasted debug value skipping with MBB::getLastNonDebugInstr
...
No functional change intended.
llvm-svn: 240639
2015-06-25 13:28:24 +00:00
Alexander Kornienko
f993659b8f
Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC)
...
Apparently, the style needs to be agreed upon first.
llvm-svn: 240390
2015-06-23 09:49:53 +00:00
Matt Arsenault
fcb17bdd0a
AMDGPU: Use getAsInteger instead of atoi
...
llvm-svn: 240365
2015-06-23 02:05:55 +00:00
Tom Stellard
cccd26327d
R600/SI: Use ELF64 format instead of ELF32
...
Reviewers: arsenm, rafael
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10392
llvm-svn: 240331
2015-06-22 21:03:54 +00:00
Tom Stellard
5a698953ca
R600: Use EM_AMDGPU for the ELF Machine type
...
Reviewers: arsenm, rafael
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10390
llvm-svn: 240330
2015-06-22 21:03:52 +00:00
Alexander Kornienko
40cb19d802
Fixed/added namespace ending comments using clang-tidy. NFC
...
The patch is generated using this command:
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \
-checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \
llvm/lib/
Thanks to Eugene Kosov for the original patch!
llvm-svn: 240137
2015-06-19 15:57:42 +00:00
Eric Christopher
0b2dfae3ba
Fix "the the" in comments.
...
llvm-svn: 240112
2015-06-19 01:53:21 +00:00
Matt Arsenault
c967f7ea18
AMDGPU: Change unreachable into reported error
...
llvm-svn: 239943
2015-06-17 20:55:25 +00:00
Sanjoy Das
ce0590cf7a
[TargetInstrInfo] Rename getLdStBaseRegImmOfs and implement for x86.
...
Summary:
TargetInstrInfo::getLdStBaseRegImmOfs to
TargetInstrInfo::getMemOpBaseRegImmOfs and implement for x86. The
implementation only handles a few easy cases now and will be made more
sophisticated in the future.
This is NFCI: the only user of `getLdStBaseRegImmOfs` (now
`getmemOpBaseRegImmOfs`) is `LoadClusterMotion` and `LoadClusterMotion`
is disabled for x86.
Reviewers: reames, ab, MatzeB, atrick
Reviewed By: MatzeB, atrick
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10199
llvm-svn: 239741
2015-06-15 18:44:14 +00:00
Tom Stellard
665c24e443
AMDGPU: s/R600/AMDGPU/ in the Makefiles
...
Now the library names in the Makefiles match the library names in
LLVMBuild.txt.
This should hopefully fix the remaining bot failures.
llvm-svn: 239661
2015-06-13 05:11:14 +00:00
Tom Stellard
3f1708598e
R600 -> AMDGPU rename
...
llvm-svn: 239657
2015-06-13 03:28:10 +00:00
Tom Stellard
39f7e52397
Revert "AMDGPU: Add core backend files for R600/SI codegen v6"
...
This reverts commit 4ea70107c5e51230e9e60f0bf58a0f74aa4885ea.
llvm-svn: 160303
2012-07-16 18:19:53 +00:00
Tom Stellard
9dc4728c5c
Revert "Target/AMDGPU/R600KernelParameters.cpp: Fix two includes, <llvm/IRBuilder.h> and <llvm/TypeBuilder.h>"
...
This reverts commit 0258a6bdd30802f5cc0e8e57c8e768fde2aef590.
llvm-svn: 160299
2012-07-16 18:19:41 +00:00
Tom Stellard
5013977c33
Revert "Target/AMDGPU: [CMake] Fix dependencies. 1) Add intrinsics_gen. Add AMDGPUCommonTableGen."
...
This reverts commit ebc934ba32ee71abbb8f0f2eb6a0fbaa613ba0d2.
llvm-svn: 160298
2012-07-16 18:19:40 +00:00
Tom Stellard
9c4f5d8855
Revert "Target/AMDGPU/R600KernelParameters.cpp: Don't use "and", "or" as conditional operator..."
...
This reverts commit 29f28bc14ad5a907f5dc849f004fafeec0aab33a.
llvm-svn: 160297
2012-07-16 18:19:38 +00:00
Tom Stellard
428cc1034f
Revert "Target/AMDGPU/AMDILIntrinsicInfo.cpp: Use llvm_unreachable() in nonreturn function, instead of assert(0)."
...
This reverts commit 4ba4acc1bc2561b944a571edbb6a2dc78e357dfe.
llvm-svn: 160296
2012-07-16 18:19:37 +00:00
Tom Stellard
5637c04c6b
Revert "Target/AMDGPU: Fix includes, or msvc build failed."
...
This reverts commit fef4aa1b16fcf7a472559abbbcf4c1adc9eb5ca6.
llvm-svn: 160295
2012-07-16 18:19:32 +00:00
NAKAMURA Takumi
cd72e724ac
Target/AMDGPU: Fix includes, or msvc build failed.
...
llvm-svn: 160280
2012-07-16 15:43:50 +00:00
NAKAMURA Takumi
48743bc036
Target/AMDGPU/AMDILIntrinsicInfo.cpp: Use llvm_unreachable() in nonreturn function, instead of assert(0).
...
llvm-svn: 160279
2012-07-16 15:43:09 +00:00
NAKAMURA Takumi
877e9fac64
Target/AMDGPU/R600KernelParameters.cpp: Don't use "and", "or" as conditional operator...
...
llvm-svn: 160278
2012-07-16 15:42:35 +00:00
NAKAMURA Takumi
2d04e559df
Target/AMDGPU: [CMake] Fix dependencies. 1) Add intrinsics_gen. Add AMDGPUCommonTableGen.
...
llvm-svn: 160276
2012-07-16 15:09:11 +00:00
NAKAMURA Takumi
4fd62f7458
Target/AMDGPU/R600KernelParameters.cpp: Fix two includes, <llvm/IRBuilder.h> and <llvm/TypeBuilder.h>
...
llvm-svn: 160275
2012-07-16 15:08:47 +00:00
Tom Stellard
9f326179fc
AMDGPU: Add core backend files for R600/SI codegen v6
...
llvm-svn: 160270
2012-07-16 14:17:08 +00:00