view mlir/test/mlir-tblgen/interfaces.mlir @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents
children
line wrap: on
line source

// RUN: mlir-opt -test-type-interfaces -allow-unregistered-dialect -verify-diagnostics %s

// expected-remark@below {{'!test.test_type' - TestA}}
// expected-remark@below {{'!test.test_type' - TestB}}
// expected-remark@below {{'!test.test_type' - TestC}}
// expected-remark@below {{'!test.test_type' - TestD}}
// expected-remark@below {{'!test.test_type' - TestRet}}
// expected-remark@below {{'!test.test_type' - TestE}}
%foo0 = "foo.test"() : () -> (!test.test_type)

// Type without the test interface.
%foo1 = "foo.test"() : () -> (i32)