Skip to content

Commit 7a7619d

Browse files
vmaksimosys-ce-bb
authored andcommitted
Fix conflict resolution for SPV_INTEL_runtime_aligned patch
1 parent 25f12ff commit 7a7619d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

llvm-spirv/lib/SPIRV/SPIRVReader.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -3034,6 +3034,10 @@ Function *SPIRVToLLVM::transFunction(SPIRVFunction *BF) {
30343034
mapValue(BA, &(*I));
30353035
setName(&(*I), BA);
30363036
BA->foreachAttr([&](SPIRVFuncParamAttrKind Kind) {
3037+
// Skip this function parameter attribute as it will translated among
3038+
// OpenCL metadata
3039+
if (Kind == FunctionParameterAttributeRuntimeAlignedINTEL)
3040+
return;
30373041
Attribute::AttrKind LLVMKind = SPIRSPIRVFuncParamAttrMap::rmap(Kind);
30383042
Type *AttrTy = nullptr;
30393043
switch (LLVMKind) {

llvm-spirv/test/extensions/INTEL/SPV_INTEL_runtime_aligned/RuntimeAligned.spt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; XFAIL: *
21
; RUN: llvm-spirv -spirv-text -r %s -o %t.bc
32
; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM
43

0 commit comments

Comments
 (0)