34 return make_error<StringError>(
35 formatv(
"invalid fixed frame index {0}",
FI).str(),
40 return make_error<StringError>(
formatv(
"invalid frame index {0}",
FI).str(),
Tagged union holding either a T or a Error.
The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted.
unsigned getNumObjects() const
Return the number of objects.
unsigned getNumFixedObjects() const
Return the number of fixed objects.
bool isFixedObjectIndex(int ObjectIdx) const
Returns true if the specified index corresponds to a fixed stack object.
int getObjectIndexBegin() const
Return the minimum frame object index.
This is an optimization pass for GlobalISel generic memory operations.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
auto formatv(bool Validate, const char *Fmt, Ts &&...Vals)
Expected< int > getFI(const llvm::MachineFrameInfo &MFI) const