FLANG
|
Public Types | |
enum | Result { Ok , NotAConstant , OutOfRange , SizeMismatch , LengthMismatch , TooManyElems } |
Public Member Functions | |
InitialImage (std::size_t bytes) | |
InitialImage (InitialImage &&that)=default | |
std::size_t | size () const |
template<typename A > | |
Result | Add (ConstantSubscript, std::size_t, const A &, FoldingContext &) |
template<typename T > | |
Result | Add (ConstantSubscript offset, std::size_t bytes, const Constant< T > &x, FoldingContext &context) |
template<int KIND> | |
Result | Add (ConstantSubscript offset, std::size_t bytes, const Constant< Type< TypeCategory::Character, KIND > > &x, FoldingContext &) |
Result | Add (ConstantSubscript, std::size_t, const Constant< SomeDerived > &, FoldingContext &) |
template<typename T > | |
Result | Add (ConstantSubscript offset, std::size_t bytes, const Expr< T > &x, FoldingContext &c) |
void | AddPointer (ConstantSubscript, const Expr< SomeType > &) |
void | Incorporate (ConstantSubscript toOffset, const InitialImage &from, ConstantSubscript fromOffset, ConstantSubscript bytes) |
std::optional< Expr< SomeType > > | AsConstant (FoldingContext &, const DynamicType &, std::optional< std::int64_t > charLength, const ConstantSubscripts &, bool padWithZero=false, ConstantSubscript offset=0) const |
std::optional< Expr< SomeType > > | AsConstantPointer (ConstantSubscript offset=0) const |
Friends | |
class | AsConstantHelper |