HomePhabricator

[MLIR][GPU] Disallow llvm tanh intrinsics when lowering to NVVM/ROCm.

Authored by Stephan Herhut <herhut@google.com> on Feb 11 2020, 1:20 AM.

Description

[MLIR][GPU] Disallow llvm tanh intrinsics when lowering to NVVM/ROCm.

Summary:
The lowering to NVVM and ROCm handles tanh operations differently by
mapping them to NVVM/ROCm specific intrinsics. This conflicts with
the lowering to LLVM, which uses the default llvm intrinsic. This change
declares the LLVM intrinsics to be illegal, hence disallowing the
correspondign rewrite.

Differential Revision: https://reviews.llvm.org/D74389