14 #include "llvm/ADT/TypeSwitch.h"
17 using namespace mlir::ptr;
26 uint32_t size, uint32_t abi, uint32_t preferred,
29 return emitError() <<
"size entry must be divisible by 8";
31 return emitError() <<
"abi entry must be divisible by 8";
33 return emitError() <<
"preferred entry must be divisible by 8";
34 if (index != kOptionalSpecValue && index %
kBitsInByte != 0)
35 return emitError() <<
"index entry must be divisible by 8";
37 return emitError() <<
"preferred alignment is expected to be at least "
38 "as large as ABI alignment";
constexpr static const unsigned kBitsInByte
This class represents a diagnostic that is inflight and set to be reported.
Include the generated interface declarations.
InFlightDiagnostic emitError(Location loc)
Utility method to emit an error message using this location.
LogicalResult verify(Operation *op, bool verifyRecursively=true)
Perform (potentially expensive) checks of invariants, used to detect compiler bugs,...