brintos

brintos / llvm-project-archived public Read only

0
0
Text · 477 B · 6021807 Raw
18 lines · plain
1// RUN: not mlir-tblgen -gen-attrdef-decls -I %S/../../include %s 2>&1 | FileCheck %s2 3include "mlir/IR/AttrTypeBase.td"4include "mlir/IR/OpBase.td"5 6def Test_Dialect: Dialect {7  let name = "TestDialect";8  let cppNamespace = "::test";9}10 11def RawAPIntAttr : AttrDef<Test_Dialect, "RawAPInt"> {12  let mnemonic = "raw_ap_int";13  let parameters = (ins "APInt":$value);14  let hasCustomAssemblyFormat = 1;15}16 17// CHECK: apint-param-error.td:11:5: error: Using a raw APInt parameter18