Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMDGPU] Add an experimental buffer fat pointer address space.
Add an experimental buffer fat pointer address space that is currently unhandled in the backend. This commit reserves address space 7 as a non-integral pointer repsenting the 160-bit fat pointer (128-bit buffer descriptor + 32-bit offset) that is heavily used in graphics workloads using the AMDGPU backend. Differential Revision: https://reviews.llvm.org/D58957 llvm-svn: 356373
- Loading branch information
Neil Henning
committed
Mar 18, 2019
1 parent
6063393
commit 523dab0
Showing
9 changed files
with
96 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
; RUN: opt -mtriple=r600-- -O3 -aa-eval -print-all-alias-modref-info -disable-output < %s 2>&1 | FileCheck %s | ||
|
||
; CHECK: MayAlias: i8 addrspace(5)* %p, i8 addrspace(7)* %p1 | ||
|
||
define amdgpu_kernel void @test(i8 addrspace(5)* %p, i8 addrspace(7)* %p1) { | ||
; CHECK: MayAlias: i8 addrspace(5)* %p, i8 addrspace(999)* %p1 | ||
define amdgpu_kernel void @test(i8 addrspace(5)* %p, i8 addrspace(999)* %p1) { | ||
ret void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
; RUN: opt -S -mtriple=amdgcn-- -load-store-vectorizer < %s | FileCheck -check-prefix=OPT %s | ||
|
||
; OPT-LABEL: @func( | ||
define void @func(i32 addrspace(7)* %out) { | ||
entry: | ||
%a0 = getelementptr i32, i32 addrspace(7)* %out, i32 0 | ||
%a1 = getelementptr i32, i32 addrspace(7)* %out, i32 1 | ||
%a2 = getelementptr i32, i32 addrspace(7)* %out, i32 2 | ||
%a3 = getelementptr i32, i32 addrspace(7)* %out, i32 3 | ||
|
||
; OPT: store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32> addrspace(7)* %0, align 4 | ||
store i32 0, i32 addrspace(7)* %a0 | ||
store i32 1, i32 addrspace(7)* %a1 | ||
store i32 2, i32 addrspace(7)* %a2 | ||
store i32 3, i32 addrspace(7)* %a3 | ||
ret void | ||
} |