Skip to content

Commit

Permalink
Fix conflict resolution for SPV_INTEL_runtime_aligned patch
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksimo authored and sys-ce-bb committed Jul 4, 2024
1 parent 25f12ff commit 7a7619d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions llvm-spirv/lib/SPIRV/SPIRVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3034,6 +3034,10 @@ Function *SPIRVToLLVM::transFunction(SPIRVFunction *BF) {
mapValue(BA, &(*I));
setName(&(*I), BA);
BA->foreachAttr([&](SPIRVFuncParamAttrKind Kind) {
// Skip this function parameter attribute as it will translated among
// OpenCL metadata
if (Kind == FunctionParameterAttributeRuntimeAlignedINTEL)
return;
Attribute::AttrKind LLVMKind = SPIRSPIRVFuncParamAttrMap::rmap(Kind);
Type *AttrTy = nullptr;
switch (LLVMKind) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; XFAIL: *
; RUN: llvm-spirv -spirv-text -r %s -o %t.bc
; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM

Expand Down

0 comments on commit 7a7619d

Please sign in to comment.