Skip to content

LLVM Translation failed for operation: builtin.unrealized_conversion_cast #218

Open
@WangJialei-A

Description

@WangJialei-A

The error happened on a single op test

module {
  func.func @entry(%arg0: tensor<5x6xf32>, %arg1: tensor<6x7xf32>) -> tensor<5x7xf32> attributes {llvm.emit_c_interface} {
    %0 = tensor.empty() : tensor<5x7xf32>
    %1 = linalg.matmul {cast = #linalg.type_fn<cast_signed>} ins(%arg0, %arg1 : tensor<5x6xf32>, tensor<6x7xf32>) outs(%0 : tensor<5x7xf32>) -> tensor<5x7xf32>
    return %1 : tensor<5x7xf32>
  }
}

Most likely ConvertOpenMPToLLVMPass introduces the issue here
Before:
图片
After: (check %43)
图片
Final: (before crash, check %7)
图片

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions