22 #include "mlir/Dialect/X86Vector/X86VectorDialect.cpp.inc"
24 void x86vector::X86VectorDialect::initialize() {
27 #include "mlir/Dialect/X86Vector/X86Vector.cpp.inc"
32 if (getSrc() && getConstantSrc())
33 return emitError(
"cannot use both src and constant_src");
35 if (getSrc() && (getSrc().getType() != getDst().getType()))
36 return emitError(
"failed to verify that src and dst have same type");
38 if (getConstantSrc() && (getConstantSrc()->getType() != getDst().getType()))
40 "failed to verify that constant_src and dst have same type");
45 #define GET_OP_CLASSES
46 #include "mlir/Dialect/X86Vector/X86Vector.cpp.inc"
Include the generated interface declarations.
InFlightDiagnostic emitError(Location loc)
Utility method to emit an error message using this location.
LogicalResult success(bool isSuccess=true)
Utility function to generate a LogicalResult.
LogicalResult verify(Operation *op, bool verifyRecursively=true)
Perform (potentially expensive) checks of invariants, used to detect compiler bugs,...
This class represents an efficient way to signal success or failure.