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 LLVM_ABI 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.
template class LLVM_TEMPLATE_ABI opt< bool >
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI void report_fatal_error(Error Err, bool gen_crash_diag=true)
void initTypeSizeOptions()
LLVM_ABI void reportInvalidSizeRequest(const char *Msg)
Reports a diagnostic message to indicate an invalid size request has been done on a scalable vector.