llvm-hs-pretty
llvm-hs-pretty copied to clipboard
Extractvalue in global constant not supported?
Hey,
Thanks for maintaining the LLVM IR pretty printer!
Is it me or is the ExtractValue constant not supported?
https://github.com/llvm-hs/llvm-hs-pretty/blob/990bb6981f6214d9c1bbf46fd9e9ce5596d3bf30/src/LLVM/Pretty.hs#L1051 seems to err with "Non-function argument. (Malformed AST)" upon meeting one. As far as I can tell, it seems to be valid syntax. E.g:
%Age = type {i32}
@answer = private unnamed_addr constant i32 extractvalue (%Age {i32 42}, 0)
Thanks!