From d03c5bc8d437e47ae424ac9611ae441cd5225526 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Markus=20B=C3=B6ck?= Date: Fri, 21 Jan 2022 10:03:48 +0100 Subject: [PATCH] [mlir] Fully qualify return types in OpAsmInterface.td and FunctionInterfaces.td --- mlir/include/mlir/IR/FunctionInterfaces.td | 6 +++--- mlir/include/mlir/IR/OpAsmInterface.td | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mlir/include/mlir/IR/FunctionInterfaces.td b/mlir/include/mlir/IR/FunctionInterfaces.td index b6993ff..20c7d7b 100644 --- a/mlir/include/mlir/IR/FunctionInterfaces.td +++ b/mlir/include/mlir/IR/FunctionInterfaces.td @@ -55,13 +55,13 @@ def FunctionOpInterface : OpInterface<"FunctionOpInterface"> { the type (to allow for this method may be called on function declarations). }], - "ArrayRef", "getArgumentTypes">, + "::llvm::ArrayRef<::mlir::Type>", "getArgumentTypes">, InterfaceMethod<[{ Returns the function result types based exclusively on the type (to allow for this method may be called on function declarations). }], - "ArrayRef", "getResultTypes">, + "::llvm::ArrayRef<::mlir::Type>", "getResultTypes">, InterfaceMethod<[{ Returns a clone of the function type with the given argument and result types. @@ -70,7 +70,7 @@ def FunctionOpInterface : OpInterface<"FunctionOpInterface"> { an appropriate clone method: `Type clone(ArrayRef inputs, ArrayRef results)` }], - "Type", "cloneTypeWith", (ins + "::mlir::Type", "cloneTypeWith", (ins "::mlir::TypeRange":$inputs, "::mlir::TypeRange":$results ), /*methodBody=*/[{}], /*defaultImplementation=*/[{ return $_op.getType().clone(inputs, results); diff --git a/mlir/include/mlir/IR/OpAsmInterface.td b/mlir/include/mlir/IR/OpAsmInterface.td index b49e12e..c13e59f 100644 --- a/mlir/include/mlir/IR/OpAsmInterface.td +++ b/mlir/include/mlir/IR/OpAsmInterface.td @@ -70,7 +70,7 @@ def OpAsmOpInterface : OpInterface<"OpAsmOpInterface"> { returned `spv`. The default implementation returns an empty string which is ignored. }], - "StringRef", "getDefaultDialect", (ins), "", "return \"\";" + "::llvm::StringRef", "getDefaultDialect", (ins), "", "return \"\";" >, ]; } -- 2.7.4