search for: pugixml

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

2017 Oct 29
2
A query language for LLVM IR (XPath)
...s a sort of tree with attributes, I think that reusing an existing query language for XML would be appropriate. In particular I choose XPath [1] since it's more expressive than, say, CSS selectors (e.g., you can move from the current element to the parent). Therefore, in a spare night, I took pugixml [2], a lightweight XML parser with XPath support, stripped away everything was XML-specific and adapted it so that it could query an arbitrary tree, as long as a class providing certain traits is provided. Attached you can find the class to query a LLVM module and example LLVM module (using LLVM 3...
2017 Oct 31
2
A query language for LLVM IR (XPath)
...think > that reusing an existing query language for XML would be appropriate. > > In particular I choose XPath [1] since it's more expressive than, say, > CSS selectors (e.g., you can move from the current element to the > parent). > > Therefore, in a spare night, I took pugixml [2], a lightweight XML parser > with XPath support, stripped away everything was XML-specific and > adapted it so that it could query an arbitrary tree, as long as a class > providing certain traits is provided. > > Attached you can find the class to query a LLVM module and example...