llvm-project/mlir/test/mlir-tblgen
Marcello Maggioni be9f09c768 [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen.
Summary:
LLVMIRIntrinsicGen is using LLVM_Op as the base class for intrinsics.
This works for LLVM intrinsics in the LLVM Dialect, but when we are
trying to convert custom intrinsics that originate from a custom
LLVM dialect (like NVVM or ROCDL) these usually have a different
"cppNamespace" that needs to be applied to these dialect.

These dialect specific characteristics (like "cppNamespace")
are typically organized by creating a custom op (like NVVM_Op or
ROCDL_Op) that passes the correct dialect to the LLVM_OpBase class.

It seems natural to allow LLVMIRIntrinsicGen to take that into
consideration when generating the conversion code from one of these
dialect to a set of target specific intrinsics.

Reviewers: rriddle, andydavis1, antiagainst, nicolasvasilache, ftynse

Subscribers: jdoerfert, mehdi_amini, jpienaar, burmako, shauheen, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73233
2020-01-23 11:23:25 -08:00
..
dialect.td [ODS] Allow dialect to specify C++ namespaces 2019-05-20 13:49:27 -07:00
expect-symbol.td Use `not` to invert return code in expected to fail tests 2019-10-30 14:38:18 -07:00
llvm-intrinsics.td [mlir] Add option to use custom base class for dialect in LLVMIRIntrinsicGen. 2020-01-23 11:23:25 -08:00
op-attribute.td [mlir][ods] Fix StringRef initialization in builders 2020-01-21 14:12:27 -05:00
op-decl.td [mlir] Add shaped container component type interface 2020-01-15 13:28:39 -08:00
op-interface.td Skip generating C++ for "DeclareOpInterfaceMethods" in op interface gen. 2019-12-13 17:08:33 -08:00
op-operand.td [mlir] Add shaped container component type interface 2020-01-15 13:28:39 -08:00
op-result.td [mlir] Add shaped container component type interface 2020-01-15 13:28:39 -08:00
pattern.mlir [DRR] Introduce `$_` to ignore op argument match 2019-12-02 07:54:50 -08:00
predicate.td [mlir] NFC: Remove Value::operator* and Value::operator-> now that Value is properly value-typed. 2020-01-11 08:54:39 -08:00
return-types.mlir [mlir] Enable specifying verify on OpInterface 2020-01-22 04:43:22 -08:00
types.mlir Define AnyRankedTensor Type in TableGen 2019-10-25 10:31:56 -07:00