18#ifndef STRICT_FIXED_SIZE_VECTORS
20struct CreateScalableErrorAsWarning {
25 "treat-scalable-fixed-error-as-warning",
cl::Hidden,
27 "Treat issues where a fixed-width property is requested from a "
28 "scalable type as a warning, instead of an error"));
40#ifndef STRICT_FIXED_SIZE_VECTORS
53 "Cannot implicitly convert a scalable size to a fixed-width size in "
54 "`TypeSize::operator ScalarTy()`");
static ManagedStatic< cl::opt< bool >, CreateScalableErrorAsWarning > ScalableErrorAsWarning
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...
static raw_ostream & warning()
Convenience method for printing "warning: " to stderr.
constexpr ScalarTy getFixedValue() const
constexpr bool isScalable() const
Returns whether the quantity is scaled by a runtime quantity (vscale).
constexpr ScalarTy getKnownMinValue() const
Returns the minimum value this quantity can represent.
This is an optimization pass for GlobalISel generic memory operations.
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
void initTypeSizeOptions()
void reportInvalidSizeRequest(const char *Msg)
Reports a diagnostic message to indicate an invalid size request has been done on a scalable vector.