summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Parser/Parser.cpp
diff options
context:
space:
mode:
authorJames Molloy <jmolloy@google.com>2019-11-05 14:41:08 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-11-05 14:41:38 -0800
commit6b534ecbcb2450e3b93bb38c738f0847e3077a39 (patch)
tree9c1af3255b0ebdcaf1698862b5c8bfc47d93a14e /mlir/lib/Parser/Parser.cpp
parent8fa9d826066f1bd50e183942594138b489fefbf2 (diff)
downloadbcm5719-llvm-6b534ecbcb2450e3b93bb38c738f0847e3077a39.tar.gz
bcm5719-llvm-6b534ecbcb2450e3b93bb38c738f0847e3077a39.zip
[llvm] Add initial import of LLVM modules to mlir-translate
This adds an importer from LLVM IR or bitcode to the LLVM dialect. The importer is registered with mlir-translate. Known issues exposed by this patch but not yet fixed: * Globals' initializers are attributes, which makes it impossible to represent a ConstantExpr. This will be fixed in a followup. * icmp returns i32 rather than i1. * select and a couple of other instructions aren't implemented. * llvm.cond_br takes its successors in a weird order. The testing here is known to be non-exhaustive. I'd appreciate feedback on where this functionality should live. It looks like the translator *from MLIR to LLVM* lives in Target/, but the SPIR-V deserializer lives in Dialect/ which is why I've put this here too. PiperOrigin-RevId: 278711683
Diffstat (limited to 'mlir/lib/Parser/Parser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud