search for: typeparser

Displaying 2 results from an estimated 2 matches for "typeparser".

2003 Dec 14
2
[LLVMdev] An assembly level interface for LLVM
...some of the code is just "mechanical", for example creating function types takes like 4-5 lines of code, but nothing interesting goes on there. I think we can get rid of such code by providing an LLVM assembly language parsing library. For example, a type parser may look something like: TypeParser p("uint x uinx -> void"); Type* FuncType = p.getType(); The same thing can be extended to an LLVM snippet parser, which will parse LLVM instruction. We can use $1, $2 etc as paramaters, so that snippets can be instantiated with specific arguments. Do others think this functionality...
2003 Dec 14
0
[LLVMdev] An assembly level interface for LLVM
...t;mechanical", for example > creating function types takes like 4-5 lines of code, but > nothing interesting goes on there. I think we can get rid of > such code by providing an LLVM assembly language parsing > library. For example, a type parser may look something like: > > TypeParser p("uint x uinx -> void"); > Type* FuncType = p.getType(); > > The same thing can be extended to an LLVM snippet parser, > which will parse LLVM instruction. We can use $1, $2 etc as > paramaters, so that snippets can be instantiated with > specific arguments. >...