News for hackers. Stuff that matters.
Re:Show HN: A pure Go library for interacting with LLVM IR by jpsim on Saturday June 24, 2017 @01:06PM (#14626348)
Maybe this would lend itself well to parsing bitcode slices (serialized LLVM IR). I've often wanted to diff bitcode produced by different compiler versions.
Re:Show HN: A pure Go library for interacting with LLVM IR by boulos on Saturday June 24, 2017 @02:18PM (#14626739)
What's wrong with llvm-diff [1]? Is it that you want to compare across bitcode versions that weren't backwards compatible? (so the current llvm-diff won't parse an old old bitcode)

[1] http://llvm.org/docs/CommandGuide/llvm-diff.html

Re:Show HN: A pure Go library for interacting with LLVM IR by jpsim on Saturday June 24, 2017 @04:35PM (#14627358)
llvm-diff is indeed pretty great, but having the IR structure as an AST that you could programmatically access and manipulate would allow more semantic diffing, or integration into workflows that would benefit from structured representations of a diff.