mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
R600/SI: Completely Disable TypeRewriter on compute
llvm-svn: 201369
This commit is contained in:
parent
4447febe55
commit
4b0c3551df
@ -69,11 +69,11 @@ bool SITypeRewriter::runOnFunction(Function &F) {
|
|||||||
StringRef Str = A.getValueAsString();
|
StringRef Str = A.getValueAsString();
|
||||||
Str.getAsInteger(0, ShaderType);
|
Str.getAsInteger(0, ShaderType);
|
||||||
}
|
}
|
||||||
if (ShaderType != ShaderType::COMPUTE) {
|
if (ShaderType == ShaderType::COMPUTE)
|
||||||
visit(F);
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
visit(F);
|
visit(F);
|
||||||
|
visit(F);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -19,3 +19,12 @@ declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float
|
|||||||
|
|
||||||
attributes #0 = { "ShaderType"="0" }
|
attributes #0 = { "ShaderType"="0" }
|
||||||
|
|
||||||
|
; CHECK-LABEL: @i8ptr_v16i8ptr
|
||||||
|
; CHECK: S_ENDPGM
|
||||||
|
define void @i8ptr_v16i8ptr(<16 x i8> addrspace(1)* %out, i8 addrspace(1)* %in) {
|
||||||
|
entry:
|
||||||
|
%0 = bitcast i8 addrspace(1)* %in to <16 x i8> addrspace(1)*
|
||||||
|
%1 = load <16 x i8> addrspace(1)* %0
|
||||||
|
store <16 x i8> %1, <16 x i8> addrspace(1)* %out
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user