Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Malformed mangled symbol name #753

Open
kumarak opened this issue Dec 9, 2024 · 0 comments
Open

[Bug]: Malformed mangled symbol name #753

kumarak opened this issue Dec 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kumarak
Copy link
Member

kumarak commented Dec 9, 2024

VAST version

tag: v0.0.33

LLVM version

18.1.4

Operating system

macOS

Description

The symbol name of function is getting malformed and starts with \01. This is how the generated hl representation looks like:

  hl.func @"\01measure_hemoglobin" external () -> !hl.int< unsigned > attributes {hl.asm = #hl.asm<"measure_hemoglobin", true>, sym_visibility = "private"}
    hl.func @"\01measure_oxygen" external () -> !hl.int< unsigned > attributes {hl.asm = #hl.asm<"measure_oxygen", true>, sym_visibility = "private"}
    hl.func @"\01init_mmio" external (!hl.lvalue<!hl.ptr<!hl.int< unsigned >>>, !hl.lvalue<!hl.ptr<!hl.int< unsigned >>>, !hl.lvalue<!hl.ptr<!hl.int< unsigned >>>) -> !hl.void attributes {hl.asm = #hl.asm<"init_mmio", true>, sym_visibility = "private"}
    hl.func @"\01main" external () -> !hl.int< unsigned > attributes {hl.asm = #hl.asm<"main", true>} {
      %0 = hl.label.decl @ram_00101140_0_basic : !hl.label
      hl.var @iVar1  : !hl.lvalue<!hl.int< unsigned >>
      hl.var @iVar2  : !hl.lvalue<!hl.int< unsigned >>
      hl.goto %0
      hl.label %0 {
        ....

lifted.c.gz

Steps to Reproduce

vast-front -vast-emit-mlir=hl /tmp/lifted.c -o /tmp/lifted.c.mlir
@kumarak kumarak added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant