}],
/*retType=*/"bool",
/*methodName=*/"bufferizesToAllocation",
- /*args=*/(ins "OpResult":$opResult),
+ /*args=*/(ins "::mlir::OpResult":$opResult),
/*methodBody=*/"",
/*defaultImplementation=*/"return false;"
>,
}],
/*retType=*/"bool",
/*methodName=*/"bufferizesToMemoryRead",
- /*args=*/(ins "OpOperand &":$opOperand,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpOperand &":$opOperand,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
// Does not have to be implemented for ops without tensor OpOperands.
}],
/*retType=*/"bool",
/*methodName=*/"bufferizesToMemoryWrite",
- /*args=*/(ins "OpOperand &":$opOperand,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpOperand &":$opOperand,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
// Does not have to be implemented for ops without tensor OpOperands.
}],
/*retType=*/"bool",
/*methodName=*/"isMemoryWrite",
- /*args=*/(ins "OpResult":$opResult,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpResult":$opResult,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
auto bufferizableOp =
}],
/*retType=*/"bool",
/*methodName=*/"mustBufferizeInPlace",
- /*args=*/(ins "OpOperand &":$opOperand,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpOperand &":$opOperand,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
return false;
given OpOperand may at runtime alias with any (or multiple) of the
returned OpResults.
}],
- /*retType=*/"SmallVector<OpResult>",
+ /*retType=*/"::mlir::SmallVector<::mlir::OpResult>",
/*methodName=*/"getAliasingOpResult",
- /*args=*/(ins "OpOperand &":$opOperand,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpOperand &":$opOperand,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
// Does not have to be implemented for ops without tensor OpOperands.
returned OpOperands. This can be useful for branches and for ops such
as `arith.select`.
}],
- /*retType=*/"SmallVector<OpOperand *>",
+ /*retType=*/"::mlir::SmallVector<::mlir::OpOperand *>",
/*methodName=*/"getAliasingOpOperand",
- /*args=*/(ins "OpResult":$opResult,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpResult":$opResult,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
assert(opResult.getType().isa<TensorType>() &&
TODO: Support other relations such as "OpOperand is included in
OpResult".
}],
- /*retType=*/"BufferRelation",
+ /*retType=*/"::mlir::bufferization::BufferRelation",
/*methodName=*/"bufferRelation",
- /*args=*/(ins "OpResult":$opResult,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpResult":$opResult,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
// Does not have to be implemented for ops without tensor OpResults
This method can query analysis information from the given analysis
state.
}],
- /*retType=*/"LogicalResult",
+ /*retType=*/"::mlir::LogicalResult",
/*methodName=*/"resolveConflicts",
- /*args=*/(ins "RewriterBase &":$rewriter,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::RewriterBase &":$rewriter,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
auto bufferizableOp =
expected to survive bufferization, `success` should be returned
(together with `allow-unknown-ops` enabled).
}],
- /*retType=*/"LogicalResult",
+ /*retType=*/"::mlir::LogicalResult",
/*methodName=*/"bufferize",
- /*args=*/(ins "RewriterBase &":$rewriter,
- "const BufferizationOptions &":$options),
+ /*args=*/(ins "::mlir::RewriterBase &":$rewriter,
+ "const ::mlir::bufferization::BufferizationOptions &":$options),
/*methodBody=*/"",
/*defaultImplementation=*/[{
llvm_unreachable("bufferize not implemented");
}],
/*retType=*/"bool",
/*methodName=*/"isWritable",
- /*args=*/(ins "Value":$value,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::Value":$value,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
return value.isa<OpResult>();
}],
/*retType=*/"bool",
/*methodName=*/"isNotConflicting",
- /*args=*/(ins "OpOperand *":$uRead,
- "OpOperand *":$uWrite,
- "const AnalysisState &":$state),
+ /*args=*/(ins "::mlir::OpOperand *":$uRead,
+ "::mlir::OpOperand *":$uWrite,
+ "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
return false;
This method can be used to check expected invariants and limitations
of the current bufferization implementation.
}],
- /*retType=*/"LogicalResult",
+ /*retType=*/"::mlir::LogicalResult",
/*methodName=*/"verifyAnalysis",
- /*args=*/(ins "const AnalysisState &":$state),
+ /*args=*/(ins "const ::mlir::bufferization::AnalysisState &":$state),
/*methodBody=*/"",
/*defaultImplementation=*/[{
return success();
This method is useful when the bufferized type of value must be
predicted before modifying any IR.
}],
- /*retType=*/"FailureOr<BaseMemRefType>",
+ /*retType=*/"::mlir::FailureOr<::mlir::BaseMemRefType>",
/*methodName=*/"getBufferType",
- /*args=*/(ins "Value":$value,
- "const BufferizationOptions &":$options,
- "const DenseMap<Value, BaseMemRefType>":$fixedTypes),
+ /*args=*/(ins "::mlir::Value":$value,
+ "const ::mlir::bufferization::BufferizationOptions &":$options,
+ "const ::mlir::DenseMap<::mlir::Value, ::mlir::BaseMemRefType>":$fixedTypes),
/*methodBody=*/"",
/*defaultImplementation=*/[{
assert(getOwnerOfValue(value) == $_op.getOperation() &&