1//===- TestPDLL.pdll - Test PDLL functionality ----------------------------===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8 9#include "TestOps.td" 10#include "mlir/Transforms/DialectConversion.pdll" 11 12/// Change the result type of a producer. 13Pattern => replace op<test.cast> -> (results: TypeRange) 14 with op<test.cast> -> (convertTypes(results)); 15 16/// Pass through test.return conversion. 17Pattern => replace op<test.return>(args: ValueRange) 18 with op<test.return>(convertValues(args)); 19