Konstantin Zhuravlyov
2ec725c9d8
AMDGPU: Fix amdgpu-flat-work-group-size/amdgpu-waves-per-eu check
...
Differential Revision: https://reviews.llvm.org/D35433
llvm-svn: 308147
2017-07-16 19:38:47 +00:00
Matt Arsenault
23e4df6a59
AMDGPU: Detect kernarg segment pointer
...
This is necessary to pass the kernarg segment pointer
to callee functions. Also don't unconditionally enable
for kernels.
llvm-svn: 307978
2017-07-14 00:11:13 +00:00
Matt Arsenault
3dbeefa978
AMDGPU: Mark all unspecified CC functions in tests as amdgpu_kernel
...
Currently the default C calling convention functions are treated
the same as compute kernels. Make this explicit so the default
calling convention can be changed to a non-kernel.
Converted with perl -pi -e 's/define void/define amdgpu_kernel void/'
on the relevant test directories (and undoing in one place that actually
wanted a non-kernel).
llvm-svn: 298444
2017-03-21 21:39:51 +00:00
Konstantin Zhuravlyov
fd87137710
[AMDGPU] Calculate number of min/max SGPRs/VGPRs for WavesPerEU instead of using switch statement
...
Differential Revision: https://reviews.llvm.org/D29741
llvm-svn: 294627
2017-02-09 21:33:23 +00:00
Marek Olsak
693e9be918
AMDGPU/SI: Don't reserve FLAT_SCR on non-HSA targets & without stack objects
...
Summary: This frees 2 scalar registers.
Reviewers: tstellarAMD
Subscribers: qcolombet, arsenm, kzhuravl, wdng, nhaehnle, yaxunl, tony-tye
Differential Revision: https://reviews.llvm.org/D27150
llvm-svn: 289261
2016-12-09 19:49:48 +00:00
Konstantin Zhuravlyov
864718c666
[AMDGPU] Wave and register controls
...
- Add missing test
llvm-svn: 280749
2016-09-06 20:29:10 +00:00