brintos

brintos / llvm-project-archived public Read only

0
0
Text · 685 B · 9715b55 Raw
17 lines · plain
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "TestOps.td"10#include "mlir/Interfaces/CastInterfaces.td"11 12/// A simple pattern that matches and replaces an operation.13Pattern TestSimplePattern => replace op<test.simple> with op<test.success>;14 15// Test the import of interfaces.16Pattern TestInterface => replace _: CastOpInterface with op<test.success>;17