Skip to content

Antiquote for jump label #13

Open
Open
@nwtgck

Description

@nwtgck

Hi, developers of llvm-hs-quote.

I'd like to have a new feature, an antiquote for jump label $label:.

The following is my hope.

-- (THIS IS JUST MY HOPE)
mod :: AST.Name -> AST.Module
mod lab = [Quote.LLVM.llmod|
; ModuleID = 'simple module'
define i32 @foo(i32 %x) {
$label:lab
  %x.addr = alloca i32
  store i32 %x, i32* %x.addr
  ret i32 1001
}
|]

Metadata

Metadata

Assignees

No one assigned

    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