File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -840,7 +840,10 @@ SPIRVFunction *LLVMToSPIRVBase::transFunctionDecl(Function *F) {
840
840
if (Attrs.hasParamAttr (ArgNo, Attribute::ReadOnly))
841
841
BA->addAttr (FunctionParameterAttributeNoWrite);
842
842
if (Attrs.hasParamAttr (ArgNo, Attribute::ReadNone))
843
- BA->addAttr (FunctionParameterAttributeNoReadWrite);
843
+ // TODO: intel/llvm customization
844
+ // see https://github.com/intel/llvm/issues/7592
845
+ // Need to return FunctionParameterAttributeNoReadWrite
846
+ BA->addAttr (FunctionParameterAttributeNoWrite);
844
847
if (Attrs.hasParamAttr (ArgNo, Attribute::ZExt))
845
848
BA->addAttr (FunctionParameterAttributeZext);
846
849
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 7
12
+ ; CHECK-SPIRV: Decorate [[#B]] FuncParamAttr 5
13
13
14
- ; CHECK-LLVM: {{.*}}void @test_builtin_readnone(ptr nocapture readonly %{{.*}}, ptr nocapture readnone %{{.*}})
14
+ ; CHECK-LLVM: {{.*}}void @test_builtin_readnone(ptr nocapture readonly %{{.*}}, ptr nocapture readonly %{{.*}})
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