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

Antiquote for jump label #13

Open
nwtgck opened this issue Feb 7, 2018 · 1 comment
Open

Antiquote for jump label #13

nwtgck opened this issue Feb 7, 2018 · 1 comment

Comments

@nwtgck
Copy link
Contributor

nwtgck commented Feb 7, 2018

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
}
|]
@sdiehl
Copy link
Member

sdiehl commented Feb 7, 2018

Sounds sensible to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants