Skip to content

OpenCL call lowering to LLVM IR SPIRV fails LLVM's verifier #1814

@bcardosolopes

Description

@bcardosolopes

LLVM's verifier (llvm/lib/IR/Verifier.cpp:3647) is choking on a call:

calling convention does not permit calls
  call spir_kernel void @bar(ptr addrspace(1) %10)
fatal error: error in backend: Lowering from LLVMIR dialect to llvm IR failed!

The CIR output indicates cc(spir_kernel), maybe a bug during lowering. Needs investigation, reduced testcase here: 11e643e

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions