Exceptions
exceptions
¶
Custom xDSL exceptions.
This module contains all custom exceptions used by xDSL.
UnregisteredConstructException
¶
AlreadyRegisteredConstructException
¶
Bases: Exception
An exception raised when a dialect, operation, type, or attribute is registered twice.
DiagnosticException
¶
VerifyException
¶
Bases: DiagnosticException
PassFailedException
¶
Bases: DiagnosticException
A diagnostic error which can be raised during the execution of a pass, used to signify that the pass did not succeed.
PyRDLError
¶
PyRDLOpDefinitionError
¶
Bases: PyRDLError
An error in the Operation definition eDSL.
PyRDLAttrDefinitionError
¶
Bases: PyRDLError
An error in the Attribute definition eDSL.
PyRDLTypeError
¶
Bases: TypeError, PyRDLError
A type error in our IRDL eDSL.
InvalidIRException
¶
ShrinkException
¶
Bases: Exception
Exception for test case reduction when used in conjunction with the Shrink Ray reducer.
To find a reduced version of a test case, raise this exception on the line of code you want to hit,
and pass the --shrink argument to xdsl-opt, by changing its invocation from:
xdsl-opt input_file.mlir -p my,pass,pipeline
to:
shrinkray "xdsl-opt -p my,pass,pipeline --shrink" input_file.mlir.
Source code in xdsl/utils/exceptions.py
InterpretationError
¶
BuilderNotFoundException
dataclass
¶
Bases: Exception
Exception raised when no builders are found for a given attribute type and a given tuple of arguments.
Source code in xdsl/utils/exceptions.py
ParseError
dataclass
¶
Bases: Exception
Source code in xdsl/utils/exceptions.py
MultipleSpansParseError
dataclass
¶
Bases: ParseError
Source code in xdsl/utils/exceptions.py
ArgSpecParseError
¶
Bases: BaseException
Source code in xdsl/utils/exceptions.py
LLVMTranslationException
¶
Bases: DiagnosticException
Exception raised during LLVM translation.