Mercurial > hg > CbC > CbC_llvm
view mlir/test/mlir-tblgen/deprecation.td @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// RUN: not mlir-tblgen -on-deprecated=error -gen-op-decls -I %S/../../include -DERROR1 %s 2>&1 | FileCheck --check-prefix=ERROR1 %s include "mlir/IR/OpBase.td" def Test_Dialect : Dialect { let name = "test_dialect"; } #ifdef ERROR1 def OpTraitA : NativeOpTrait<"OpTraitA">, Deprecated<"use `bar` instead">; // ERROR1: warning: Using deprecated def `OpTraitA` // ERROR1: use `bar` instead def OpTraitWithoutDependentTrait : Op<Test_Dialect, "default_value", [OpTraitA]> {} #endif