File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -917,10 +917,7 @@ SPIRVFunction *LLVMToSPIRVBase::transFunctionDecl(Function *F) {
917
917
if (Attrs.hasParamAttr (ArgNo, Attribute::ReadOnly))
918
918
BA->addAttr (FunctionParameterAttributeNoWrite);
919
919
if (Attrs.hasParamAttr (ArgNo, Attribute::ReadNone))
920
- // TODO: intel/llvm customization
921
- // see https://github.com/intel/llvm/issues/7592
922
- // Need to return FunctionParameterAttributeNoReadWrite
923
- BA->addAttr (FunctionParameterAttributeNoWrite);
920
+ BA->addAttr (FunctionParameterAttributeNoReadWrite);
924
921
if (Attrs.hasParamAttr (ArgNo, Attribute::ZExt))
925
922
BA->addAttr (FunctionParameterAttributeZext);
926
923
if (Attrs.hasParamAttr (ArgNo, Attribute::SExt))
Original file line number Diff line number Diff line change 9
9
; CHECK-SPIRV: Name [[#B:]] "b"
10
10
; CHECK-SPIRV: Decorate [[#A]] FuncParamAttr 5
11
11
; CHECK-SPIRV: Decorate [[#A]] FuncParamAttr 6
12
- ; CHECK-SPIRV: Decorate [[#B]] FuncParamAttr 5
12
+ ; CHECK-SPIRV: Decorate [[#B]] FuncParamAttr 7
13
13
14
- ; CHECK-LLVM: {{.*}}void @test_builtin_readnone(ptr nocapture readonly %{{.*}}, ptr nocapture readonly %{{.*}})
14
+ ; CHECK-LLVM: {{.*}}void @test_builtin_readnone(ptr nocapture readonly %{{.*}}, ptr nocapture readnone %{{.*}})
15
15
16
16
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
17
17
target triple = "spir-unknown-unknown"
You can’t perform that action at this time.
0 commit comments