File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3044,12 +3044,15 @@ Function *SPIRVToLLVM::transFunction(SPIRVFunction *BF) {
3044
3044
auto BA = BF->getArgument (I->getArgNo ());
3045
3045
mapValue (BA, &(*I));
3046
3046
setName (&(*I), BA);
3047
+ AttributeMask IllegalAttrs = AttributeFuncs::typeIncompatible (I->getType ());
3047
3048
BA->foreachAttr ([&](SPIRVFuncParamAttrKind Kind) {
3048
3049
// Skip this function parameter attribute as it will translated among
3049
3050
// OpenCL metadata
3050
3051
if (Kind == FunctionParameterAttributeRuntimeAlignedINTEL)
3051
3052
return ;
3052
3053
Attribute::AttrKind LLVMKind = SPIRSPIRVFuncParamAttrMap::rmap (Kind);
3054
+ if (IllegalAttrs.contains (LLVMKind))
3055
+ return ;
3053
3056
Type *AttrTy = nullptr ;
3054
3057
switch (LLVMKind) {
3055
3058
case Attribute::AttrKind::ByVal:
Original file line number Diff line number Diff line change 1
- ; XFAIL: *
2
-
3
1
; RUN: llvm-as %s -o %t.bc
4
2
; RUN: llvm-spirv %t.bc -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV
5
3
; RUN: llvm-spirv %t.bc -o %t.spv
You can’t perform that action at this time.
0 commit comments