>> I would not produce any llvm global for it. So some insanity like >> %ret = call i64 @llvm.read_register("rsp"); > > +1 Aren't you going to need some kind of "private unnamed_addr" thing just to make syntactically valid IR? Tim.