diff --git a/mlir/include/mlir/Interfaces/CallInterfaces.td b/mlir/include/mlir/Interfaces/CallInterfaces.td --- a/mlir/include/mlir/Interfaces/CallInterfaces.td +++ b/mlir/include/mlir/Interfaces/CallInterfaces.td @@ -82,7 +82,7 @@ Returns the results types that the callable region produces when executed. }], - "::mlir::ArrayRef<::mlir::Type>", "getCallableResults" + "::llvm::ArrayRef<::mlir::Type>", "getCallableResults" >, ]; } diff --git a/mlir/include/mlir/Interfaces/ControlFlowInterfaces.td b/mlir/include/mlir/Interfaces/ControlFlowInterfaces.td --- a/mlir/include/mlir/Interfaces/ControlFlowInterfaces.td +++ b/mlir/include/mlir/Interfaces/ControlFlowInterfaces.td @@ -70,11 +70,11 @@ some successor, or None if `operandIndex` isn't a successor operand index. }], - "::mlir::Optional<::mlir::BlockArgument>", "getSuccessorBlockArgument", + "::llvm::Optional<::mlir::BlockArgument>", "getSuccessorBlockArgument", (ins "unsigned":$operandIndex), [{ ::mlir::Operation *opaqueOp = $_op; for (unsigned i = 0, e = opaqueOp->getNumSuccessors(); i != e; ++i) { - if (::mlir::Optional<::mlir::BlockArgument> arg = ::mlir::detail::getBranchSuccessorArgument( + if (::llvm::Optional<::mlir::BlockArgument> arg = ::mlir::detail::getBranchSuccessorArgument( $_op.getSuccessorOperands(i), operandIndex, opaqueOp->getSuccessor(i))) return arg; @@ -87,7 +87,7 @@ operands. Returns nullptr if a single successor could not be chosen. }], "::mlir::Block *", "getSuccessorForOperands", - (ins "::mlir::ArrayRef<::mlir::Attribute>":$operands), [{}], + (ins "::llvm::ArrayRef<::mlir::Attribute>":$operands), [{}], /*defaultImplementation=*/[{ return nullptr; }] >, InterfaceMethod<[{ @@ -161,8 +161,8 @@ successor region must be non-empty. }], "void", "getSuccessorRegions", - (ins "::mlir::Optional":$index, - "::mlir::ArrayRef<::mlir::Attribute>":$operands, + (ins "::llvm::Optional":$index, + "::llvm::ArrayRef<::mlir::Attribute>":$operands, "::llvm::SmallVectorImpl<::mlir::RegionSuccessor> &":$regions) >, InterfaceMethod<[{ @@ -183,7 +183,7 @@ be the region invocations if these were the operands?" }], "void", "getRegionInvocationBounds", - (ins "::mlir::ArrayRef<::mlir::Attribute>":$operands, + (ins "::llvm::ArrayRef<::mlir::Attribute>":$operands, "::llvm::SmallVectorImpl<::mlir::InvocationBounds> &" :$invocationBounds), [{}], [{ invocationBounds.append($_op->getNumRegions(), @@ -239,7 +239,7 @@ the parent operation. }], "::mlir::MutableOperandRange", "getMutableSuccessorOperands", - (ins "::mlir::Optional":$index) + (ins "::llvm::Optional":$index) >, InterfaceMethod<[{ Returns a range of operands that are semantically "returned" by passing @@ -248,7 +248,7 @@ operation. }], "::mlir::OperandRange", "getSuccessorOperands", - (ins "::mlir::Optional":$index), [{}], + (ins "::llvm::Optional":$index), [{}], /*defaultImplementation=*/[{ return $_op.getMutableSuccessorOperands(index); }] diff --git a/mlir/include/mlir/Interfaces/InferTypeOpInterface.td b/mlir/include/mlir/Interfaces/InferTypeOpInterface.td --- a/mlir/include/mlir/Interfaces/InferTypeOpInterface.td +++ b/mlir/include/mlir/Interfaces/InferTypeOpInterface.td @@ -144,7 +144,7 @@ /*retTy=*/"::mlir::LogicalResult", /*methodName=*/"inferReturnTypeComponents", /*args=*/(ins "::mlir::MLIRContext*":$context, - "::mlir::Optional<::mlir::Location>":$location, + "::llvm::Optional<::mlir::Location>":$location, "::mlir::ValueShapeRange":$operands, "::mlir::DictionaryAttr":$attributes, "::mlir::RegionRange":$regions, diff --git a/mlir/include/mlir/Interfaces/LoopLikeInterface.td b/mlir/include/mlir/Interfaces/LoopLikeInterface.td --- a/mlir/include/mlir/Interfaces/LoopLikeInterface.td +++ b/mlir/include/mlir/Interfaces/LoopLikeInterface.td @@ -52,7 +52,7 @@ If there is a single induction variable return it, otherwise return llvm::None. }], - /*retTy=*/"::mlir::Optional<::mlir::Value>", + /*retTy=*/"::llvm::Optional<::mlir::Value>", /*methodName=*/"getSingleInductionVar", /*args=*/(ins), /*methodBody=*/"", @@ -64,7 +64,7 @@ Return the single lower bound value or attribute if it exists, otherwise return llvm::None. }], - /*retTy=*/"::mlir::Optional<::mlir::OpFoldResult>", + /*retTy=*/"::llvm::Optional<::mlir::OpFoldResult>", /*methodName=*/"getSingleLowerBound", /*args=*/(ins), /*methodBody=*/"", @@ -76,7 +76,7 @@ Return the single step value or attribute if it exists, otherwise return llvm::None. }], - /*retTy=*/"::mlir::Optional<::mlir::OpFoldResult>", + /*retTy=*/"::llvm::Optional<::mlir::OpFoldResult>", /*methodName=*/"getSingleStep", /*args=*/(ins), /*methodBody=*/"", @@ -88,7 +88,7 @@ Return the single upper bound value or attribute if it exists, otherwise return llvm::None. }], - /*retTy=*/"::mlir::Optional<::mlir::OpFoldResult>", + /*retTy=*/"::llvm::Optional<::mlir::OpFoldResult>", /*methodName=*/"getSingleUpperBound", /*args=*/(ins), /*methodBody=*/"", diff --git a/mlir/include/mlir/Interfaces/VectorInterfaces.td b/mlir/include/mlir/Interfaces/VectorInterfaces.td --- a/mlir/include/mlir/Interfaces/VectorInterfaces.td +++ b/mlir/include/mlir/Interfaces/VectorInterfaces.td @@ -28,7 +28,7 @@ `targetShape`. Return `None` if the op cannot be unrolled to the target vector shape. }], - /*retTy=*/"::mlir::Optional<::llvm::SmallVector>", + /*retTy=*/"::llvm::Optional<::llvm::SmallVector>", /*methodName=*/"getShapeForUnroll", /*args=*/(ins), /*methodBody=*/"", @@ -143,7 +143,7 @@ >, InterfaceMethod< /*desc=*/"Return the `in_bounds` boolean ArrayAttr.", - /*retTy=*/"::mlir::Optional<::mlir::ArrayAttr>", + /*retTy=*/"::llvm::Optional<::mlir::ArrayAttr>", /*methodName=*/"in_bounds", /*args=*/(ins), /*methodBody=*/"return $_op.getInBounds();"