HomePhabricator

Translation to LLVM: check the validity of module-level Ops

Authored by ftynse on Oct 10 2019, 4:01 PM.

Description

Translation to LLVM: check the validity of module-level Ops

Translation to LLVM expects the entry module to have only specific types of ops
that correspond to LLVM IR entities allowed in a module. Currently those are
restricted to functions and globals. Introduce an additional check at the
module level. Inside individual functions, the check for supported Ops is
already performed, but it accepts all LLVM dialect Ops and wouldn't be
immediately applicable at the module level.

PiperOrigin-RevId: 274058651

Details

Committed
jpienaarOct 10 2019, 5:19 PM
Parents
rG28d7f9c052c8: Add lowering of constant ops to SPIR-V.
Branches
Unknown
Tags
Unknown

Event Timeline