29 auto resultStructType =
30 mlir::dyn_cast<mlir::LLVM::LLVMStructType>(resultType);
31 if (!resultStructType || resultStructType.getBody().size() != 2 ||
32 resultStructType.getBody()[0] != operandType ||
33 resultStructType.getBody()[1] != operandType) {
35 "expected result type to be a homogeneous struct with "
36 "two elements matching the operand type, but got ")
42LogicalResult LLVM::SincosOp::verify() {
47LogicalResult LLVM::ModfOp::verify() {
53#include "mlir/Dialect/LLVMIR/LLVMFloatIntrinsicOps.cpp.inc"
static LogicalResult verifyHomogeneousStructResult(Operation *op, Type operandType, Type resultType)
Operation is the basic unit of execution within MLIR.
InFlightDiagnostic emitOpError(const Twine &message={})
Emit an error with the op name prefixed, like "'dim' op " which is convenient for verifiers.
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
Include the generated interface declarations.
Type getType(OpFoldResult ofr)
Returns the int type of the integer in ofr.