Skip to content

[P0] Problems with e2e conversion #160

@n0thingNoob

Description

@n0thingNoob

Summary

Lowering from LLVM/MLIR to the Neura dialect fails on two operations that aren’t currently converted: llvm.fdiv and llvm.fptosi. Additionally, llvm.fdiv receives an operand of type !neura.data<f32, i1>, which triggers a type mismatch.

Failing IR snippet

%13 = llvm.fdiv %12, %3 : f32
%14 = llvm.fptosi %13 : f32 to i32

Error messages

  • llvm.fdiv op operand #0 must be floating point LLVM type or LLVM dialect-compatible vector of floating point LLVM type, but got !neura.data<f32, i1>.
  • No conversion rule exists for llvm.fptosi.

I have uploaded the histogram to the branch testbench. Here is the PR: #161

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions